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

[Graal] Graal should retain local variables if jvmti can_pop_frame/can_access_local_variables capability is set

    XMLWordPrintable

Details

    Description

      This tests fails for me in jdk12 and jdk13 if I run with -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler -Xcomp:

      ----------System.out:(11/2320)----------
      run [ExecDriver, --java, -XX:-Inline, -XX:CompileThreshold=900, -Xbatch, -XX:-TieredCompilation, -agentlib:hs203t004=pathToNewByteCode=./bin -waittime=5 package=nsk samples=100 mode=compiled, nsk.jvmti.scenarios.hotswap.HS203.hs203t004.hs203t004]
      exec [/scratch/mesos/jib-master/install/2019-01-25-0228474.alexey.menkov.jdk12/macosx-x64-debug.jdk/jdk-12/fastdebug/bin/java, -XX:MaxRAMPercentage=6, -Xcomp, -XX:+UnlockExperimentalVMOptions, -XX:+EnableJVMCI, -XX:+TieredCompilation, -XX:+UseJVMCICompiler, -Djvmci.Compiler=graal, -cp, /scratch/mesos/slaves/07fc96ef-bf4d-487f-b22f-a84e49f5f44a-S47657/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/15b2dea8-e6cd-43f7-9eba-c7b44b65cdb6/runs/1e963de3-2a5b-4904-8831-afef2e231f53/testOutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jvmti/classes/2/vmTestbase/nsk/jvmti/scenarios/hotswap/HS203/hs203t004/hs203t004.d:/scratch/mesos/slaves/07fc96ef-bf4d-487f-b22f-a84e49f5f44a-S47657/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/15b2dea8-e6cd-43f7-9eba-c7b44b65cdb6/runs/1e963de3-2a5b-4904-8831-afef2e231f53/testOutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jvmti/classes/2/vmTestbase:/scratch/mesos/slaves/07fc96ef-bf4d-487f-b22f-a84e49f5f44a-S47657/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/15b2dea8-e6cd-43f7-9eba-c7b44b65cdb6/runs/1e963de3-2a5b-4904-8831-afef2e231f53/testOutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jvmti/classes/2/test/lib, -Djava.library.path=/scratch/mesos/jib-master/install/2019-01-25-0228474.alexey.menkov.jdk12/macosx-x64-debug.test/hotspot/jtreg/native, -XX:-Inline, -XX:CompileThreshold=900, -Xbatch, -XX:-TieredCompilation, -agentlib:hs203t004=pathToNewByteCode=./bin -waittime=5 package=nsk samples=100 mode=compiled, nsk.jvmti.scenarios.hotswap.HS203.hs203t004.hs203t004]
       MyThread :: MyThread().
       MyThread.doThisFunction().
      # info :: File = ./bin/newclass00/nsk/jvmti/scenarios/hotswap/HS203/hs203t004/MyThread.class
      # info **Agent:: opening file ./bin/newclass00/nsk/jvmti/scenarios/hotswap/HS203/hs203t004/MyThread.class
      # info file size= 1018
       File red completely
      Exception in thread "Thread-0" java.lang.NullPointerException
      at nsk.jvmti.scenarios.hotswap.HS203.hs203t004.MyThread.run(Unknown Source)
       Thread state = 1100
      ----------System.err:(18/6025)----------
      java.lang.AssertionError: [/scratch/mesos/jib-master/install/2019-01-25-0228474.alexey.menkov.jdk12/macosx-x64-debug.jdk/jdk-12/fastdebug/bin/java, -XX:MaxRAMPercentage=6, -Xcomp, -XX:+UnlockExperimentalVMOptions, -XX:+EnableJVMCI, -XX:+TieredCompilation, -XX:+UseJVMCICompiler, -Djvmci.Compiler=graal, -cp, /scratch/mesos/slaves/07fc96ef-bf4d-487f-b22f-a84e49f5f44a-S47657/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/15b2dea8-e6cd-43f7-9eba-c7b44b65cdb6/runs/1e963de3-2a5b-4904-8831-afef2e231f53/testOutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jvmti/classes/2/vmTestbase/nsk/jvmti/scenarios/hotswap/HS203/hs203t004/hs203t004.d:/scratch/mesos/slaves/07fc96ef-bf4d-487f-b22f-a84e49f5f44a-S47657/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/15b2dea8-e6cd-43f7-9eba-c7b44b65cdb6/runs/1e963de3-2a5b-4904-8831-afef2e231f53/testOutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jvmti/classes/2/vmTestbase:/scratch/mesos/slaves/07fc96ef-bf4d-487f-b22f-a84e49f5f44a-S47657/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/15b2dea8-e6cd-43f7-9eba-c7b44b65cdb6/runs/1e963de3-2a5b-4904-8831-afef2e231f53/testOutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_jvmti/classes/2/test/lib, -Djava.library.path=/scratch/mesos/jib-master/install/2019-01-25-0228474.alexey.menkov.jdk12/macosx-x64-debug.test/hotspot/jtreg/native, -XX:-Inline, -XX:CompileThreshold=900, -Xbatch, -XX:-TieredCompilation, -agentlib:hs203t004=pathToNewByteCode=./bin -waittime=5 package=nsk samples=100 mode=compiled, nsk.jvmti.scenarios.hotswap.HS203.hs203t004.hs203t004] exit code is 97
      at ExecDriver.main(ExecDriver.java:139)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:835)

      Attachments

        Issue Links

          Activity

            People

              jcm Jamsheed C M (Inactive)
              dlong Dean Long
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: