RFR (XXS): 8024396: VM crashing with assert(!UseLargePages || UseParallelOldGC || use_large_pages) failed: Wrong alignment to use large pages

Stefan Karlsson stefan.karlsson at oracle.com
Wed Sep 11 08:29:05 PDT 2013


On 09/11/2013 04:54 PM, Thomas Schatzl wrote:
> Hi all,
>
>    can I have reviews for the following tiny issue: while initializing
> the heap a failing assertion is hit.
>
> Instead of checking whether any parallel gc combination is allowed to
> have a non-large page aligned heap when large pages are used, it only
> verifies that ParallelOldGC is set.
> Since -XX:+ParallelGC -XX:-ParallelOldGC is a valid combination, the
> assert fails in this case.
>
> I added a test case that checks successful startup for all gcs with and
> without UseLargePages. Not sure if it is needed to do that for all gcs,
> as this bug is really specific to parallel gc, and I'm somewhat
> reluctant due to the added number of gc invocations - any comments?
>
> Webrev:
> http://cr.openjdk.java.net/~tschatzl/8024396

The fix looks good.

Most of our test names are prefixed with "Test". Maybe rename the new 
test to TestAlignmentToUseLargePages?

thanks,
StefanK

>
> bugs.sun.com (not available yet):
> http://bugs.sun.com/view_bug.do?bug_id=8024396
>
> Testing:
> jprt, failing jtreg test case now succeeding
>
> Thanks,
>    Thomas
>
>



More information about the hotspot-gc-dev mailing list