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 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 "incls/_precompiled.incl" 26 #include "incls/_heapRegion.cpp.incl" 27 28 int HeapRegion::LogOfHRGrainBytes = 0; 29 int HeapRegion::LogOfHRGrainWords = 0; 30 int HeapRegion::GrainBytes = 0; 31 int HeapRegion::GrainWords = 0; 32 int HeapRegion::CardsPerRegion = 0; 33 34 HeapRegionDCTOC::HeapRegionDCTOC(G1CollectedHeap* g1, 35 HeapRegion* hr, OopClosure* cl, 36 CardTableModRefBS::PrecisionStyle precision, 37 FilterKind fk) : 38 ContiguousSpaceDCTOC(hr, cl, precision, NULL), 39 _hr(hr), _fk(fk), _g1(g1) 40 {} 41 42 FilterOutOfRegionClosure::FilterOutOfRegionClosure(HeapRegion* r, 43 OopClosure* oc) : 44 _r_bottom(r->bottom()), _r_end(r->end()), 45 _oc(oc), _out_of_region(0) 46 {} | 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 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 "gc_implementation/g1/concurrentZFThread.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/heapRegionRemSet.hpp" 32 #include "gc_implementation/g1/heapRegionSeq.inline.hpp" 33 #include "memory/genOopClosures.inline.hpp" 34 #include "memory/iterator.hpp" 35 #include "oops/oop.inline.hpp" 36 37 int HeapRegion::LogOfHRGrainBytes = 0; 38 int HeapRegion::LogOfHRGrainWords = 0; 39 int HeapRegion::GrainBytes = 0; 40 int HeapRegion::GrainWords = 0; 41 int HeapRegion::CardsPerRegion = 0; 42 43 HeapRegionDCTOC::HeapRegionDCTOC(G1CollectedHeap* g1, 44 HeapRegion* hr, OopClosure* cl, 45 CardTableModRefBS::PrecisionStyle precision, 46 FilterKind fk) : 47 ContiguousSpaceDCTOC(hr, cl, precision, NULL), 48 _hr(hr), _fk(fk), _g1(g1) 49 {} 50 51 FilterOutOfRegionClosure::FilterOutOfRegionClosure(HeapRegion* r, 52 OopClosure* oc) : 53 _r_bottom(r->bottom()), _r_end(r->end()), 54 _oc(oc), _out_of_region(0) 55 {} |