< prev index next >

src/share/vm/gc_implementation/shared/adaptiveSizePolicy.hpp

Print this page
rev 8068 : 6407976: GC worker number should be unsigned
Reviewed-by: jwilhelm

*** 1,7 **** /* ! * Copyright (c) 2004, 2012, 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. --- 1,7 ---- /* ! * Copyright (c) 2004, 2015, 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.
*** 341,351 **** size_t init_survivor_size, double gc_pause_goal_sec, uint gc_cost_ratio); // Return number default GC threads to use in the next GC. ! static int calc_default_active_workers(uintx total_workers, const uintx min_workers, uintx active_workers, uintx application_workers); // Return number of GC threads to use in the next GC. --- 341,351 ---- size_t init_survivor_size, double gc_pause_goal_sec, uint gc_cost_ratio); // Return number default GC threads to use in the next GC. ! static uint calc_default_active_workers(uintx total_workers, const uintx min_workers, uintx active_workers, uintx application_workers); // Return number of GC threads to use in the next GC.
*** 356,371 **** // For G1 evacuation pauses (subject to update) // Other collection phases inherit the number of // GC workers from the calls above. For example, // a CMS parallel remark uses the same number of GC // workers as the most recent ParNew collection. ! static int calc_active_workers(uintx total_workers, uintx active_workers, uintx application_workers); // Return number of GC threads to use in the next concurrent GC phase. ! static int calc_active_conc_workers(uintx total_workers, uintx active_workers, uintx application_workers); bool is_gc_cms_adaptive_size_policy() { return kind() == _gc_cms_adaptive_size_policy; --- 356,371 ---- // For G1 evacuation pauses (subject to update) // Other collection phases inherit the number of // GC workers from the calls above. For example, // a CMS parallel remark uses the same number of GC // workers as the most recent ParNew collection. ! static uint calc_active_workers(uintx total_workers, uintx active_workers, uintx application_workers); // Return number of GC threads to use in the next concurrent GC phase. ! static uint calc_active_conc_workers(uintx total_workers, uintx active_workers, uintx application_workers); bool is_gc_cms_adaptive_size_policy() { return kind() == _gc_cms_adaptive_size_policy;
< prev index next >