src/share/vm/runtime/vm_version.cpp

changeset 8662
9975dd8382d5
parent 7598
ddce0b7cee93
child 8729
402618d5afc9
     1.1 --- a/src/share/vm/runtime/vm_version.cpp	Thu Dec 15 19:48:32 2016 -0500
     1.2 +++ b/src/share/vm/runtime/vm_version.cpp	Thu Dec 15 20:00:01 2016 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -296,7 +296,7 @@
    1.11      // processor after the first 8.  For example, on a 72 cpu machine
    1.12      // and a chosen fraction of 5/8
    1.13      // use 8 + (72 - 8) * (5/8) == 48 worker threads.
    1.14 -    unsigned int ncpus = (unsigned int) os::active_processor_count();
    1.15 +    unsigned int ncpus = (unsigned int) os::initial_active_processor_count();
    1.16      return (ncpus <= switch_pt) ?
    1.17             ncpus :
    1.18            (switch_pt + ((ncpus - switch_pt) * num) / den);

mercurial