@@ -300,7 +300,7 @@ pub trait MutatorContext<VM: VMBinding>: Send + 'static {
300
300
fn prepare ( & mut self , tls : VMWorkerThread ) ;
301
301
/// Do the release work for this mutator.
302
302
fn release ( & mut self , tls : VMWorkerThread ) ;
303
- /// Allocate memory for an object. This is a GC safepoint. GC will be triggered if the allocation fails .
303
+ /// Allocate memory for an object. This function will trigger a GC on failed allocation.
304
304
///
305
305
/// Arguments:
306
306
/// * `size`: the number of bytes required for the object.
@@ -314,8 +314,7 @@ pub trait MutatorContext<VM: VMBinding>: Send + 'static {
314
314
offset : usize ,
315
315
allocator : AllocationSemantics ,
316
316
) -> Address ;
317
- /// Allocate memory for an object. This is NOT a GC safepoint. If the allocation fails,
318
- /// the function returns a zero value without triggering a GC.
317
+ /// Allocate memory for an object. This function will not trigger a GC on failed allocation.
319
318
///
320
319
/// Arguments:
321
320
/// * `size`: the number of bytes required for the object.
@@ -329,7 +328,7 @@ pub trait MutatorContext<VM: VMBinding>: Send + 'static {
329
328
offset : usize ,
330
329
allocator : AllocationSemantics ,
331
330
) -> Address ;
332
- /// The slow path allocation. This is a GC safepoint. GC will be triggered if the allocation fails .
331
+ /// The slow path allocation for [`MutatorContext::alloc`] . This function will trigger a GC on failed allocation.
333
332
///
334
333
/// This is only useful when the binding
335
334
/// implements the fast path allocation, and would like to explicitly
@@ -341,8 +340,7 @@ pub trait MutatorContext<VM: VMBinding>: Send + 'static {
341
340
offset : usize ,
342
341
allocator : AllocationSemantics ,
343
342
) -> Address ;
344
- /// The slow path allocation. This is NOT a GC safepoint. If the allocation fails,
345
- /// the function returns a zero value without triggering a GC.
343
+ /// The slow path allocation for [`MutatorContext::alloc_no_gc`]. This function will not trigger a GC on failed allocation.
346
344
///
347
345
/// This is only useful when the binding
348
346
/// implements the fast path allocation, and would like to explicitly
0 commit comments