Changeset 7e4b44db for src/Common/GC.cc
- Timestamp:
- Mar 22, 2018, 1:20:29 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- bd06384
- Parents:
- 8d7bef2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/GC.cc
r8d7bef2 r7e4b44db 17 17 18 18 #include <algorithm> 19 #include <cassert> 19 20 20 21 GC& GC::get() { … … 101 102 } 102 103 104 bool stack_check( int* i, GC_Object* o ) { 105 int j; 106 return ( i < &j ) == ( (void*)o < (void*)&j ); 107 } 108 103 109 GC_Object::GC_Object() { 104 110 GC::get().register_object( this ); 111 112 int i; 113 assert(!stack_check(&i, this)); 105 114 } 106 115
Note: See TracChangeset
for help on using the changeset viewer.