Skip to main content

R_realloc_gc

Function R_realloc_gc 

Source
pub unsafe fn R_realloc_gc(ptr: *mut c_void, size: usize) -> *mut c_void
Expand description

GC-aware realloc.

Triggers GC if allocation fails, then retries. Memory must be freed with free(). Checked wrapper for R_realloc_gc. Calls R_realloc_gc_unchecked inside with_r_thread, which panics off R’s main thread. Generated from source location line 2186, column 12. Generated from source file miniextendr-api/src/sys.rs.