src/share/vm/asm/codeBuffer.cpp

changeset 2357
79d8657be916
parent 2314
f95d63e2154a
child 3236
754110e02bd5
equal deleted inserted replaced
2356:4de5f4101cfd 2357:79d8657be916
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 }

mercurial