Skip to content

Commit 9c9ab92

Browse files
committed
Add some functions to control Gc memory usage
1 parent 29c44b4 commit 9c9ab92

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎std/cpp/vm/Gc.hx‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ class Gc
9292
untyped __global__.__hxcpp_exit_gc_free_zone();
9393
}
9494

95+
static public function setMinimumFreeSpace(inBytes:Int) : Void
96+
{
97+
untyped __global__.__hxcpp_set_minimum_free_space(inBytes);
98+
}
99+
100+
static public function setTargetFreeSpacePercentage(inPercentage:Int) : Void
101+
{
102+
untyped __global__.__hxcpp_set_target_free_space_percentage(inPercentage);
103+
}
104+
105+
static public function setMinimumWorkingMemory(inBytes:Int) : Void
106+
{
107+
untyped __global__.__hxcpp_set_minimum_working_memory(inBytes);
108+
}
109+
95110
@:unreflective
96111
inline static public function setFinalizer<T>(inObject:T, inFinalizer:cpp.Callable<T->Void> ) : Void
97112
{

0 commit comments

Comments
 (0)