Skip to main content

R_malloc_gc

Function R_malloc_gc 

Source
unsafe fn R_malloc_gc(size: usize) -> *mut c_void
Expand description

GC-aware malloc.

Triggers GC if allocation fails, then retries. Memory must be freed with free(). Checked wrapper for R_malloc_gc. Calls R_malloc_gc_unchecked and routes through with_r_thread. Generated from source location line 3368, column 8. Generated from source file miniextendr-api/src/ffi.rs.