--- old/src/hotspot/share/code/nmethod.cpp 2017-10-13 11:45:00.256313147 -0400 +++ new/src/hotspot/share/code/nmethod.cpp 2017-10-13 11:44:59.704436083 -0400 @@ -1661,8 +1661,7 @@ // This code must be MP safe, because it is used from parallel GC passes. bool nmethod::test_set_oops_do_mark() { assert(nmethod::oops_do_marking_is_active(), "oops_do_marking_prologue must be called"); - nmethod* observed_mark_link = _oops_do_mark_link; - if (observed_mark_link == NULL) { + if (_oops_do_mark_link == NULL) { // Claim this nmethod for this thread to mark. if (Atomic::cmpxchg(NMETHOD_SENTINEL, &_oops_do_mark_link, (nmethod*)NULL) == NULL) { // Atomically append this nmethod (now claimed) to the head of the list: