mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8229961: Assert failure in compiler/graalunit/HotspotTest.java
Reviewed-by: kvn
This commit is contained in:
parent
d3f7666418
commit
bca86d6492
26 changed files with 150 additions and 60 deletions
|
@ -776,9 +776,9 @@ class nmethodLocker : public StackObj {
|
|||
lock(_nm);
|
||||
}
|
||||
|
||||
static void lock(CompiledMethod* method) {
|
||||
static void lock(CompiledMethod* method, bool zombie_ok = false) {
|
||||
if (method == NULL) return;
|
||||
lock_nmethod(method);
|
||||
lock_nmethod(method, zombie_ok);
|
||||
}
|
||||
|
||||
static void unlock(CompiledMethod* method) {
|
||||
|
@ -792,10 +792,10 @@ class nmethodLocker : public StackObj {
|
|||
}
|
||||
|
||||
CompiledMethod* code() { return _nm; }
|
||||
void set_code(CompiledMethod* new_nm) {
|
||||
void set_code(CompiledMethod* new_nm, bool zombie_ok = false) {
|
||||
unlock(_nm); // note: This works even if _nm==new_nm.
|
||||
_nm = new_nm;
|
||||
lock(_nm);
|
||||
lock(_nm, zombie_ok);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue