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

gc/shenandoah/compiler/TestLinkToNativeRBP.java fails after LibraryLookup is gone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • None
    • 17
    • b26
    • generic
    • generic

      2021-06-04T22:27:06.4417961Z TEST: gc/shenandoah/compiler/TestLinkToNativeRBP.java
      2021-06-04T22:27:06.4420282Z TEST JDK: /home/runner/jdk-linux-x64-debug/jdk-17-internal+0_linux-x64_bin-debug/jdk-17/fastdebug
      2021-06-04T22:27:06.4421119Z
      2021-06-04T22:27:06.4422016Z ACTION: build -- Failed. Compilation failed: Compilation failed
      2021-06-04T22:27:06.4422877Z REASON: Named class compiled on demand
      2021-06-04T22:27:06.4423502Z TIME: 0.05 seconds
      2021-06-04T22:27:06.4424026Z messages:
      2021-06-04T22:27:06.4424687Z command: build TestLinkToNativeRBP
      2021-06-04T22:27:06.4425437Z reason: Named class compiled on demand
      2021-06-04T22:27:06.4426049Z Test directory:
      2021-06-04T22:27:06.4426721Z compile: TestLinkToNativeRBP
      2021-06-04T22:27:06.4427418Z elapsed time (seconds): 0.05
      2021-06-04T22:27:06.4427857Z
      2021-06-04T22:27:06.4428739Z ACTION: compile -- Failed. Compilation failed: Compilation failed
      2021-06-04T22:27:06.4429598Z REASON: .class file out of date or does not exist
      2021-06-04T22:27:06.4430228Z TIME: 0.05 seconds
      2021-06-04T22:27:06.4430750Z messages:
      2021-06-04T22:27:06.4484558Z command: compile /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler/TestLinkToNativeRBP.java
      2021-06-04T22:27:06.4485835Z reason: .class file out of date or does not exist
      2021-06-04T22:27:06.4487139Z Additional options from @modules: --add-modules jdk.incubator.foreign
      2021-06-04T22:27:06.4487989Z Mode: agentvm
      2021-06-04T22:27:06.4488513Z Agent id: 1
      2021-06-04T22:27:06.4489066Z elapsed time (seconds): 0.05
      2021-06-04T22:27:06.4489667Z configuration:
      2021-06-04T22:27:06.4490322Z Boot Layer (javac runtime environment)
      2021-06-04T22:27:06.4491252Z class path: /home/runner/jtreg/lib/javatest.jar
      2021-06-04T22:27:06.4492019Z /home/runner/jtreg/lib/jtreg.jar
      2021-06-04T22:27:06.4493373Z patch: java.base /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/patches/java.base
      2021-06-04T22:27:06.4496850Z
      2021-06-04T22:27:06.4497321Z javac compilation environment
      2021-06-04T22:27:06.4497886Z add modules: jdk.incubator.foreign
      2021-06-04T22:27:06.4498613Z source path: /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler
      2021-06-04T22:27:06.4499421Z class path: /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler
      2021-06-04T22:27:06.4500909Z /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes/gc/shenandoah/compiler/TestLinkToNativeRBP.d
      2021-06-04T22:27:06.4501735Z
      2021-06-04T22:27:06.4502038Z rerun:
      2021-06-04T22:27:06.4502936Z cd /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/scratch && \
      2021-06-04T22:27:06.4503668Z HOME=/home/runner \
      2021-06-04T22:27:06.4504108Z JDK8_HOME=/home/runner/bootjdk/16 \
      2021-06-04T22:27:06.4504562Z JTREG_KEYWORDS=!headful \
      2021-06-04T22:27:06.4505053Z JTREG_VERBOSE=fail,error,time \
      2021-06-04T22:27:06.4505609Z LANG=C.UTF-8 \
      2021-06-04T22:27:06.4505937Z LC_ALL=C \
      2021-06-04T22:27:06.4506311Z PATH=/bin:/usr/bin:/usr/sbin \
      2021-06-04T22:27:06.4507244Z TEST_IMAGE_DIR=/home/runner/jdk-linux-x64-debug/jdk-17-internal+0_linux-x64_bin-tests-debug \
      2021-06-04T22:27:06.4508500Z /home/runner/jdk-linux-x64-debug/jdk-17-internal+0_linux-x64_bin-debug/jdk-17/fastdebug/bin/javac \
      2021-06-04T22:27:06.4509603Z -J-XX:MaxRAMPercentage=25 \
      2021-06-04T22:27:06.4510708Z -J-Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/tmp \
      2021-06-04T22:27:06.4512004Z -J-Djavatest.security.noSecurityManager=true \
      2021-06-04T22:27:06.4513002Z -J-XX:-CreateCoredumpOnCrash \
      2021-06-04T22:27:06.4514238Z -J-Djava.library.path=/home/runner/jdk-linux-x64-debug/jdk-17-internal+0_linux-x64_bin-tests-debug/hotspot/jtreg/native \
      2021-06-04T22:27:06.4516367Z -J-Dtest.vm.opts='-XX:MaxRAMPercentage=25 -Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/tmp -Djavatest.security.noSecurityManager=true' \
      2021-06-04T22:27:06.4519054Z -J-Dtest.tool.vm.opts='-J-XX:MaxRAMPercentage=25 -J-Djava.io.tmpdir=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/tmp -J-Djavatest.security.noSecurityManager=true' \
      2021-06-04T22:27:06.4520708Z -J-Dtest.compiler.opts= \
      2021-06-04T22:27:06.4521559Z -J-Dtest.java.opts=-XX:-CreateCoredumpOnCrash \
      2021-06-04T22:27:06.4522730Z -J-Dtest.jdk=/home/runner/jdk-linux-x64-debug/jdk-17-internal+0_linux-x64_bin-debug/jdk-17/fastdebug \
      2021-06-04T22:27:06.4524269Z -J-Dcompile.jdk=/home/runner/jdk-linux-x64-debug/jdk-17-internal+0_linux-x64_bin-debug/jdk-17/fastdebug \
      2021-06-04T22:27:06.4525290Z -J-Dtest.timeout.factor=4.0 \
      2021-06-04T22:27:06.4526470Z -J-Dtest.nativepath=/home/runner/jdk-linux-x64-debug/jdk-17-internal+0_linux-x64_bin-tests-debug/hotspot/jtreg/native \
      2021-06-04T22:27:06.4527656Z -J-Dtest.root=/home/runner/work/jdk/jdk/test/hotspot/jtreg \
      2021-06-04T22:27:06.4528653Z -J-Dtest.name=gc/shenandoah/compiler/TestLinkToNativeRBP.java \
      2021-06-04T22:27:06.4529943Z -J-Dtest.file=/home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler/TestLinkToNativeRBP.java \
      2021-06-04T22:27:06.4531157Z -J-Dtest.src=/home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler \
      2021-06-04T22:27:06.4532222Z -J-Dtest.src.path=/home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler \
      2021-06-04T22:27:06.4533865Z -J-Dtest.classes=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes/gc/shenandoah/compiler/TestLinkToNativeRBP.d \
      2021-06-04T22:27:06.4535849Z -J-Dtest.class.path=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes/gc/shenandoah/compiler/TestLinkToNativeRBP.d \
      2021-06-04T22:27:06.4538211Z -J-Dtest.class.path.prefix=/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes/gc/shenandoah/compiler/TestLinkToNativeRBP.d:/home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler \
      2021-06-04T22:27:06.4539889Z -J-Dtest.modules=jdk.incubator.foreign \
      2021-06-04T22:27:06.4540725Z --add-modules jdk.incubator.foreign \
      2021-06-04T22:27:06.4603740Z -d /home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes/gc/shenandoah/compiler/TestLinkToNativeRBP.d \
      2021-06-04T22:27:06.4605524Z -sourcepath /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler \
      2021-06-04T22:27:06.4607775Z -classpath /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler:/home/runner/work/jdk/jdk/build/run-test-prebuilt/test-support/jtreg_test_hotspot_jtreg_tier1_gc/classes/gc/shenandoah/compiler/TestLinkToNativeRBP.d /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler/TestLinkToNativeRBP.java
      2021-06-04T22:27:06.4609336Z direct:
      2021-06-04T22:27:06.4609896Z warning: using incubating module(s): jdk.incubator.foreign
      2021-06-04T22:27:06.4610926Z /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler/TestLinkToNativeRBP.java:42: error: cannot find symbol
      2021-06-04T22:27:06.4612245Z import jdk.incubator.foreign.LibraryLookup;
      2021-06-04T22:27:06.4612900Z ^
      2021-06-04T22:27:06.4613320Z symbol: class LibraryLookup
      2021-06-04T22:27:06.4613893Z location: package jdk.incubator.foreign
      2021-06-04T22:27:06.4614878Z /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler/TestLinkToNativeRBP.java:51: error: cannot find symbol
      2021-06-04T22:27:06.4616064Z static final LibraryLookup lookup = LibraryLookup.ofLibrary("LinkToNativeRBP");
      2021-06-04T22:27:06.4616751Z ^
      2021-06-04T22:27:06.4617152Z symbol: class LibraryLookup
      2021-06-04T22:27:06.4617720Z location: class TestLinkToNativeRBP
      2021-06-04T22:27:06.4618670Z /home/runner/work/jdk/jdk/test/hotspot/jtreg/gc/shenandoah/compiler/TestLinkToNativeRBP.java:51: error: cannot find symbol
      2021-06-04T22:27:06.4619844Z static final LibraryLookup lookup = LibraryLookup.ofLibrary("LinkToNativeRBP");
      2021-06-04T22:27:06.4620563Z ^
      2021-06-04T22:27:06.4620990Z symbol: variable LibraryLookup
      2021-06-04T22:27:06.4621571Z location: class TestLinkToNativeRBP
      2021-06-04T22:27:06.4622053Z 3 errors
      2021-06-04T22:27:06.4622366Z 1 warning
      2021-06-04T22:27:06.4622589Z
      2021-06-04T22:27:06.4623096Z TEST RESULT: Failed. Compilation failed: Compilation failed


      the test can't find symbol LibraryLookup.ofLibrary() anymore after JDK-8268129.

            xliu Xin Liu
            xliu Xin Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: