--- old/src/share/vm/memory/resourceArea.hpp 2015-11-19 01:02:03.512214480 -0500 +++ new/src/share/vm/memory/resourceArea.hpp 2015-11-19 01:02:01.968127603 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * 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 @@ -121,7 +121,7 @@ debug_only(_area->_nesting++;) assert( _area->_nesting > 0, "must stack allocate RMs" ); #ifdef ASSERT - Thread* thread = ThreadLocalStorage::thread(); + Thread* thread = Thread::current_or_null(); if (thread != NULL) { _thread = thread; _previous_resource_mark = thread->current_resource_mark();