GCSkipIfOnStack

The GCSkipIfOnStack aspect can be applied to accessor methods on the class implementing an Island Garbage Collector, to optimize redundant GC access, when it can be avoided.

For example in the case of the WebAssembly SimpleGC, a lot of GC operations do not need to happen happen if the compiler can assure that an object reference never leaves the stack.

Island Only

The GCSkipIfOnStack aspect is available on the Island-backed platform only.