src/share/vm/compiler/compilerDirectives.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/compiler/compilerDirectives.cpp	Fri Mar 11 14:44:40 2016
--- new/src/share/vm/compiler/compilerDirectives.cpp	Fri Mar 11 14:44:40 2016

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 1998, 2016, 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.
*** 470,482 **** --- 470,485 ---- directive->set_next(_top); _top = directive; _depth++; } ! void DirectivesStack::pop(int count) { MutexLockerEx locker(DirectivesStack_lock, Mutex::_no_safepoint_check_flag); + assert(count > -1, "No negative values"); + for (int i = 0; i < count; i++) { pop_inner(); + } } void DirectivesStack::pop_inner() { assert(DirectivesStack_lock->owned_by_self(), "");

src/share/vm/compiler/compilerDirectives.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File