--- a/src/hotspot/share/runtime/threadSMR.cpp Wed Nov 20 10:37:46 2019 +0100
+++ b/src/hotspot/share/runtime/threadSMR.cpp Wed Nov 20 09:10:02 2019 -0500
@@ -601,8 +601,6 @@
}
void ThreadsList::dec_nested_handle_cnt() {
- // The decrement only needs to be MO_ACQ_REL since the reference
- // counter is volatile (and the hazard ptr is already NULL).
Atomic::dec(&_nested_handle_cnt);
}
@@ -646,8 +644,6 @@
}
void ThreadsList::inc_nested_handle_cnt() {
- // The increment needs to be MO_SEQ_CST so that the reference counter
- // update is seen before the subsequent hazard ptr update.
Atomic::inc(&_nested_handle_cnt);
}