comparison src/share/vm/gc_implementation/parallelScavenge/psCompactionManager.hpp @ 6725:da91efe96a93

6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author coleenp
date Sat, 01 Sep 2012 13:25:18 -0400
parents d2a62e0f25eb
children
comparison
equal deleted inserted replaced
6724:36d1d483d5d6 6725:da91efe96a93
1 /* 1 /*
2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
108 static int _recycled_top; 108 static int _recycled_top;
109 // The index into _recycled_stack_index of the last region stack index 109 // The index into _recycled_stack_index of the last region stack index
110 // popped. If -1, there has not been any entry popped. 110 // popped. If -1, there has not been any entry popped.
111 static int _recycled_bottom; 111 static int _recycled_bottom;
112 112
113 Stack<Klass*, mtGC> _revisit_klass_stack;
114 Stack<DataLayout*, mtGC> _revisit_mdo_stack;
115
116 static ParMarkBitMap* _mark_bitmap; 113 static ParMarkBitMap* _mark_bitmap;
117 114
118 Action _action; 115 Action _action;
119 116
120 static PSOldGen* old_gen() { return _old_gen; } 117 static PSOldGen* old_gen() { return _old_gen; }
165 // pushes onto the region overflow stack. 162 // pushes onto the region overflow stack.
166 static void region_list_push(uint stack_index, size_t region_index); 163 static void region_list_push(uint stack_index, size_t region_index);
167 static void verify_region_list_empty(uint stack_index); 164 static void verify_region_list_empty(uint stack_index);
168 ParMarkBitMap* mark_bitmap() { return _mark_bitmap; } 165 ParMarkBitMap* mark_bitmap() { return _mark_bitmap; }
169 166
170 // Take actions in preparation for a compaction.
171 static void reset();
172
173 // void drain_stacks(); 167 // void drain_stacks();
174 168
175 bool should_update(); 169 bool should_update();
176 bool should_copy(); 170 bool should_copy();
177
178 Stack<Klass*, mtGC>* revisit_klass_stack() { return &_revisit_klass_stack; }
179 Stack<DataLayout*, mtGC>* revisit_mdo_stack() { return &_revisit_mdo_stack; }
180 171
181 // Save for later processing. Must not fail. 172 // Save for later processing. Must not fail.
182 inline void push(oop obj) { _marking_stack.push(obj); } 173 inline void push(oop obj) { _marking_stack.push(obj); }
183 inline void push_objarray(oop objarray, size_t index); 174 inline void push_objarray(oop objarray, size_t index);
184 inline void push_region(size_t index); 175 inline void push_region(size_t index);