src/share/vm/gc_implementation/g1/satbQueue.cpp

changeset 7833
0f8f1250fed5
parent 7832
b5d14ef905b5
child 7834
399885e13e90
     1.1 --- a/src/share/vm/gc_implementation/g1/satbQueue.cpp	Fri Apr 17 13:49:04 2015 -0400
     1.2 +++ b/src/share/vm/gc_implementation/g1/satbQueue.cpp	Wed Apr 22 14:06:49 2015 -0400
     1.3 @@ -182,12 +182,6 @@
     1.4    return should_enqueue;
     1.5  }
     1.6  
     1.7 -void ObjPtrQueue::apply_closure(ObjectClosure* cl) {
     1.8 -  if (_buf != NULL) {
     1.9 -    apply_closure_to_buffer(cl, _buf, _index, _sz);
    1.10 -  }
    1.11 -}
    1.12 -
    1.13  void ObjPtrQueue::apply_closure_and_empty(ObjectClosure* cl) {
    1.14    if (_buf != NULL) {
    1.15      apply_closure_to_buffer(cl, _buf, _index, _sz);
    1.16 @@ -319,28 +313,6 @@
    1.17    }
    1.18  }
    1.19  
    1.20 -void SATBMarkQueueSet::iterate_completed_buffers_read_only(ObjectClosure* cl) {
    1.21 -  assert(SafepointSynchronize::is_at_safepoint(), "Must be at safepoint.");
    1.22 -  assert(cl != NULL, "pre-condition");
    1.23 -
    1.24 -  BufferNode* nd = _completed_buffers_head;
    1.25 -  while (nd != NULL) {
    1.26 -    void** buf = BufferNode::make_buffer_from_node(nd);
    1.27 -    ObjPtrQueue::apply_closure_to_buffer(cl, buf, 0, _sz);
    1.28 -    nd = nd->next();
    1.29 -  }
    1.30 -}
    1.31 -
    1.32 -void SATBMarkQueueSet::iterate_thread_buffers_read_only(ObjectClosure* cl) {
    1.33 -  assert(SafepointSynchronize::is_at_safepoint(), "Must be at safepoint.");
    1.34 -  assert(cl != NULL, "pre-condition");
    1.35 -
    1.36 -  for (JavaThread* t = Threads::first(); t; t = t->next()) {
    1.37 -    t->satb_mark_queue().apply_closure(cl);
    1.38 -  }
    1.39 -  shared_satb_queue()->apply_closure(cl);
    1.40 -}
    1.41 -
    1.42  #ifndef PRODUCT
    1.43  // Helpful for debugging
    1.44  

mercurial