|
|
| version 1.12, 2017/02/07 22:00:29 | version 1.14, 2019/12/25 22:22:06 |
|---|---|
| Line 23 public: // Methoded | Line 23 public: // Methoded |
| DECLARE_CLASS_VAR(memory, new MMemory); | DECLARE_CLASS_VAR(memory, new MMemory); |
| #undef GC_DEBUG | |
| #ifdef GC_DEBUG | #ifdef GC_DEBUG |
| extern "C" GC_API void GC_print_backtrace(void *); | extern "C" void GC_generate_random_backtrace(); |
| void *debug_print_backtrace=0; | |
| #endif | #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_dont_gc=0; | GC_dont_gc=0; |
| GC_gcollect(); | GC_gcollect(); |
| GC_dont_gc=saved; | GC_dont_gc=1; |
| } | |
| #ifdef GC_DEBUG | #ifdef GC_DEBUG |
| if(debug_print_backtrace) | GC_generate_random_backtrace(); |
| GC_print_backtrace(debug_print_backtrace); | |
| #endif | |
| #endif | #endif |
| } | } |
| #endif | |
| } | |
| // constructor | // constructor |