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

changeset 0
f90c822e73f8
child 6876
710a3c8b516e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/vmStructs_parallelgc.hpp	Wed Apr 27 01:25:04 2016 +0800
     1.3 @@ -0,0 +1,96 @@
     1.4 +/*
     1.5 + * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.
    1.11 + *
    1.12 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.14 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.15 + * version 2 for more details (a copy is included in the LICENSE file that
    1.16 + * accompanied this code).
    1.17 + *
    1.18 + * You should have received a copy of the GNU General Public License version
    1.19 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.21 + *
    1.22 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.23 + * or visit www.oracle.com if you need additional information or have any
    1.24 + * questions.
    1.25 + *
    1.26 + */
    1.27 +
    1.28 +#ifndef SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_VMSTRUCTS_PARALLELGC_HPP
    1.29 +#define SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_VMSTRUCTS_PARALLELGC_HPP
    1.30 +
    1.31 +#define VM_STRUCTS_PARALLELGC(nonstatic_field, \
    1.32 +                   static_field) \
    1.33 +                                                                                                                                     \
    1.34 +  /**********************/                                                                                                           \
    1.35 +  /* Parallel GC fields */                                                                                                           \
    1.36 +  /**********************/                                                                                                           \
    1.37 +  nonstatic_field(PSVirtualSpace,              _alignment,                                    const size_t)                          \
    1.38 +  nonstatic_field(PSVirtualSpace,              _reserved_low_addr,                            char*)                                 \
    1.39 +  nonstatic_field(PSVirtualSpace,              _reserved_high_addr,                           char*)                                 \
    1.40 +  nonstatic_field(PSVirtualSpace,              _committed_low_addr,                           char*)                                 \
    1.41 +  nonstatic_field(PSVirtualSpace,              _committed_high_addr,                          char*)                                 \
    1.42 +                                                                                                                                     \
    1.43 +  nonstatic_field(ImmutableSpace,              _bottom,                                       HeapWord*)                             \
    1.44 +  nonstatic_field(ImmutableSpace,              _end,                                          HeapWord*)                             \
    1.45 +                                                                                                                                     \
    1.46 +  nonstatic_field(MutableSpace,                _top,                                          HeapWord*)                             \
    1.47 +                                                                                                                                     \
    1.48 +  nonstatic_field(PSYoungGen,                  _reserved,                                     MemRegion)                             \
    1.49 +  nonstatic_field(PSYoungGen,                  _virtual_space,                                PSVirtualSpace*)                       \
    1.50 +  nonstatic_field(PSYoungGen,                  _eden_space,                                   MutableSpace*)                         \
    1.51 +  nonstatic_field(PSYoungGen,                  _from_space,                                   MutableSpace*)                         \
    1.52 +  nonstatic_field(PSYoungGen,                  _to_space,                                     MutableSpace*)                         \
    1.53 +  nonstatic_field(PSYoungGen,                  _init_gen_size,                                const size_t)                          \
    1.54 +  nonstatic_field(PSYoungGen,                  _min_gen_size,                                 const size_t)                          \
    1.55 +  nonstatic_field(PSYoungGen,                  _max_gen_size,                                 const size_t)                          \
    1.56 +                                                                                                                                     \
    1.57 +  nonstatic_field(PSOldGen,                    _reserved,                                     MemRegion)                             \
    1.58 +  nonstatic_field(PSOldGen,                    _virtual_space,                                PSVirtualSpace*)                       \
    1.59 +  nonstatic_field(PSOldGen,                    _object_space,                                 MutableSpace*)                         \
    1.60 +  nonstatic_field(PSOldGen,                    _init_gen_size,                                const size_t)                          \
    1.61 +  nonstatic_field(PSOldGen,                    _min_gen_size,                                 const size_t)                          \
    1.62 +  nonstatic_field(PSOldGen,                    _max_gen_size,                                 const size_t)                          \
    1.63 +                                                                                                                                     \
    1.64 +                                                                                                                                     \
    1.65 +     static_field(ParallelScavengeHeap,        _young_gen,                                    PSYoungGen*)                           \
    1.66 +     static_field(ParallelScavengeHeap,        _old_gen,                                      PSOldGen*)                             \
    1.67 +     static_field(ParallelScavengeHeap,        _psh,                                          ParallelScavengeHeap*)                 \
    1.68 +                                                                                                                                     \
    1.69 +
    1.70 +#define VM_TYPES_PARALLELGC(declare_type,                                 \
    1.71 +                            declare_toplevel_type)                        \
    1.72 +                                                                          \
    1.73 +  /*****************************************/                             \
    1.74 +  /* Parallel GC - space, gen abstractions */                             \
    1.75 +  /*****************************************/                             \
    1.76 +           declare_type(ParallelScavengeHeap,         CollectedHeap)      \
    1.77 +                                                                          \
    1.78 +  declare_toplevel_type(PSVirtualSpace)                                   \
    1.79 +  declare_toplevel_type(ImmutableSpace)                                   \
    1.80 +           declare_type(MutableSpace, ImmutableSpace)                     \
    1.81 +  declare_toplevel_type(PSYoungGen)                                       \
    1.82 +           declare_type(ASPSYoungGen, PSYoungGen)                         \
    1.83 +  declare_toplevel_type(PSOldGen)                                         \
    1.84 +           declare_type(ASPSOldGen, PSOldGen)                             \
    1.85 +                                                                          \
    1.86 +  /*****************************/                                         \
    1.87 +  /* Parallel GC pointer types */                                         \
    1.88 +  /*****************************/                                         \
    1.89 +                                                                          \
    1.90 +  declare_toplevel_type(PSVirtualSpace*)                                  \
    1.91 +  declare_toplevel_type(ImmutableSpace*)                                  \
    1.92 +  declare_toplevel_type(MutableSpace*)                                    \
    1.93 +  declare_toplevel_type(PSYoungGen*)                                      \
    1.94 +  declare_toplevel_type(ASPSYoungGen*)                                    \
    1.95 +  declare_toplevel_type(PSOldGen*)                                        \
    1.96 +  declare_toplevel_type(ASPSOldGen*)                                      \
    1.97 +  declare_toplevel_type(ParallelScavengeHeap*)
    1.98 +
    1.99 +#endif // SHARE_VM_GC_IMPLEMENTATION_PARALLELSCAVENGE_VMSTRUCTS_PARALLELGC_HPP

mercurial