src/hotspot/share/gc/z/zNMethod.cpp
changeset 55499 1887e16a5657
parent 55005 9b70ebd131b4
child 57490 7826a2a06f87
--- a/src/hotspot/share/gc/z/zNMethod.cpp	Mon Jun 24 18:51:54 2019 -0400
+++ b/src/hotspot/share/gc/z/zNMethod.cpp	Mon Jun 24 22:38:17 2019 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2018, 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
@@ -285,7 +285,7 @@
       // We don't need to take the lock when unlinking nmethods from
       // the Method, because it is only concurrently unlinked by
       // the entry barrier, which acquires the per nmethod lock.
-      nm->unlink_from_method();
+      nm->unlink_from_method(false /* acquire_lock */);
       return;
     }