< prev index next >
src/hotspot/cpu/sparc/vm_version_sparc.hpp
Print this page
rev 52689 : 8213224: Move code related to GC threads calculation out of AdaptiveSizePolicy
Summary: Consolidate code related to GC threads calculation into a single class
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -363,10 +363,14 @@
// FIXME: Removed broken test on sun4v (always false when invoked prior to the
// proper capability setup), thus always returning 2. Still need to fix
// this properly in order to enable complete page size support.
static uint page_size_count() { return 2; }
- // Calculates the number of parallel threads
- static unsigned int calc_parallel_worker_threads();
+ // Override default denominator for ParallelGCThreads.
+ //
+ // FIXME: Simply checking the processor family is insufficient.
+ static uint parallel_worker_threads_denominator() {
+ return is_post_niagara() ? 16 : 8;
+ }
};
#endif // CPU_SPARC_VM_VM_VERSION_SPARC_HPP
< prev index next >