|
|
| version 1.16, 2020/12/15 00:26:11 | version 1.18, 2020/12/15 17:10:29 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b memory parser class. | Parser: @b memory parser class. |
| Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru>(http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru>(http://paf.design.ru) |
| */ | */ |
| Line 25 DECLARE_CLASS_VAR(memory, new MMemory); | Line 25 DECLARE_CLASS_VAR(memory, new MMemory); |
| 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 | PA_GC_GCOLLECT; |
| { | |
| GC_enable(); | |
| GC_gcollect(); | |
| GC_disable(); | |
| } | |
| #endif | |
| } | } |
| // constructor | // constructor |