TempAlloc.malloc

Allocates nbytes bytes on the TempAlloc stack. NOT safe for real-time * programming, since if there's not enough space on the current block, * a new one will automatically be created. Also, very large objects * (currently over 4MB) will simply be heap-allocated. * * Bugs: Memory allocated by TempAlloc is not scanned by the GC. * This is necessary for performance and to avoid false pointer issues. * Do not store the only reference to a GC-allocated object in * TempAlloc-allocated memory.

  1. void* malloc(size_t nbytes)
    struct TempAlloc
    static nothrow
    void*
    malloc
    (
    size_t nbytes
    )
  2. void* malloc(size_t nbytes, State stateCopy)

Meta