Changeset bfc7811 for src/Common


Ignore:
Timestamp:
Apr 10, 2018, 2:43:50 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
9f2012f
Parents:
dbc2c2c
Message:

Fix some GC bugs

Location:
src/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/GC.cc

    rdbc2c2c rbfc7811  
    117117}
    118118
    119 bool stack_check( int* i, GC_Object* o ) {
    120         int j;
    121         return ( i < &j ) == ( (void*)o < (void*)&j );
    122 }
    123 
    124119GC_Object::GC_Object() {
    125120        GC::get().register_object( this );
    126 
    127         int i;
    128         assert(!stack_check(&i, this));
    129121}
    130122
  • src/Common/GC.h

    rdbc2c2c rbfc7811  
    7171inline void new_generation() { GC::get().new_generation(); }
    7272
    73 /// no-op default trace
    74 template<typename T>
    75 inline const GC& operator<< (const GC& gc, const T& x) { return gc; }
     73// /// no-op default trace
     74// template<typename T>
     75// inline const GC& operator<< (const GC& gc, const T& x) { return gc; }
    7676
    7777inline void traceAll(const GC&) {}
Note: See TracChangeset for help on using the changeset viewer.