|
@@ -22,16 +22,20 @@
|
|
|
package neko.vm;
|
|
|
|
|
|
class Gc {
|
|
|
-
|
|
|
+ /**
|
|
|
+ Run the Neko garbage collector.
|
|
|
+ */
|
|
|
public static function run( major : Bool ) {
|
|
|
_run(major);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ Return the size of the GC heap and the among of free space, in bytes
|
|
|
+ */
|
|
|
public static function stats() : { heap : Int, free : Int } {
|
|
|
return _stats();
|
|
|
}
|
|
|
|
|
|
static var _run = neko.Lib.load("std","run_gc",1);
|
|
|
static var _stats = neko.Lib.load("std","gc_stats",0);
|
|
|
-
|
|
|
}
|