hotspot/src/share/vm/gc/g1/heapRegionSet.cpp
changeset 35469 17ea1b453dd5
parent 35461 1068dcb8d315
child 37988 bf4018edea5e
equal deleted inserted replaced
35468:32c11a4f200c 35469:17ea1b453dd5
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2016, 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.
   387   G1RegionToSpaceMapper* bot_storage =
   387   G1RegionToSpaceMapper* bot_storage =
   388     G1RegionToSpaceMapper::create_mapper(bot_rs,
   388     G1RegionToSpaceMapper::create_mapper(bot_rs,
   389                                          bot_rs.size(),
   389                                          bot_rs.size(),
   390                                          os::vm_page_size(),
   390                                          os::vm_page_size(),
   391                                          HeapRegion::GrainBytes,
   391                                          HeapRegion::GrainBytes,
   392                                          G1BlockOffsetTable::N_bytes,
   392                                          BOTConstants::N_bytes,
   393                                          mtGC);
   393                                          mtGC);
   394   G1BlockOffsetTable bot(heap, bot_storage);
   394   G1BlockOffsetTable bot(heap, bot_storage);
   395   bot_storage->commit_regions(0, num_regions_in_test);
   395   bot_storage->commit_regions(0, num_regions_in_test);
   396 
   396 
   397   // Set up memory regions for the heap regions.
   397   // Set up memory regions for the heap regions.