< prev index next >

src/hotspot/share/gc/shared/gcConfiguration.cpp

Print this page

 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 #include "precompiled.hpp"
 25 #include "gc/shared/collectedHeap.hpp"
 26 #include "gc/shared/gcArguments.hpp"
 27 #include "gc/shared/gcConfiguration.hpp"
 28 #include "gc/shared/tlab_globals.hpp"
 29 #include "memory/universe.hpp"
 30 #include "oops/compressedOops.hpp"
 31 #include "runtime/globals.hpp"
 32 #include "runtime/globals_extension.hpp"
 33 #include "utilities/debug.hpp"

 34 
 35 GCName GCConfiguration::young_collector() const {
 36   if (UseG1GC) {
 37     return G1New;
 38   }
 39 
 40   if (UseParallelGC) {
 41     return ParallelScavenge;
 42   }
 43 
 44   if (UseZGC || UseShenandoahGC) {









 45     return NA;
 46   }
 47 
 48   return DefNew;
 49 }
 50 
 51 GCName GCConfiguration::old_collector() const {
 52   if (UseG1GC) {
 53     return G1Old;
 54   }
 55 
 56   if (UseParallelGC) {
 57     return ParallelOld;
 58   }
 59 
 60   if (UseZGC) {
 61     return Z;
 62   }
 63 
 64   if (UseShenandoahGC) {

 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 #include "precompiled.hpp"
 25 #include "gc/shared/collectedHeap.hpp"
 26 #include "gc/shared/gcArguments.hpp"
 27 #include "gc/shared/gcConfiguration.hpp"
 28 #include "gc/shared/tlab_globals.hpp"
 29 #include "memory/universe.hpp"
 30 #include "oops/compressedOops.hpp"
 31 #include "runtime/globals.hpp"
 32 #include "runtime/globals_extension.hpp"
 33 #include "utilities/debug.hpp"
 34 #include "utilities/macros.hpp"
 35 
 36 GCName GCConfiguration::young_collector() const {
 37   if (UseG1GC) {
 38     return G1New;
 39   }
 40 
 41   if (UseParallelGC) {
 42     return ParallelScavenge;
 43   }
 44 
 45   if (UseShenandoahGC) {
 46 #if INCLUDE_SHENANDOAHGC
 47     if (strcmp(ShenandoahGCMode, "generational") == 0) {
 48       return Shenandoah;
 49     }
 50 #endif
 51     return NA;
 52   }
 53 
 54   if (UseZGC) {
 55     return NA;
 56   }
 57 
 58   return DefNew;
 59 }
 60 
 61 GCName GCConfiguration::old_collector() const {
 62   if (UseG1GC) {
 63     return G1Old;
 64   }
 65 
 66   if (UseParallelGC) {
 67     return ParallelOld;
 68   }
 69 
 70   if (UseZGC) {
 71     return Z;
 72   }
 73 
 74   if (UseShenandoahGC) {
< prev index next >