1
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 Sun Microsystems, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
20 |
* CA 95054 USA or visit www.sun.com if you need additional information or
|
|
21 |
* have any 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*) \
|
|
45 |
nonstatic_field(PSYoungGen, _from_space, MutableSpace*) \
|
|
46 |
nonstatic_field(PSYoungGen, _to_space, MutableSpace*) \
|
|
47 |
nonstatic_field(PSYoungGen, _init_gen_size, const size_t) \
|
|
48 |
nonstatic_field(PSYoungGen, _min_gen_size, const size_t) \
|
|
49 |
nonstatic_field(PSYoungGen, _max_gen_size, const size_t) \
|
|
50 |
\
|
|
51 |
nonstatic_field(PSOldGen, _reserved, MemRegion) \
|
|
52 |
nonstatic_field(PSOldGen, _virtual_space, PSVirtualSpace*) \
|
|
53 |
nonstatic_field(PSOldGen, _object_space, MutableSpace*) \
|
|
54 |
nonstatic_field(PSOldGen, _init_gen_size, const size_t) \
|
|
55 |
nonstatic_field(PSOldGen, _min_gen_size, const size_t) \
|
|
56 |
nonstatic_field(PSOldGen, _max_gen_size, const size_t) \
|
|
57 |
\
|
|
58 |
nonstatic_field(PSPermGen, _last_used, size_t) \
|
|
59 |
\
|
|
60 |
static_field(ParallelScavengeHeap, _young_gen, PSYoungGen*) \
|
|
61 |
static_field(ParallelScavengeHeap, _old_gen, PSOldGen*) \
|
|
62 |
static_field(ParallelScavengeHeap, _perm_gen, PSPermGen*) \
|
|
63 |
static_field(ParallelScavengeHeap, _psh, ParallelScavengeHeap*) \
|
|
64 |
\
|
|
65 |
|
|
66 |
#define VM_TYPES_PARALLELGC(declare_type, \
|
|
67 |
declare_toplevel_type) \
|
|
68 |
\
|
|
69 |
/*****************************************/ \
|
|
70 |
/* Parallel GC - space, gen abstractions */ \
|
|
71 |
/*****************************************/ \
|
|
72 |
declare_type(ParallelScavengeHeap, CollectedHeap) \
|
|
73 |
\
|
|
74 |
declare_toplevel_type(PSVirtualSpace) \
|
|
75 |
declare_toplevel_type(ImmutableSpace) \
|
|
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*)
|