< prev index next >

src/hotspot/share/gc/serial/serialHeap.cpp

Print this page




  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/serial/defNewGeneration.hpp"
  27 #include "gc/serial/serialHeap.hpp"
  28 #include "gc/shared/genMemoryPools.hpp"
  29 #include "services/memoryManager.hpp"
  30 
  31 SerialHeap::SerialHeap(GenCollectorPolicy* policy) :
  32   GenCollectedHeap(policy), _eden_pool(NULL), _survivor_pool(NULL), _old_pool(NULL) {





  33   _young_manager = new GCMemoryManager("Copy", "end of minor GC");
  34   _old_manager = new GCMemoryManager("MarkSweepCompact", "end of major GC");
  35 }
  36 
  37 void SerialHeap::initialize_serviceability() {
  38 
  39   DefNewGeneration* young = (DefNewGeneration*) young_gen();
  40 
  41   // Add a memory pool for each space and young gen doesn't
  42   // support low memory detection as it is expected to get filled up.
  43   _eden_pool = new ContiguousSpacePool(young->eden(),
  44                                        "Eden Space",
  45                                        young->max_eden_size(),
  46                                        false /* support_usage_threshold */);
  47   _survivor_pool = new SurvivorContiguousSpacePool(young,
  48                                                    "Survivor Space",
  49                                                    young->max_survivor_size(),
  50                                                    false /* support_usage_threshold */);
  51   Generation* old = old_gen();
  52   _old_pool = new GenerationPool(old, "Tenured Gen", true);




  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/serial/defNewGeneration.hpp"
  27 #include "gc/serial/serialHeap.hpp"
  28 #include "gc/shared/genMemoryPools.hpp"
  29 #include "services/memoryManager.hpp"
  30 
  31 SerialHeap::SerialHeap(GenCollectorPolicy* policy) :
  32     GenCollectedHeap(policy,
  33                      Generation::DefNew,
  34                      Generation::MarkSweepCompact),
  35     _eden_pool(NULL),
  36     _survivor_pool(NULL),
  37     _old_pool(NULL) {
  38   _young_manager = new GCMemoryManager("Copy", "end of minor GC");
  39   _old_manager = new GCMemoryManager("MarkSweepCompact", "end of major GC");
  40 }
  41 
  42 void SerialHeap::initialize_serviceability() {
  43 
  44   DefNewGeneration* young = (DefNewGeneration*) young_gen();
  45 
  46   // Add a memory pool for each space and young gen doesn't
  47   // support low memory detection as it is expected to get filled up.
  48   _eden_pool = new ContiguousSpacePool(young->eden(),
  49                                        "Eden Space",
  50                                        young->max_eden_size(),
  51                                        false /* support_usage_threshold */);
  52   _survivor_pool = new SurvivorContiguousSpacePool(young,
  53                                                    "Survivor Space",
  54                                                    young->max_survivor_size(),
  55                                                    false /* support_usage_threshold */);
  56   Generation* old = old_gen();
  57   _old_pool = new GenerationPool(old, "Tenured Gen", true);


< prev index next >