RFR (S): 8148940: java/lang/ref/FinalizeOverride.java can time out due to frequent safepointing
tobias.hartmann at oracle.com
Fri Feb 26 11:16:37 UTC 2016
On 26.02.2016 11:50, Aleksey Shipilev wrote:
> On 02/26/2016 01:47 PM, Tobias Hartmann wrote:
>> I still wonder why we then do 2x compilations with ISC enabled? Do
>> the bootstrapped invokedynamic call sites invoke that many methods
>> compared to the baseline without ISC?
> I think that's because current ISC not only prompts the compilation of
> java.lang.invoke infra, but also spins up an anonymous class that holds
> the concat stub (to be switched off in a few weeks), which would also
> get compiled when hot.
Sure but it's surprising that this triggers the compilation of 81 additional methods (or 1127 with -Xcomp). I think it makes sense to investigate and see if we can reduce the number of compilations.
> Anyhow, that's a trigger, and not the underlying issue. The underlying
> issue is DoSing the JVM through System.gc/runFinalization busyloop.
Yes, I agree.
More information about the hotspot-compiler-dev