src/share/vm/asm/codeBuffer.cpp

changeset 2040
0e35fa8ebccd
parent 1958
d93949c5bdcc
child 2103
3e8fbc61cee8
     1.1 --- a/src/share/vm/asm/codeBuffer.cpp	Fri Jul 30 10:21:15 2010 -0700
     1.2 +++ b/src/share/vm/asm/codeBuffer.cpp	Tue Aug 03 15:55:03 2010 -0700
     1.3 @@ -128,7 +128,11 @@
     1.4    delete _overflow_arena;
     1.5  
     1.6  #ifdef ASSERT
     1.7 +  // Save allocation type to execute assert in ~ResourceObj()
     1.8 +  // which is called after this destructor.
     1.9 +  ResourceObj::allocation_type at = _default_oop_recorder.get_allocation_type();
    1.10    Copy::fill_to_bytes(this, sizeof(*this), badResourceValue);
    1.11 +  ResourceObj::set_allocation_type((address)(&_default_oop_recorder), at);
    1.12  #endif
    1.13  }
    1.14  

mercurial