src/hotspot/share/memory/metaspace.cpp
changeset 59252 623722a6aeb9
parent 59250 a6deb69743d4
child 59290 97d13893ec3c
equal deleted inserted replaced
59251:4cbfa5077d68 59252:623722a6aeb9
   160   }
   160   }
   161 
   161 
   162   if (can_retry != NULL) {
   162   if (can_retry != NULL) {
   163     *can_retry = true;
   163     *can_retry = true;
   164   }
   164   }
   165   size_t prev_value = Atomic::cmpxchg(new_value, &_capacity_until_GC, old_capacity_until_GC);
   165   size_t prev_value = Atomic::cmpxchg(&_capacity_until_GC, old_capacity_until_GC, new_value);
   166 
   166 
   167   if (old_capacity_until_GC != prev_value) {
   167   if (old_capacity_until_GC != prev_value) {
   168     return false;
   168     return false;
   169   }
   169   }
   170 
   170