Permalink
Browse files

Add some functions to control Gc memory usage

  • Loading branch information...
1 parent 29c44b4 commit 9c9ab92895b781c1cb14fd83389782c162632df3 @hughsando hughsando committed Oct 1, 2015
Showing with 15 additions and 0 deletions.
  1. +15 −0 std/cpp/vm/Gc.hx
View
@@ -92,6 +92,21 @@ class Gc
untyped __global__.__hxcpp_exit_gc_free_zone();
}
+ static public function setMinimumFreeSpace(inBytes:Int) : Void
+ {
+ untyped __global__.__hxcpp_set_minimum_free_space(inBytes);
+ }
+
+ static public function setTargetFreeSpacePercentage(inPercentage:Int) : Void
+ {
+ untyped __global__.__hxcpp_set_target_free_space_percentage(inPercentage);
+ }
+
+ static public function setMinimumWorkingMemory(inBytes:Int) : Void
+ {
+ untyped __global__.__hxcpp_set_minimum_working_memory(inBytes);
+ }
+
@:unreflective
inline static public function setFinalizer<T>(inObject:T, inFinalizer:cpp.Callable<T->Void> ) : Void
{

0 comments on commit 9c9ab92

Please sign in to comment.