Mercurial > hg > graal-jvmci-8
changeset 23419:7985a33bac9c
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:04:24 -0700 |
parents | 54203a323126 |
children | c1374141598c |
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 Mon Aug 17 21:14:26 2015 -0400 +++ b/src/os_cpu/linux_sparc/vm/vm_version_linux_sparc.cpp Tue Sep 01 14:04:24 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; }