JEP 291: Deprecate the Concurrent Mark Sweep (CMS) Garbage Collector

Jon Masamitsu jon.masamitsu at
Fri Jul 1 20:26:22 UTC 2016


On 7/1/2016 12:19 PM, kirk at wrote:
> Hi Jon,
> I’m beyond convinced that you understand how CMS functions which left me wondering what is really going on here. I’m not really concerned about what Oracle decides to put into it’s builds. However, there are other parties vested in OpenJDK which implies that pulling CMS from OpenJDK needs to be a completely different conversation. Who do we need to speak to?

Add your comments to the JEP.

The JEP lays out why Oracle thinks dropping CMS support is a good
idea.   If you can suggest an alternative that gets us some of what
Oracle wants and gets the community what it wants, that would
have more weight than just disagreeing with the  reasoning there.

Much of what I think Oracle wants is to spend the engineering
dollars (engineers, hardware, answering the customer calls, etc.)
on G1 instead of CMS.  We don't spend much development time
on CMS now but bug fixing,  testing and support goes on and on.
I think that has to be addressed.

This is an invitation to anyone to address this issue with an
alternative plan.

I'll get someone to respond to your comments.


> Kind regards,
> Kirk Pepperdine
>> On Jul 1, 2016, at 8:38 PM, Jon Masamitsu <jon.masamitsu at> wrote:
>> Kirk,
>> Thanks for your email.   Please understand that I'm not the one
>> that needs to be convinced that CMS could never be turned on.
>> And maybe CMS being turned on isn't even the first or last
>> question.   I'm guessing including the CMS bits in an Oracle
>> build is a decision that would have to be made at a fairly
>> high management level.
>> Jon
>> On 7/1/2016 10:24 AM, kirk at wrote:
>>> Hi Jon,
>>> I’ve reversed engineered startup parameters and the result is a chart of all possible flag settings and their outcomes. I’d be happy to share it with you as I believe it shows a way to prevent CMS from being turned on. That said, I would consider this approach to be a hack and I’m not sure it should be used. However it does suggest there is a way to prevent CMS from being activated. BTW, it can’t be turned on after the JVM is initialized.
>>> Kind regards,
>>> Kirk Pepperdine
>>>> On Jul 1, 2016, at 5:12 PM, Jon Masamitsu <jon.masamitsu at> wrote:
>>>> On 7/1/2016 7:39 AM, Andrew Haley wrote:
>>>>> On 01/07/16 15:36, Jon Masamitsu wrote:
>>>>>> Do you have a suggestion on how continued support for CMS in OpenJDK
>>>>>> would work?  I've been told that if CMS is built in the binaries that Oracle
>>>>>> distributes, then customers will expect Oracle to support it. Regardless
>>>>>> of what the release notes say.
>>>>> How are they to know that it's in there?
>>>> If nothing else, it's open source.  :-)
>>>>>   All you have to do is
>>>>> disable the option in Oracle builds.
>>>> It seems like that should be enough, but I honestly don't know.
>>>> If there's some squirrely way for a customer to turn it on
>>>> (jcmd, start up script, who knows what), we'd be stuck.
>>>> I think Oracle is very care about such things.  If asked, "Is there
>>>> any possible way that CMS could be turned on?",  the best
>>>> I could do would be to say, "I don't think so".  Not good enough.
>>>> Jon
>>>>> Andrew.

More information about the hotspot-gc-dev mailing list