We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ad428 commit 7835cdbCopy full SHA for 7835cdb
src/hotspot/share/code/nmethod.cpp
@@ -1757,10 +1757,10 @@ class IsUnloadingState: public AllStatic {
1757
bool nmethod::is_unloading() {
1758
uint8_t state = RawAccess<MO_RELAXED>::load(&_is_unloading_state);
1759
bool state_is_unloading = IsUnloadingState::is_unloading(state);
1760
- uint8_t state_unloading_cycle = IsUnloadingState::unloading_cycle(state);
1761
if (state_is_unloading) {
1762
return true;
1763
}
+ uint8_t state_unloading_cycle = IsUnloadingState::unloading_cycle(state);
1764
uint8_t current_cycle = CodeCache::unloading_cycle();
1765
if (state_unloading_cycle == current_cycle) {
1766
return false;
0 commit comments