< prev index next >

src/hotspot/share/gc/parallel/psVirtualspace.hpp

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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_PARALLEL_PSVIRTUALSPACE_HPP
  26 #define SHARE_VM_GC_PARALLEL_PSVIRTUALSPACE_HPP
  27 

  28 #include "memory/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;




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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_PARALLEL_PSVIRTUALSPACE_HPP
  26 #define SHARE_VM_GC_PARALLEL_PSVIRTUALSPACE_HPP
  27 
  28 #include "memory/allocation.hpp"
  29 #include "memory/virtualspace.hpp"
  30 
  31 // VirtualSpace for the parallel scavenge collector.
  32 //
  33 // VirtualSpace is data structure for committing a previously reserved address
  34 // range in smaller chunks.
  35 
  36 class PSVirtualSpace : public CHeapObj<mtGC> {
  37   friend class VMStructs;
  38  protected:
  39   // The space is committed/uncommitted in chunks of size _alignment.  The
  40   // ReservedSpace passed to initialize() must be aligned to this value.
  41   const size_t _alignment;
  42 
  43   // Reserved area
  44   char* _reserved_low_addr;
  45   char* _reserved_high_addr;
  46 
  47   // Committed area
  48   char* _committed_low_addr;


< prev index next >