hotspot/src/share/vm/gc_implementation/g1/satbQueue.cpp
changeset 29796 7a04e5c250d1
parent 28507 354ef83ee258
child 30154 39cd4e2ccf1c
equal deleted inserted replaced
29795:984c5c379c6a 29796:7a04e5c250d1
    29 #include "memory/sharedHeap.hpp"
    29 #include "memory/sharedHeap.hpp"
    30 #include "oops/oop.inline.hpp"
    30 #include "oops/oop.inline.hpp"
    31 #include "runtime/mutexLocker.hpp"
    31 #include "runtime/mutexLocker.hpp"
    32 #include "runtime/thread.hpp"
    32 #include "runtime/thread.hpp"
    33 #include "runtime/vmThread.hpp"
    33 #include "runtime/vmThread.hpp"
    34 
       
    35 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
       
    36 
    34 
    37 void ObjPtrQueue::flush() {
    35 void ObjPtrQueue::flush() {
    38   // The buffer might contain refs into the CSet. We have to filter it
    36   // The buffer might contain refs into the CSet. We have to filter it
    39   // first before we flush it, otherwise we might end up with an
    37   // first before we flush it, otherwise we might end up with an
    40   // enqueued buffer with refs into the CSet which breaks our invariants.
    38   // enqueued buffer with refs into the CSet which breaks our invariants.
   180 
   178 
   181 void ObjPtrQueue::print(const char* name,
   179 void ObjPtrQueue::print(const char* name,
   182                         void** buf, size_t index, size_t sz) {
   180                         void** buf, size_t index, size_t sz) {
   183   gclog_or_tty->print_cr("  SATB BUFFER [%s] buf: "PTR_FORMAT" "
   181   gclog_or_tty->print_cr("  SATB BUFFER [%s] buf: "PTR_FORMAT" "
   184                          "index: "SIZE_FORMAT" sz: "SIZE_FORMAT,
   182                          "index: "SIZE_FORMAT" sz: "SIZE_FORMAT,
   185                          name, buf, index, sz);
   183                          name, p2i(buf), index, sz);
   186 }
   184 }
   187 #endif // PRODUCT
   185 #endif // PRODUCT
   188 
   186 
   189 #ifdef ASSERT
   187 #ifdef ASSERT
   190 void ObjPtrQueue::verify_oops_in_buffer() {
   188 void ObjPtrQueue::verify_oops_in_buffer() {