Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7017240

C2: native memory leak in nsk/regression/b4675027 on windows-x86 in comp mode with G1

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      x86
    • OS:
      windows
    • Verification:
      Verified

      Backports

        Description

        nsk/regression/b4675027 crashes due to OOM during method compilation.

        It crashes when it tries to load com.sun.tools.hat.internal.oql.OQLEngine and all its dependencies.
        The problematic method is:
        sun.org.mozilla.javascript.internal.Interpreter::interpretLoop(7102 bytes)

        Only 32-bit Server VM on Windows in comp mode is affected when G1 is used. I wasn't able to reproduce the crash in other modes.

        Simplified test case:
        public class Test {
            public static void main(String args[]) throws Exception {
                Class initClass = Class.forName("com.sun.tools.hat.internal.oql.OQLEngine");
            }
        }

        The test fails from at least b120 to b125 (hs20-b03 to hs20-b06). Starting b126 it stops failing, though VM version is the same (hs20-b06). I suppose some JDK changes hid the bug.

        How to reproduce:
           - login to vmsqe-xeon-05.russia
           - java -server -Xcomp -XX:+UseG1GC -cp .;%JDK%/lib/tools.jar Test
           or
           - cd cd K:/execution/results/JDK7/PROMOTION/VM/7/b122/G1/vm/windows-i586/server/comp/windows-i586_vm__server_comp_nsk.regression.testlist/ResultDir/b4675027
           - bash rerun.sh

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kvn Vladimir Kozlov
                  Reporter:
                  vlivanov Vladimir Ivanov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: