mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
Merge
This commit is contained in:
commit
7e3f05c6f7
94 changed files with 2103 additions and 1157 deletions
|
@ -2288,13 +2288,13 @@ nmethodLocker::nmethodLocker(address pc) {
|
|||
void nmethodLocker::lock_nmethod(nmethod* nm, bool zombie_ok) {
|
||||
if (nm == NULL) return;
|
||||
Atomic::inc(&nm->_lock_count);
|
||||
guarantee(zombie_ok || !nm->is_zombie(), "cannot lock a zombie method");
|
||||
assert(zombie_ok || !nm->is_zombie(), "cannot lock a zombie method");
|
||||
}
|
||||
|
||||
void nmethodLocker::unlock_nmethod(nmethod* nm) {
|
||||
if (nm == NULL) return;
|
||||
Atomic::dec(&nm->_lock_count);
|
||||
guarantee(nm->_lock_count >= 0, "unmatched nmethod lock/unlock");
|
||||
assert(nm->_lock_count >= 0, "unmatched nmethod lock/unlock");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue