Changeset bfc7811 for src/Common
- Timestamp:
- Apr 10, 2018, 2:43:50 PM (6 years ago)
- Branches:
- new-env, with_gc
- Children:
- 9f2012f
- Parents:
- dbc2c2c
- Location:
- src/Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/GC.cc
rdbc2c2c rbfc7811 117 117 } 118 118 119 bool stack_check( int* i, GC_Object* o ) {120 int j;121 return ( i < &j ) == ( (void*)o < (void*)&j );122 }123 124 119 GC_Object::GC_Object() { 125 120 GC::get().register_object( this ); 126 127 int i;128 assert(!stack_check(&i, this));129 121 } 130 122 -
src/Common/GC.h
rdbc2c2c rbfc7811 71 71 inline void new_generation() { GC::get().new_generation(); } 72 72 73 // / no-op default trace74 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; } 76 76 77 77 inline void traceAll(const GC&) {}
Note: See TracChangeset
for help on using the changeset viewer.