hotspot/src/share/vm/gc_implementation/shared/parGCAllocBuffer.cpp
changeset 24098 48f07e2c74de
parent 24092 e274d864545a
child 24424 2658d7834c6e
equal deleted inserted replaced
24097:99374b567304 24098:48f07e2c74de
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "gc_implementation/shared/parGCAllocBuffer.hpp"
    26 #include "gc_implementation/shared/parGCAllocBuffer.hpp"
    27 #include "memory/sharedHeap.hpp"
    27 #include "memory/sharedHeap.hpp"
    28 #include "oops/arrayOop.hpp"
    28 #include "oops/arrayOop.hpp"
    29 #include "oops/oop.inline.hpp"
    29 #include "oops/oop.inline.hpp"
       
    30 #include "utilities/globalDefinitions.hpp"
    30 
    31 
    31 ParGCAllocBuffer::ParGCAllocBuffer(size_t desired_plab_sz_) :
    32 ParGCAllocBuffer::ParGCAllocBuffer(size_t desired_plab_sz_) :
    32   _word_sz(desired_plab_sz_), _bottom(NULL), _top(NULL),
    33   _word_sz(desired_plab_sz_), _bottom(NULL), _top(NULL),
    33   _end(NULL), _hard_end(NULL),
    34   _end(NULL), _hard_end(NULL),
    34   _retained(false), _retained_filler(),
    35   _retained(false), _retained_filler(),
   130   _unused    = 0;
   131   _unused    = 0;
   131 }
   132 }
   132 
   133 
   133 #ifndef PRODUCT
   134 #ifndef PRODUCT
   134 void ParGCAllocBuffer::print() {
   135 void ParGCAllocBuffer::print() {
   135   gclog_or_tty->print("parGCAllocBuffer: _bottom: %p  _top: %p  _end: %p  _hard_end: %p"
   136   gclog_or_tty->print("parGCAllocBuffer: _bottom: " PTR_FORMAT "  _top: " PTR_FORMAT
   136              "_retained: %c _retained_filler: [%p,%p)\n",
   137              "  _end: " PTR_FORMAT "  _hard_end: " PTR_FORMAT " _retained: %c"
       
   138              " _retained_filler: [" PTR_FORMAT "," PTR_FORMAT ")\n",
   137              _bottom, _top, _end, _hard_end,
   139              _bottom, _top, _end, _hard_end,
   138              "FT"[_retained], _retained_filler.start(), _retained_filler.end());
   140              "FT"[_retained], _retained_filler.start(), _retained_filler.end());
   139 }
   141 }
   140 #endif // !PRODUCT
   142 #endif // !PRODUCT
   141 
   143