< prev index next >

src/hotspot/share/gc/shared/oopStorage.cpp

Print this page

        

*** 147,157 **** int new_value = Atomic::add(&_refcount, 1); assert(new_value >= 1, "negative refcount %d", new_value - 1); } bool OopStorage::ActiveArray::decrement_refcount() const { ! int new_value = Atomic::sub(1, &_refcount); assert(new_value >= 0, "negative refcount %d", new_value); return new_value == 0; } bool OopStorage::ActiveArray::push(Block* block) { --- 147,157 ---- int new_value = Atomic::add(&_refcount, 1); assert(new_value >= 1, "negative refcount %d", new_value - 1); } bool OopStorage::ActiveArray::decrement_refcount() const { ! int new_value = Atomic::sub(&_refcount, 1); assert(new_value >= 0, "negative refcount %d", new_value); return new_value == 0; } bool OopStorage::ActiveArray::push(Block* block) {
*** 722,732 **** releasing |= entry_bitmask; ++count; } // Release the contiguous entries that are in block. block->release_entries(releasing, this); ! Atomic::sub(count, &_allocation_count); } } const size_t initial_active_array_size = 8; --- 722,732 ---- releasing |= entry_bitmask; ++count; } // Release the contiguous entries that are in block. block->release_entries(releasing, this); ! Atomic::sub(&_allocation_count, count); } } const size_t initial_active_array_size = 8;
< prev index next >