hotspot/src/share/vm/asm/codeBuffer.cpp
changeset 7440 eabaf35910a1
parent 7397 5b173b4ca846
child 10964 97771fdc4ad2
equal deleted inserted replaced
7439:572e3f624901 7440:eabaf35910a1
   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 }