JEP proposed to target JDK 11: 318: Epsilon: An Arbitrarily Low-Overhead Garbage Collector

Andrew Dinn adinn at
Thu Jan 18 10:15:08 UTC 2018

On 18/01/18 10:10, Erik Österlund wrote:
> I do not feel too comfortable with this being a product flag regardless
> of the name. There is existing code that assumes that for example
> System.gc() will actually do something. Similar for assumptions that
> language features like finalizers and reference objects and queues will
> do anything at all. That makes me feel uncomfortable. Do you feel
> comfortable with exposing a product flag that breaks code relying on
> those features?

Honestly, if we are at the point where we need to cater for those who
pass in -XX:+UseNoGC and still expect "System.gc() will actually do
something" the I believe all hope for civilization is a faint and
distant pipe dream.

Have we not bike-shedded this JEP enough already?


Andrew Dinn
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander

More information about the jdk-dev mailing list