Skip to content
4 changes: 2 additions & 2 deletions src/hotspot/share/code/nmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2122,8 +2122,8 @@ void nmethod::unlink() {
// Clear the link between this nmethod and a HotSpotNmethod mirror
JVMCINMethodData* nmethod_data = jvmci_nmethod_data();
if (nmethod_data != nullptr) {
nmethod_data->invalidate_nmethod_mirror(this, is_cold() ?
nmethod::InvalidationReason::UNLOADING_COLD :
nmethod_data->invalidate_nmethod_mirror(this, is_cold() ?
nmethod::InvalidationReason::UNLOADING_COLD :
nmethod::InvalidationReason::UNLOADING);
}
#endif
Expand Down