File: NativeGc.hx

package info (click to toggle)
haxe 1%3A3.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,888 kB
  • sloc: ml: 106,129; ansic: 1,978; makefile: 609; cpp: 357; java: 349; cs: 323; python: 250; sh: 75; objc: 64; xml: 29
file content (59 lines) | stat: -rw-r--r-- 2,098 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package cpp;

extern class NativeGc
{
   @:native("__hxcpp_gc_mem_info")
   static public function memInfo(inWhatInfo:Int) : Float return 0.0;

   @:native("_hx_allocate_extended") @:templatedCall
   static public function allocateExtended<T>(cls:Class<T>, size:Int) : T return null;

   @:native("_hx_add_finalizable")
   public static function addFinalizable( instance:{ function finalize():Void; }, inPin:Bool ): Void {}

   @:native("hx::InternalNew")
   public static function allocGcBytesRaw( inBytes : Int, isContainer:Bool ): RawPointer<cpp.Void> return null;

   inline public static function allocGcBytes( inBytes : Int ): Pointer<cpp.Void>
   {
      return Pointer.fromRaw( allocGcBytesRaw(inBytes, false) );
   }


   @:native("__hxcpp_enable") @:extern
   static public function enable(inEnable:Bool) : Void { }

   @:native("__hxcpp_collect") @:extern
   static public function run(major:Bool) : Void { }

   @:native("__hxcpp_gc_compact") @:extern
   static public function compact() : Void { }

   @:native("__hxcpp_gc_trace") @:extern
   static public function nativeTrace(sought:Class<Dynamic>,printInstances:Bool) : Int return 0;

   @:native("__hxcpp_gc_do_not_kill") @:extern
   static public function doNotKill(inObject:Dynamic) : Void { }

   @:native("__hxcpp_get_next_zombie") @:extern
   static public function getNextZombie() : Dynamic return null;

   @:native("__hxcpp_gc_safe_point") @:extern
   static public function safePoint() : Void { }

   @:native("__hxcpp_enter_gc_free_zone") @:extern
   static public function enterGCFreeZone() : Void { }

   @:native("__hxcpp_exit_gc_free_zone") @:extern
   static public function exitGCFreeZone() : Void { }

   @:native("__hxcpp_set_minimum_free_space") @:extern
   static public function setMinimumFreeSpace(inBytes:Int) : Void { }

   @:native("__hxcpp_set_target_free_space_percentage") @:extern
   static public function setTargetFreeSpacePercentage(inPercentage:Int) : Void { }

   @:native("__hxcpp_set_minimum_working_memory") @:extern
   static public function setMinimumWorkingMemory(inBytes:Int) : Void { }
}