equal
deleted
inserted
replaced
129 delete _overflow_arena; |
129 delete _overflow_arena; |
130 |
130 |
131 #ifdef ASSERT |
131 #ifdef ASSERT |
132 // Save allocation type to execute assert in ~ResourceObj() |
132 // Save allocation type to execute assert in ~ResourceObj() |
133 // which is called after this destructor. |
133 // which is called after this destructor. |
|
134 assert(_default_oop_recorder.allocated_on_stack(), "should be embedded object"); |
134 ResourceObj::allocation_type at = _default_oop_recorder.get_allocation_type(); |
135 ResourceObj::allocation_type at = _default_oop_recorder.get_allocation_type(); |
135 Copy::fill_to_bytes(this, sizeof(*this), badResourceValue); |
136 Copy::fill_to_bytes(this, sizeof(*this), badResourceValue); |
136 ResourceObj::set_allocation_type((address)(&_default_oop_recorder), at); |
137 ResourceObj::set_allocation_type((address)(&_default_oop_recorder), at); |
137 #endif |
138 #endif |
138 } |
139 } |