RFR (S): 8141421: Various test fail with OOME on win x86

Derek White derek.white at oracle.com
Tue Jan 19 17:38:44 UTC 2016


This is a small fix for a (malloc) memory leak that is causing a variety 
of crashes.

This also improves memory tracking slightly, and adds asserts that 
clarify the expected locking usage of g1CodeCacheRemSet.

*BUG*: JDK-8141421 Various test fail with OOME on win x86
*Webrev*: http://cr.openjdk.java.net/~drwhite/8141421/webrev.00/
*Testing* jprt, aurora.

  - Derek

NOTE: Still tracking down if this fixes all failures noted in 8141421:

    +RULE "runtime/6819213/TestBootNativeLibraryPath.java" Crash Out of
    Memory Error ...allocation.inline.hpp...
    +RULE "runtime/6819213/TestBootNativeLibraryPath.java" ExitCode 1
    RULE "runtime/Metaspace/FragmentMetaspace.java" Crash Out of Memory
    Error ...allocation.inline.hpp...
    RULE "runtime/Metaspace/FragmentMetaspace.java" ExitCode 1
    RULE
    "vm/runtime/contended/tests/genereated/GeneratedClassTest_1_20_10000_10_0.75d"
    Crash Out of Memory Error ...allocation.inline.hpp...
    RULE
    "vm/runtime/contended/tests/genereated/GeneratedClassTest_1_20_10000_10_0.75d"
    ExitCode 1
    RULE
    "vm/runtime/contended/tests/genereated/GeneratedClassTest_20_100_512_20_0.75d"
    Crash Out of Memory Error ...allocation.inline.hpp...
    RULE
    "vm/runtime/contended/tests/genereated/GeneratedClassTest_20_100_512_20_0.75d"
    ExitCode 1
    RULE "jdk/lambda/vm/InterfaceAccessFlagsTest.java" Crash Out of
    Memory Error ...allocation.inline.hpp...
    RULE "jdk/lambda/vm/InterfaceAccessFlagsTest.java" ExitCode 1
    RULE "tools/launcher/ArgsFileTest.java" Crash Out of Memory Error
    ...allocation.inline.hpp...
    RULE "tools/launcher/MultipleJRERemoved.java" Crash Out of Memory
    Error ...allocation.inline.hpp...
    RULE "tools/launcher/TestMainWithoutEnclosing.java" Crash Out of
    Memory Error ...allocation.inline.hpp...
    RULE "tools/launcher/UnresolvedExceptions.java" Crash Out of Memory
    Error ...allocation.inline.hpp...
    RULE
    "vm/runtime/contended/tests/genereated/GeneratedClassTest_20_100_10000_10_0.75d"
    Crash Out of Memory Error ...allocation.inline.hpp...
    java\lang\instrument\ManyMethodsBenchmarkAgent.java

    This may also fix:
    JDK-8134889 Kitchensink stress test crashes with out of memory error
    JDK-8134747 ParallelClassLoading tests run out of memory on win32
    8134992 vm/gc/compact/Compact_InternedStrings_Strings failed due to
    a malloc() failure

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20160119/620b3d5e/attachment.htm>


More information about the hotspot-gc-dev mailing list