src/hotspot/share/gc/shared/workerPolicy.hpp
changeset 59053 ba6c248cae19
parent 53244 9807daeb47c4
equal deleted inserted replaced
59051:f0312c7d5b37 59053:ba6c248cae19
    57                                           uintx application_workers);
    57                                           uintx application_workers);
    58 
    58 
    59   // Return number of GC threads to use in the next GC.
    59   // Return number of GC threads to use in the next GC.
    60   // This is called sparingly so as not to change the
    60   // This is called sparingly so as not to change the
    61   // number of GC workers gratuitously.
    61   // number of GC workers gratuitously.
    62   //   For ParNew collections
       
    63   //   For PS scavenge and ParOld collections
    62   //   For PS scavenge and ParOld collections
    64   //   For G1 evacuation pauses (subject to update)
    63   //   For G1 evacuation pauses (subject to update)
    65   //   For G1 Full GCs (subject to update)
    64   //   For G1 Full GCs (subject to update)
    66   // Other collection phases inherit the number of
    65   // Other collection phases inherit the number of
    67   // GC workers from the calls above.  For example,
    66   // GC workers from the calls above.
    68   // a CMS parallel remark uses the same number of GC
       
    69   // workers as the most recent ParNew collection.
       
    70   static uint calc_active_workers(uintx total_workers,
    67   static uint calc_active_workers(uintx total_workers,
    71                                   uintx active_workers,
    68                                   uintx active_workers,
    72                                   uintx application_workers);
    69                                   uintx application_workers);
    73 
    70 
    74   // Return number of GC threads to use in the next concurrent GC phase.
    71   // Return number of GC threads to use in the next concurrent GC phase.