< prev index next >

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

Print this page

        

*** 112,126 **** ShenandoahCodeRootsLock lock(true); int idx = _recorded_nms->find(nm, ShenandoahNMethod::find_with_nmethod); if (idx != -1) { ShenandoahNMethod* old = _recorded_nms->at(idx); ! _recorded_nms->delete_at(idx); delete old; ! } _recorded_nms->append(nmr); } break; } default: ShouldNotReachHere(); } --- 112,127 ---- ShenandoahCodeRootsLock lock(true); int idx = _recorded_nms->find(nm, ShenandoahNMethod::find_with_nmethod); if (idx != -1) { ShenandoahNMethod* old = _recorded_nms->at(idx); ! _recorded_nms->at_put(idx, nmr); delete old; ! } else { _recorded_nms->append(nmr); } + } break; } default: ShouldNotReachHere(); }
< prev index next >