src/share/vm/gc/g1/g1Allocator.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8141570.02 Sdiff src/share/vm/gc/g1

src/share/vm/gc/g1/g1Allocator.cpp

Print this page




   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/g1/g1Allocator.inline.hpp"
  27 #include "gc/g1/g1AllocRegion.inline.hpp"

  28 #include "gc/g1/g1CollectedHeap.inline.hpp"
  29 #include "gc/g1/g1CollectorPolicy.hpp"
  30 #include "gc/g1/g1MarkSweep.hpp"
  31 #include "gc/g1/heapRegion.inline.hpp"
  32 #include "gc/g1/heapRegionSet.inline.hpp"
  33 
  34 G1DefaultAllocator::G1DefaultAllocator(G1CollectedHeap* heap) :
  35   G1Allocator(heap),
  36   _retained_old_gc_alloc_region(NULL),
  37   _survivor_gc_alloc_region(heap->alloc_buffer_stats(InCSetState::Young)),
  38   _old_gc_alloc_region(heap->alloc_buffer_stats(InCSetState::Old)) {
  39 }
  40 
  41 void G1DefaultAllocator::init_mutator_alloc_region() {
  42   assert(_mutator_alloc_region.get() == NULL, "pre-condition");
  43   _mutator_alloc_region.init();
  44 }
  45 
  46 void G1DefaultAllocator::release_mutator_alloc_region() {
  47   _mutator_alloc_region.release();




   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/g1/g1Allocator.inline.hpp"
  27 #include "gc/g1/g1AllocRegion.inline.hpp"
  28 #include "gc/g1/g1EvacStats.inline.hpp"
  29 #include "gc/g1/g1CollectedHeap.inline.hpp"
  30 #include "gc/g1/g1CollectorPolicy.hpp"
  31 #include "gc/g1/g1MarkSweep.hpp"
  32 #include "gc/g1/heapRegion.inline.hpp"
  33 #include "gc/g1/heapRegionSet.inline.hpp"
  34 
  35 G1DefaultAllocator::G1DefaultAllocator(G1CollectedHeap* heap) :
  36   G1Allocator(heap),
  37   _retained_old_gc_alloc_region(NULL),
  38   _survivor_gc_alloc_region(heap->alloc_buffer_stats(InCSetState::Young)),
  39   _old_gc_alloc_region(heap->alloc_buffer_stats(InCSetState::Old)) {
  40 }
  41 
  42 void G1DefaultAllocator::init_mutator_alloc_region() {
  43   assert(_mutator_alloc_region.get() == NULL, "pre-condition");
  44   _mutator_alloc_region.init();
  45 }
  46 
  47 void G1DefaultAllocator::release_mutator_alloc_region() {
  48   _mutator_alloc_region.release();


src/share/vm/gc/g1/g1Allocator.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File