src/hotspot/share/gc/g1/satbMarkQueue.cpp
changeset 51403 0f3bfea3acf1
parent 51401 58113ce90caf
equal deleted inserted replaced
51402:bfdebb29b1e5 51403:0f3bfea3acf1
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "jvm.h"
       
    27 #include "gc/g1/satbMarkQueue.hpp"
    26 #include "gc/g1/satbMarkQueue.hpp"
    28 #include "gc/shared/collectedHeap.hpp"
    27 #include "gc/shared/collectedHeap.hpp"
    29 #include "logging/log.hpp"
    28 #include "logging/log.hpp"
    30 #include "memory/allocation.inline.hpp"
    29 #include "memory/allocation.inline.hpp"
    31 #include "oops/oop.inline.hpp"
    30 #include "oops/oop.inline.hpp"
    32 #include "runtime/mutexLocker.hpp"
    31 #include "runtime/mutexLocker.hpp"
       
    32 #include "runtime/os.hpp"
    33 #include "runtime/safepoint.hpp"
    33 #include "runtime/safepoint.hpp"
    34 #include "runtime/thread.hpp"
    34 #include "runtime/thread.hpp"
    35 #include "runtime/threadSMR.hpp"
    35 #include "runtime/threadSMR.hpp"
    36 #include "runtime/vmThread.hpp"
    36 #include "runtime/vmThread.hpp"
    37 
    37 
   216 
   216 
   217   BufferNode* nd = _completed_buffers_head;
   217   BufferNode* nd = _completed_buffers_head;
   218   int i = 0;
   218   int i = 0;
   219   while (nd != NULL) {
   219   while (nd != NULL) {
   220     void** buf = BufferNode::make_buffer_from_node(nd);
   220     void** buf = BufferNode::make_buffer_from_node(nd);
   221     jio_snprintf(buffer, SATB_PRINTER_BUFFER_SIZE, "Enqueued: %d", i);
   221     os::snprintf(buffer, SATB_PRINTER_BUFFER_SIZE, "Enqueued: %d", i);
   222     print_satb_buffer(buffer, buf, nd->index(), buffer_size());
   222     print_satb_buffer(buffer, buf, nd->index(), buffer_size());
   223     nd = nd->next();
   223     nd = nd->next();
   224     i += 1;
   224     i += 1;
   225   }
   225   }
   226 
   226 
   227   for (JavaThreadIteratorWithHandle jtiwh; JavaThread *t = jtiwh.next(); ) {
   227   for (JavaThreadIteratorWithHandle jtiwh; JavaThread *t = jtiwh.next(); ) {
   228     jio_snprintf(buffer, SATB_PRINTER_BUFFER_SIZE, "Thread: %s", t->name());
   228     os::snprintf(buffer, SATB_PRINTER_BUFFER_SIZE, "Thread: %s", t->name());
   229     satb_queue_for_thread(t).print(buffer);
   229     satb_queue_for_thread(t).print(buffer);
   230   }
   230   }
   231 
   231 
   232   shared_satb_queue()->print("Shared");
   232   shared_satb_queue()->print("Shared");
   233 
   233