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 #include "precompiled.hpp"
26 #include "code/nmethod.hpp"
27 #include "gc_implementation/g1/g1BlockOffsetTable.inline.hpp"
28 #include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
29 #include "gc_implementation/g1/g1OopClosures.inline.hpp"
30 #include "gc_implementation/g1/heapRegion.inline.hpp"
31 #include "gc_implementation/g1/heapRegionBounds.inline.hpp"
32 #include "gc_implementation/g1/heapRegionRemSet.hpp"
33 #include "gc_implementation/g1/heapRegionManager.inline.hpp"
34 #include "gc_implementation/shared/liveRange.hpp"
35 #include "memory/genOopClosures.inline.hpp"
36 #include "memory/iterator.hpp"
37 #include "memory/space.inline.hpp"
38 #include "oops/oop.inline.hpp"
39 #include "runtime/atomic.inline.hpp"
40 #include "runtime/orderAccess.inline.hpp"
41
42 int HeapRegion::LogOfHRGrainBytes = 0;
43 int HeapRegion::LogOfHRGrainWords = 0;
44 size_t HeapRegion::GrainBytes = 0;
45 size_t HeapRegion::GrainWords = 0;
46 size_t HeapRegion::CardsPerRegion = 0;
47
48 HeapRegionDCTOC::HeapRegionDCTOC(G1CollectedHeap* g1,
49 HeapRegion* hr,
50 G1ParPushHeapRSClosure* cl,
51 CardTableModRefBS::PrecisionStyle precision) :
52 DirtyCardToOopClosure(hr, cl, precision, NULL),
53 _hr(hr), _rs_scan(cl), _g1(g1) { }
54
55 FilterOutOfRegionClosure::FilterOutOfRegionClosure(HeapRegion* r,
56 OopClosure* oc) :
57 _r_bottom(r->bottom()), _r_end(r->end()), _oc(oc) { }
|
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 #include "precompiled.hpp"
26 #include "code/nmethod.hpp"
27 #include "gc/g1/g1BlockOffsetTable.inline.hpp"
28 #include "gc/g1/g1CollectedHeap.inline.hpp"
29 #include "gc/g1/g1OopClosures.inline.hpp"
30 #include "gc/g1/heapRegion.inline.hpp"
31 #include "gc/g1/heapRegionBounds.inline.hpp"
32 #include "gc/g1/heapRegionManager.inline.hpp"
33 #include "gc/g1/heapRegionRemSet.hpp"
34 #include "gc/shared/genOopClosures.inline.hpp"
35 #include "gc/shared/liveRange.hpp"
36 #include "gc/shared/space.inline.hpp"
37 #include "memory/iterator.hpp"
38 #include "oops/oop.inline.hpp"
39 #include "runtime/atomic.inline.hpp"
40 #include "runtime/orderAccess.inline.hpp"
41
42 int HeapRegion::LogOfHRGrainBytes = 0;
43 int HeapRegion::LogOfHRGrainWords = 0;
44 size_t HeapRegion::GrainBytes = 0;
45 size_t HeapRegion::GrainWords = 0;
46 size_t HeapRegion::CardsPerRegion = 0;
47
48 HeapRegionDCTOC::HeapRegionDCTOC(G1CollectedHeap* g1,
49 HeapRegion* hr,
50 G1ParPushHeapRSClosure* cl,
51 CardTableModRefBS::PrecisionStyle precision) :
52 DirtyCardToOopClosure(hr, cl, precision, NULL),
53 _hr(hr), _rs_scan(cl), _g1(g1) { }
54
55 FilterOutOfRegionClosure::FilterOutOfRegionClosure(HeapRegion* r,
56 OopClosure* oc) :
57 _r_bottom(r->bottom()), _r_end(r->end()), _oc(oc) { }
|