RFR: 8065305 - Make it possible to extend the G1CollectorPolicy
jesper.wilhelmsson at oracle.com
Fri Nov 21 11:56:38 UTC 2014
Kirk Pepperdine skrev 21/11/14 12:45:
> On Nov 21, 2014, at 10:00 AM, Thomas Schatzl <thomas.schatzl at oracle.com> wrote:
>> On Thu, 2014-11-20 at 18:34 +0100, Jesper Wilhelmsson wrote:
>>> Please review this small change to allow an extended version of the
>>> This change also includes a small cleanup to remove a couple of extension points
>>> in the argument processing.
>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8065305
>>> Webrev: http://cr.openjdk.java.net/~jwilhelm/8065305/
>> Looks okay. Do not really like the "Ext" name, but I do not have a
>> better name right now.
> What is the extension suppose to do?
It will allow people who would like to experiment/implement their own G1
heuristics to do so without having to patch and merge every time theres an
update to the G1 code. By adding overloading methods in G1CollectorPolicyExt
conflicts with changes in the "normal code" is avoided.
I know that some companies use these extension points to build their own
proprietary features on top of OpenJDK for instance.
More information about the hotspot-gc-dev