< prev index next >

src/share/vm/memory/resourceArea.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 119,129 **** _area(r), _chunk(r->_chunk), _hwm(r->_hwm), _max(r->_max) { _size_in_bytes = r->_size_in_bytes; debug_only(_area->_nesting++;) assert( _area->_nesting > 0, "must stack allocate RMs" ); #ifdef ASSERT ! Thread* thread = ThreadLocalStorage::thread(); if (thread != NULL) { _thread = thread; _previous_resource_mark = thread->current_resource_mark(); thread->set_current_resource_mark(this); } else { --- 119,129 ---- _area(r), _chunk(r->_chunk), _hwm(r->_hwm), _max(r->_max) { _size_in_bytes = r->_size_in_bytes; debug_only(_area->_nesting++;) assert( _area->_nesting > 0, "must stack allocate RMs" ); #ifdef ASSERT ! Thread* thread = Thread::current_or_null(); if (thread != NULL) { _thread = thread; _previous_resource_mark = thread->current_resource_mark(); thread->set_current_resource_mark(this); } else {
< prev index next >