RFR: 8062036: ConcurrentMarkThread::slt may be invoked before ConcurrentMarkThread::makeSurrogateLockerThread causing intermittent crashes

Kim Barrett kim.barrett at oracle.com
Wed Nov 5 18:07:59 UTC 2014

On Nov 5, 2014, at 11:24 AM, Thomas Schatzl <thomas.schatzl at oracle.com> wrote:
> Looks good. Could you add a regression test case?
> Maybe one that tries to force the error message (i.e. checks it),

That requires causing a GC (that needs the SLT) during VM initialization.  I’m not sure how one would write such a test.  It certainly involves producing the desired effect using only command line arguments, since by the time any application Java code is run the initialization is necessarily complete.  And I’d like to avoid introducing a command line option to disable the init-time suppression of ScavengeALot so that we can test that error message.

> and
> one that just runs the given example command line.

That I can do, and I’ll verify it fails without the changes, and produces the desired error message with just the changes for that.

More information about the hotspot-gc-dev mailing list