mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8265915: adjust state_unloading_cycle compuation order in nmethod::is_unloading
Reviewed-by: thartmann
This commit is contained in:
parent
20ad428974
commit
7835cdbef4
1 changed files with 1 additions and 1 deletions
|
@ -1757,10 +1757,10 @@ public:
|
||||||
bool nmethod::is_unloading() {
|
bool nmethod::is_unloading() {
|
||||||
uint8_t state = RawAccess<MO_RELAXED>::load(&_is_unloading_state);
|
uint8_t state = RawAccess<MO_RELAXED>::load(&_is_unloading_state);
|
||||||
bool state_is_unloading = IsUnloadingState::is_unloading(state);
|
bool state_is_unloading = IsUnloadingState::is_unloading(state);
|
||||||
uint8_t state_unloading_cycle = IsUnloadingState::unloading_cycle(state);
|
|
||||||
if (state_is_unloading) {
|
if (state_is_unloading) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
uint8_t state_unloading_cycle = IsUnloadingState::unloading_cycle(state);
|
||||||
uint8_t current_cycle = CodeCache::unloading_cycle();
|
uint8_t current_cycle = CodeCache::unloading_cycle();
|
||||||
if (state_unloading_cycle == current_cycle) {
|
if (state_unloading_cycle == current_cycle) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue