< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahNMethod.cpp

Print this page
rev 59534 : 8245961: Shenandoah: move some root marking to concurrent phase

*** 521,537 **** _list[index] = old_list[index]; } } ShenandoahNMethodList* ShenandoahNMethodList::acquire() { ! assert(CodeCache_lock->owned_by_self(), "Lock must be held"); _ref_count++; return this; } void ShenandoahNMethodList::release() { ! assert(CodeCache_lock->owned_by_self(), "Lock must be held"); _ref_count--; if (_ref_count == 0) { delete this; } } --- 521,537 ---- _list[index] = old_list[index]; } } ShenandoahNMethodList* ShenandoahNMethodList::acquire() { ! assert_locked_or_safepoint(CodeCache_lock); _ref_count++; return this; } void ShenandoahNMethodList::release() { ! assert_locked_or_safepoint(CodeCache_lock); _ref_count--; if (_ref_count == 0) { delete this; } }
< prev index next >