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

Print this page


   1 /*
   2  * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 #define VM_STRUCTS_PARALLELGC(nonstatic_field, \
  26                    static_field) \
  27                                                                                                                                      \
  28   /**********************/                                                                                                           \
  29   /* Parallel GC fields */                                                                                                           \
  30   /**********************/                                                                                                           \
  31   nonstatic_field(PSVirtualSpace,              _alignment,                                    const size_t)                          \
  32   nonstatic_field(PSVirtualSpace,              _reserved_low_addr,                            char*)                                 \
  33   nonstatic_field(PSVirtualSpace,              _reserved_high_addr,                           char*)                                 \
  34   nonstatic_field(PSVirtualSpace,              _committed_low_addr,                           char*)                                 \
  35   nonstatic_field(PSVirtualSpace,              _committed_high_addr,                          char*)                                 \
  36                                                                                                                                      \
  37   nonstatic_field(ImmutableSpace,              _bottom,                                       HeapWord*)                             \
  38   nonstatic_field(ImmutableSpace,              _end,                                          HeapWord*)                             \
  39                                                                                                                                      \
  40   nonstatic_field(MutableSpace,                _top,                                          HeapWord*)                             \
  41                                                                                                                                      \
  42   nonstatic_field(PSYoungGen,                  _reserved,                                     MemRegion)                             \
  43   nonstatic_field(PSYoungGen,                  _virtual_space,                                PSVirtualSpace*)                       \
  44   nonstatic_field(PSYoungGen,                  _eden_space,                                   MutableSpace*)                         \


  76            declare_type(MutableSpace, ImmutableSpace)                     \
  77   declare_toplevel_type(PSYoungGen)                                       \
  78            declare_type(ASPSYoungGen, PSYoungGen)                         \
  79   declare_toplevel_type(PSOldGen)                                         \
  80            declare_type(ASPSOldGen, PSOldGen)                             \
  81            declare_type(PSPermGen, PSOldGen)                              \
  82                                                                           \
  83   /*****************************/                                         \
  84   /* Parallel GC pointer types */                                         \
  85   /*****************************/                                         \
  86                                                                           \
  87   declare_toplevel_type(PSVirtualSpace*)                                  \
  88   declare_toplevel_type(ImmutableSpace*)                                  \
  89   declare_toplevel_type(MutableSpace*)                                    \
  90   declare_toplevel_type(PSYoungGen*)                                      \
  91   declare_toplevel_type(ASPSYoungGen*)                                    \
  92   declare_toplevel_type(PSOldGen*)                                        \
  93   declare_toplevel_type(ASPSOldGen*)                                      \
  94   declare_toplevel_type(PSPermGen*)                                       \
  95   declare_toplevel_type(ParallelScavengeHeap*)


   1 /*
   2  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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_IMPLEMENTATION_PARALLELSCAVENGE_VMSTRUCTS_PARALLELGC_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_VMSTRUCTS_PARALLELGC_HPP
  27 
  28 #define VM_STRUCTS_PARALLELGC(nonstatic_field, \
  29                    static_field) \
  30                                                                                                                                      \
  31   /**********************/                                                                                                           \
  32   /* Parallel GC fields */                                                                                                           \
  33   /**********************/                                                                                                           \
  34   nonstatic_field(PSVirtualSpace,              _alignment,                                    const size_t)                          \
  35   nonstatic_field(PSVirtualSpace,              _reserved_low_addr,                            char*)                                 \
  36   nonstatic_field(PSVirtualSpace,              _reserved_high_addr,                           char*)                                 \
  37   nonstatic_field(PSVirtualSpace,              _committed_low_addr,                           char*)                                 \
  38   nonstatic_field(PSVirtualSpace,              _committed_high_addr,                          char*)                                 \
  39                                                                                                                                      \
  40   nonstatic_field(ImmutableSpace,              _bottom,                                       HeapWord*)                             \
  41   nonstatic_field(ImmutableSpace,              _end,                                          HeapWord*)                             \
  42                                                                                                                                      \
  43   nonstatic_field(MutableSpace,                _top,                                          HeapWord*)                             \
  44                                                                                                                                      \
  45   nonstatic_field(PSYoungGen,                  _reserved,                                     MemRegion)                             \
  46   nonstatic_field(PSYoungGen,                  _virtual_space,                                PSVirtualSpace*)                       \
  47   nonstatic_field(PSYoungGen,                  _eden_space,                                   MutableSpace*)                         \


  79            declare_type(MutableSpace, ImmutableSpace)                     \
  80   declare_toplevel_type(PSYoungGen)                                       \
  81            declare_type(ASPSYoungGen, PSYoungGen)                         \
  82   declare_toplevel_type(PSOldGen)                                         \
  83            declare_type(ASPSOldGen, PSOldGen)                             \
  84            declare_type(PSPermGen, PSOldGen)                              \
  85                                                                           \
  86   /*****************************/                                         \
  87   /* Parallel GC pointer types */                                         \
  88   /*****************************/                                         \
  89                                                                           \
  90   declare_toplevel_type(PSVirtualSpace*)                                  \
  91   declare_toplevel_type(ImmutableSpace*)                                  \
  92   declare_toplevel_type(MutableSpace*)                                    \
  93   declare_toplevel_type(PSYoungGen*)                                      \
  94   declare_toplevel_type(ASPSYoungGen*)                                    \
  95   declare_toplevel_type(PSOldGen*)                                        \
  96   declare_toplevel_type(ASPSOldGen*)                                      \
  97   declare_toplevel_type(PSPermGen*)                                       \
  98   declare_toplevel_type(ParallelScavengeHeap*)
  99 
 100 #endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_VMSTRUCTS_PARALLELGC_HPP