src/hotspot/share/code/dependencyContext.cpp
changeset 59250 a6deb69743d4
parent 59248 e92153ed8bdc
child 59252 623722a6aeb9
equal deleted inserted replaced
59249:29b0d0b61615 59250:a6deb69743d4
   258 }
   258 }
   259 
   259 
   260 #endif //PRODUCT
   260 #endif //PRODUCT
   261 
   261 
   262 int nmethodBucket::decrement() {
   262 int nmethodBucket::decrement() {
   263   return Atomic::sub(1, &_count);
   263   return Atomic::sub(&_count, 1);
   264 }
   264 }
   265 
   265 
   266 // We use a monotonically increasing epoch counter to track the last epoch a given
   266 // We use a monotonically increasing epoch counter to track the last epoch a given
   267 // dependency context was cleaned. GC threads claim cleanup tasks by performing
   267 // dependency context was cleaned. GC threads claim cleanup tasks by performing
   268 // a CAS on this value.
   268 // a CAS on this value.