Does a garbage collection (GC) in the specified VM. The targeted VM is not allowed to currently be executing bytecode.
@VMGC(Integer vm; Boolean gcMainClass)
- vm is the unique identity number of the VM.
- gcMainClass controls whether to include the Main class in the GC:
- If set to true all memory allocated to class objects are released - preparing the VM for a fresh start.
- If set to false the main class object and any objects referenced indirectly are not included in the GC.
Integer vm := 1;
Boolean gcMainClass := True;