hotspot/src/share/vm/memory/resourceArea.hpp
changeset 22551 9bf46d16dcc6
parent 18928 ac0163dd0a50
child 25946 1572c9f03fb9
equal deleted inserted replaced
22550:820966182ab9 22551:9bf46d16dcc6
   194 // was used. With new style lazy deoptimization the vframeArray is created in the
   194 // was used. With new style lazy deoptimization the vframeArray is created in the
   195 // the thread that will use it and we can use a much simpler scheme for the vframeArray
   195 // the thread that will use it and we can use a much simpler scheme for the vframeArray
   196 // leveraging existing data structures if we simply create a way to manage this one
   196 // leveraging existing data structures if we simply create a way to manage this one
   197 // special need for a ResourceMark. If ResourceMark simply inherited from CHeapObj
   197 // special need for a ResourceMark. If ResourceMark simply inherited from CHeapObj
   198 // then existing ResourceMarks would work fine since no one use new to allocate them
   198 // then existing ResourceMarks would work fine since no one use new to allocate them
   199 // and they would be stack allocated. This leaves open the possibilty of accidental
   199 // and they would be stack allocated. This leaves open the possibility of accidental
   200 // misuse so we simple duplicate the ResourceMark functionality here.
   200 // misuse so we simple duplicate the ResourceMark functionality here.
   201 
   201 
   202 class DeoptResourceMark: public CHeapObj<mtInternal> {
   202 class DeoptResourceMark: public CHeapObj<mtInternal> {
   203 protected:
   203 protected:
   204   ResourceArea *_area;          // Resource area to stack allocate
   204   ResourceArea *_area;          // Resource area to stack allocate