src/share/vm/gc_implementation/g1/concurrentMark.cpp

changeset 8662
9975dd8382d5
parent 7834
399885e13e90
child 8856
ac27a9c85bea
child 9327
f96fcd9e1e1b
     1.1 --- a/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Thu Dec 15 19:48:32 2016 -0500
     1.2 +++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Thu Dec 15 20:00:01 2016 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2001, 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 @@ -631,11 +631,10 @@
    1.11        double overall_cm_overhead =
    1.12          (double) MaxGCPauseMillis * marking_overhead /
    1.13          (double) GCPauseIntervalMillis;
    1.14 -      double cpu_ratio = 1.0 / (double) os::processor_count();
    1.15 +      double cpu_ratio = 1.0 / os::initial_active_processor_count();
    1.16        double marking_thread_num = ceil(overall_cm_overhead / cpu_ratio);
    1.17        double marking_task_overhead =
    1.18 -        overall_cm_overhead / marking_thread_num *
    1.19 -                                                (double) os::processor_count();
    1.20 +        overall_cm_overhead / marking_thread_num * os::initial_active_processor_count();
    1.21        double sleep_factor =
    1.22                           (1.0 - marking_task_overhead) / marking_task_overhead;
    1.23  

mercurial