comparison src/share/vm/runtime/vm_version.cpp @ 24218:719853999215 jvmci-0.32

Merge with jdk8u141-b15
author Doug Simon <doug.simon@oracle.com>
date Mon, 14 Aug 2017 23:20:38 +0200
parents 3ef45d0a6d77 ab892d05b029
children abc19eb35547
comparison
equal deleted inserted replaced
24167:ac6f03d5b89e 24218:719853999215
1 /* 1 /*
2 * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2016, 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.
294 // for large numbers of worker threads. Instead of 294 // for large numbers of worker threads. Instead of
295 // hogging the whole system, use a fraction of the workers for every 295 // hogging the whole system, use a fraction of the workers for every
296 // processor after the first 8. For example, on a 72 cpu machine 296 // processor after the first 8. For example, on a 72 cpu machine
297 // and a chosen fraction of 5/8 297 // and a chosen fraction of 5/8
298 // use 8 + (72 - 8) * (5/8) == 48 worker threads. 298 // use 8 + (72 - 8) * (5/8) == 48 worker threads.
299 unsigned int ncpus = (unsigned int) os::active_processor_count(); 299 unsigned int ncpus = (unsigned int) os::initial_active_processor_count();
300 return (ncpus <= switch_pt) ? 300 return (ncpus <= switch_pt) ?
301 ncpus : 301 ncpus :
302 (switch_pt + ((ncpus - switch_pt) * num) / den); 302 (switch_pt + ((ncpus - switch_pt) * num) / den);
303 } else { 303 } else {
304 return ParallelGCThreads; 304 return ParallelGCThreads;