hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/HeapSummary.java
changeset 43605 07baf498d588
parent 38261 ddf6760621fc
equal deleted inserted replaced
43604:49949d36e3f9 43605:07baf498d588
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2017, 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.
   148    }
   148    }
   149 
   149 
   150    // Helper methods
   150    // Helper methods
   151 
   151 
   152    private void printGCAlgorithm(Map flagMap) {
   152    private void printGCAlgorithm(Map flagMap) {
   153        // print about new generation
   153        long l = getFlagValue("UseTLAB", flagMap);
   154        long l = getFlagValue("UseParNewGC", flagMap);
       
   155        if (l == 1L) {
       
   156           System.out.println("using parallel threads in the new generation.");
       
   157        }
       
   158 
       
   159        l = getFlagValue("UseTLAB", flagMap);
       
   160        if (l == 1L) {
   154        if (l == 1L) {
   161           System.out.println("using thread-local object allocation.");
   155           System.out.println("using thread-local object allocation.");
   162        }
   156        }
   163 
   157 
   164        l = getFlagValue("UseConcMarkSweepGC", flagMap);
   158        l = getFlagValue("UseConcMarkSweepGC", flagMap);