src/share/vm/gc_implementation/parallelScavenge/psVirtualspace.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/gc_implementation/parallelScavenge

src/share/vm/gc_implementation/parallelScavenge/psVirtualspace.hpp

Print this page
rev 5732 : [mq]: comments2


  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSVIRTUALSPACE_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSVIRTUALSPACE_HPP
  27 
  28 #include "runtime/virtualspace.hpp"
  29 
  30 // VirtualSpace for the parallel scavenge collector.
  31 //
  32 // VirtualSpace is data structure for committing a previously reserved address
  33 // range in smaller chunks.
  34 
  35 class PSVirtualSpace : public CHeapObj<mtGC> {
  36   friend class VMStructs;
  37  protected:
  38   // The space is committed/uncommited in chunks of size _alignment.  The
  39   // ReservedSpace passed to initialize() must be aligned to this value.
  40   const size_t _alignment;
  41 
  42   // Reserved area
  43   char* _reserved_low_addr;
  44   char* _reserved_high_addr;
  45 
  46   // Committed area
  47   char* _committed_low_addr;
  48   char* _committed_high_addr;
  49 
  50   // The entire space has been committed and pinned in memory, no
  51   // os::commit_memory() or os::uncommit_memory().
  52   bool _special;
  53 
  54   // Convenience wrapper.
  55   inline static size_t pointer_delta(const char* left, const char* right);
  56 
  57  public:
  58   PSVirtualSpace(ReservedSpace rs, size_t alignment);




  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSVIRTUALSPACE_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_PSVIRTUALSPACE_HPP
  27 
  28 #include "runtime/virtualspace.hpp"
  29 
  30 // VirtualSpace for the parallel scavenge collector.
  31 //
  32 // VirtualSpace is data structure for committing a previously reserved address
  33 // range in smaller chunks.
  34 
  35 class PSVirtualSpace : public CHeapObj<mtGC> {
  36   friend class VMStructs;
  37  protected:
  38   // The space is committed/uncommitted in chunks of size _alignment.  The
  39   // ReservedSpace passed to initialize() must be aligned to this value.
  40   const size_t _alignment;
  41 
  42   // Reserved area
  43   char* _reserved_low_addr;
  44   char* _reserved_high_addr;
  45 
  46   // Committed area
  47   char* _committed_low_addr;
  48   char* _committed_high_addr;
  49 
  50   // The entire space has been committed and pinned in memory, no
  51   // os::commit_memory() or os::uncommit_memory().
  52   bool _special;
  53 
  54   // Convenience wrapper.
  55   inline static size_t pointer_delta(const char* left, const char* right);
  56 
  57  public:
  58   PSVirtualSpace(ReservedSpace rs, size_t alignment);


src/share/vm/gc_implementation/parallelScavenge/psVirtualspace.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File