changeset 9726:e7f6dd5835be

8134161: JVM is creating too many GC helper threads on T7/M7 linux/sparc platform Summary: Recognize the T7/M7 platform. Reviewed-by: dcubed, kvn, jmasa
author gthornbr
date Tue, 01 Sep 2015 14:01:18 -0700
parents 6dad23e1c89d
children 2cad024257e9
files src/os_cpu/linux_sparc/vm/vm_version_linux_sparc.cpp
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_cpu/linux_sparc/vm/vm_version_linux_sparc.cpp	Tue Sep 01 14:17:53 2015 +0200
+++ b/src/os_cpu/linux_sparc/vm/vm_version_linux_sparc.cpp	Tue Sep 01 14:01:18 2015 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -53,6 +53,10 @@
   return cpuinfo_field_contains("cpu", "Niagara");
 }
 
+static bool detect_M_family() {
+  return cpuinfo_field_contains("cpu", "SPARC-M");
+}
+
 static bool detect_blkinit() {
   return cpuinfo_field_contains("cpucaps", "blkinit");
 }
@@ -66,6 +70,11 @@
     features = niagara1_m | T_family_m;
   }
 
+  if (detect_M_family()) {
+    NOT_PRODUCT(if (PrintMiscellaneous && Verbose) tty->print_cr("Detected Linux on M family");)
+    features = sun4v_m | generic_v9_m | M_family_m | T_family_m;
+  }
+
   if (detect_blkinit()) {
     features |= blk_init_instructions_m;
   }