Diff for /parser3/src/classes/memory.C between versions 1.9 and 1.16

version 1.9, 2012/03/16 09:24:07 version 1.16, 2020/12/15 00:26:11
Line 1 Line 1
 /** @file  /** @file
         Parser: @b memory parser class.          Parser: @b memory parser class.
   
         Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com)          Copyright (c) 2001-2017 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 21  public: // Methoded Line 21  public: // Methoded
   
 // global variables  // global variables
   
 DECLARE_CLASS_VAR(memory, 0 /*fictive*/, new MMemory);  DECLARE_CLASS_VAR(memory, new MMemory);
   
 #undef GC_DEBUG  
 #ifdef GC_DEBUG  
 extern "C" GC_API void GC_print_backtrace(void *);  
 void *debug_print_backtrace=0;  
 #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();
                 GC_dont_gc=saved;                  GC_disable();
         }          }
 #ifdef GC_DEBUG  
         if(debug_print_backtrace)  
                 GC_print_backtrace(debug_print_backtrace);  
 #endif  #endif
 #endif  }
         }  
   
 // constructor  // constructor
   

Removed from v.1.9  
changed lines
  Added in v.1.16


E-mail: