|
|
| version 1.13, 2017/12/03 23:56:05 | version 1.16, 2020/12/15 00:26:11 |
|---|---|
| Line 23 public: // Methoded | Line 23 public: // Methoded |
| DECLARE_CLASS_VAR(memory, new MMemory); | DECLARE_CLASS_VAR(memory, new MMemory); |
| #ifdef GC_DEBUG | |
| extern "C" void GC_generate_random_backtrace(); | |
| #endif | |
| static void _compact(Request& r, MethodParams&) { | static void _compact(Request& r, MethodParams&) { |
| r.wipe_unused_execution_stack(); | r.wipe_unused_execution_stack(); |
| #ifndef PA_DEBUG_DISABLE_GC | #ifndef PA_DEBUG_DISABLE_GC |
| { | { |
| int saved=GC_dont_gc; | GC_enable(); |
| GC_dont_gc=0; | |
| GC_gcollect(); | GC_gcollect(); |
| #ifdef GC_DEBUG | GC_disable(); |
| GC_generate_random_backtrace(); | |
| #endif | |
| GC_dont_gc=saved; | |
| } | } |
| #endif | #endif |
| } | } |