0N/A/*
1879N/A * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
1879N/A#ifndef SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_VMSTRUCTS_CMS_HPP
1879N/A#define SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_VMSTRUCTS_CMS_HPP
1879N/A
0N/A#define VM_STRUCTS_CMS(nonstatic_field, \
187N/A volatile_nonstatic_field, \
0N/A static_field) \
0N/A nonstatic_field(CompactibleFreeListSpace, _collector, CMSCollector*) \
0N/A nonstatic_field(CompactibleFreeListSpace, _bt, BlockOffsetArrayNonContigSpace) \
0N/A \
0N/A nonstatic_field(CMSPermGen, _gen, ConcurrentMarkSweepGeneration*) \
0N/A nonstatic_field(CMSBitMap, _bmStartWord, HeapWord*) \
0N/A nonstatic_field(CMSBitMap, _bmWordSize, size_t) \
0N/A nonstatic_field(CMSBitMap, _shifter, const int) \
0N/A nonstatic_field(CMSBitMap, _bm, BitMap) \
0N/A nonstatic_field(CMSBitMap, _virtual_space, VirtualSpace) \
0N/A nonstatic_field(CMSCollector, _markBitMap, CMSBitMap) \
0N/A nonstatic_field(ConcurrentMarkSweepGeneration, _cmsSpace, CompactibleFreeListSpace*) \
0N/A static_field(ConcurrentMarkSweepThread, _collector, CMSCollector*) \
187N/A volatile_nonstatic_field(FreeChunk, _size, size_t) \
0N/A nonstatic_field(FreeChunk, _next, FreeChunk*) \
0N/A nonstatic_field(FreeChunk, _prev, FreeChunk*) \
152N/A nonstatic_field(LinearAllocBlock, _word_size, size_t) \
3695N/A nonstatic_field(FreeList<FreeChunk>, _size, size_t) \
3695N/A nonstatic_field(FreeList<FreeChunk>, _count, ssize_t) \
3697N/A nonstatic_field(BinaryTreeDictionary<FreeChunk>,_total_size, size_t) \
3695N/A nonstatic_field(CompactibleFreeListSpace, _dictionary, FreeBlockDictionary<FreeChunk>*) \
3695N/A nonstatic_field(CompactibleFreeListSpace, _indexedFreeList[0], FreeList<FreeChunk>) \
152N/A nonstatic_field(CompactibleFreeListSpace, _smallLinearAllocBlock, LinearAllocBlock)
152N/A
0N/A
0N/A#define VM_TYPES_CMS(declare_type, \
0N/A declare_toplevel_type) \
0N/A \
0N/A declare_type(ConcurrentMarkSweepGeneration,CardGeneration) \
0N/A declare_type(CompactibleFreeListSpace, CompactibleSpace) \
0N/A declare_type(CMSPermGenGen, ConcurrentMarkSweepGeneration) \
0N/A declare_type(CMSPermGen, PermGen) \
0N/A declare_type(ConcurrentMarkSweepThread, NamedThread) \
0N/A declare_type(SurrogateLockerThread, JavaThread) \
0N/A declare_toplevel_type(CMSCollector) \
0N/A declare_toplevel_type(CMSBitMap) \
0N/A declare_toplevel_type(FreeChunk) \
0N/A declare_toplevel_type(ConcurrentMarkSweepThread*) \
0N/A declare_toplevel_type(ConcurrentMarkSweepGeneration*) \
0N/A declare_toplevel_type(SurrogateLockerThread*) \
0N/A declare_toplevel_type(CompactibleFreeListSpace*) \
0N/A declare_toplevel_type(CMSCollector*) \
152N/A declare_toplevel_type(FreeChunk*) \
3695N/A declare_toplevel_type(BinaryTreeDictionary<FreeChunk>*) \
3695N/A declare_toplevel_type(FreeBlockDictionary<FreeChunk>*) \
3695N/A declare_toplevel_type(FreeList<FreeChunk>*) \
3695N/A declare_toplevel_type(FreeList<FreeChunk>) \
152N/A declare_toplevel_type(LinearAllocBlock) \
3695N/A declare_toplevel_type(FreeBlockDictionary<FreeChunk>) \
3695N/A declare_type(BinaryTreeDictionary<FreeChunk>, FreeBlockDictionary<FreeChunk>)
0N/A
0N/A#define VM_INT_CONSTANTS_CMS(declare_constant) \
0N/A declare_constant(Generation::ConcurrentMarkSweep) \
0N/A declare_constant(PermGen::ConcurrentMarkSweep)
1879N/A
1879N/A#endif // SHARE_VM_GC_IMPLEMENTATION_CONCURRENTMARKSWEEP_VMSTRUCTS_CMS_HPP