< prev index next >

src/hotspot/share/gc/g1/g1RedirtyCardsQueue.cpp

Print this page

        

*** 127,146 **** } } void G1RedirtyCardsQueueSet::enqueue_completed_buffer(BufferNode* node) { assert(_collecting, "precondition"); ! Atomic::add(buffer_size() - node->index(), &_entry_count); _list.push(*node); update_tail(node); } void G1RedirtyCardsQueueSet::merge_bufferlist(LocalQSet* src) { assert(_collecting, "precondition"); const G1BufferNodeList from = src->take_all_completed_buffers(); if (from._head != NULL) { assert(from._tail != NULL, "invariant"); ! Atomic::add(from._entry_count, &_entry_count); _list.prepend(*from._head, *from._tail); update_tail(from._tail); } } --- 127,146 ---- } } void G1RedirtyCardsQueueSet::enqueue_completed_buffer(BufferNode* node) { assert(_collecting, "precondition"); ! Atomic::add(&_entry_count, buffer_size() - node->index()); _list.push(*node); update_tail(node); } void G1RedirtyCardsQueueSet::merge_bufferlist(LocalQSet* src) { assert(_collecting, "precondition"); const G1BufferNodeList from = src->take_all_completed_buffers(); if (from._head != NULL) { assert(from._tail != NULL, "invariant"); ! Atomic::add(&_entry_count, from._entry_count); _list.prepend(*from._head, *from._tail); update_tail(from._tail); } }
< prev index next >