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

[lworld] runtime/valhalla/inlinetypes/PreloadCircularityTest.java fails with --enable-preview

XMLWordPrintable

      When --enable-preview is specified, the primitive wrappers, Optional, and a few other standard library classes are value class. test_50 fails.

      Running test_50
      Command line: [/Users/mlchung/dev/valhalla/lworld-dev/build/macosx-aarch64-server-fastdebug/images/jdk/bin/java -cp /Users/mlchung/dev/valhalla/lworld-dev/build/macosx-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_hotspot_valhalla_runtime/classes/2/runtime/valhalla/inlinetypes/PreloadCircularityTest.d:/Users/mlchung/dev/valhalla/lworld-dev/test/hotspot/jtreg/runtime/valhalla/inlinetypes:/Users/mlchung/dev/valhalla/lworld-dev/build/macosx-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_hotspot_valhalla_runtime/classes/2/test/lib:/Users/mlchung/dev/valhalla/lworld-dev/test/lib:/Users/Shared/java/devtools/jtreg-7.3.1/lib/javatest.jar:/Users/Shared/java/devtools/jtreg-7.3.1/lib/jtreg.jar -XX:MaxRAMPercentage=5 -Dtest.boot.jdk=/Users/Shared/java/re/jdk-21.jdk/Contents/Home -Djava.io.tmpdir=/Users/mlchung/dev/valhalla/lworld-dev/build/macosx-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_hotspot_valhalla_runtime/tmp -Xint --enable-preview -XX:+EnableValhalla -XX:+EnableValhalla -Dtest.class.path=/Users/mlchung/dev/valhalla/lworld-dev/build/macosx-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_hotspot_valhalla_runtime/classes/2/runtime/valhalla/inlinetypes/PreloadCircularityTest.d:/Users/mlchung/dev/valhalla/lworld-dev/build/macosx-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_hotspot_valhalla_runtime/classes/2/test/lib -Xlog:class+preload=info PreloadCircularityTest$TestHelper PreloadCircularityTest$Class50a ]
      [2024-03-07T20:53:54.890772Z] Gathering output for process 68301
      [0.028s][info][class,preload] Preloading class java/util/Optional during linking of class java/lang/Float because of the class is listed in the Preload attribute
      [0.028s][info][class,preload] Preloading of class java/util/Optional during linking of class java/lang/Float (cause: Preload attribute) succeeded
      [0.028s][info][class,preload] Preloading class java/util/Optional during linking of class java/lang/Double because of the class is listed in the Preload attribute
      [0.028s][info][class,preload] Preloading of class java/util/Optional during linking of class java/lang/Double (cause: Preload attribute) succeeded
      [0.032s][info][class,preload] Preloading class java/util/Optional during linking of class java/lang/Integer because of the class is listed in the Preload attribute
      [0.033s][info][class,preload] Preloading of class java/util/Optional during linking of class java/lang/Integer (cause: Preload attribute) succeeded
      [0.033s][info][class,preload] Preloading class java/util/Optional during linking of class java/lang/Byte because of the class is listed in the Preload attribute
      [0.033s][info][class,preload] Preloading of class java/util/Optional during linking of class java/lang/Byte (cause: Preload attribute) succeeded
      [0.034s][info][class,preload] Preloading class java/util/Optional during linking of class java/lang/Character because of the class is listed in the Preload attribute
      [0.034s][info][class,preload] Preloading of class java/util/Optional during linking of class java/lang/Character (cause: Preload attribute) succeeded
      [0.041s][info][class,preload] Preloading class java/util/Optional during linking of class java/lang/Boolean because of the class is listed in the Preload attribute
      [0.041s][info][class,preload] Preloading of class java/util/Optional during linking of class java/lang/Boolean (cause: Preload attribute) succeeded
      [0.044s][info][class,preload] Preloading class java/util/Optional during linking of class java/lang/Long because of the class is listed in the Preload attribute
      [0.044s][info][class,preload] Preloading of class java/util/Optional during linking of class java/lang/Long (cause: Preload attribute) succeeded
      [0.045s][info][class,preload] Preloading class java/util/Optional during linking of class java/lang/Short because of the class is listed in the Preload attribute
      [0.045s][info][class,preload] Preloading of class java/util/Optional during linking of class java/lang/Short (cause: Preload attribute) succeeded
      [0.093s][info][class,preload] Preloading class java/util/Optional during linking of class java/util/stream/FindOps$FindSink$OfRef$$Lambda+0x000000074c08d758 because of the class is listed in the Preload attribute
      [0.093s][info][class,preload] Preloading of class java/util/Optional during linking of class java/util/stream/FindOps$FindSink$OfRef$$Lambda+0x000000074c08d758 (cause: Preload attribute) succeeded
      [0.094s][info][class,preload] Preloading class java/util/Optional during linking of class java/util/stream/FindOps$FindSink$OfRef$$Lambda+0x000000074c08dc28 because of the class is listed in the Preload attribute
      [0.094s][info][class,preload] Preloading of class java/util/Optional during linking of class java/util/stream/FindOps$FindSink$OfRef$$Lambda+0x000000074c08dc28 (cause: Preload attribute) succeeded

      [2024-03-07T20:53:55.082447Z] Waiting for completion for process 68301
      [2024-03-07T20:53:55.082518Z] Waiting for completion finished for process 68301
      [2024-03-07T20:53:55.082640Z] Waiting for completion for process 68301
      [2024-03-07T20:53:55.082686Z] Waiting for completion finished for process 68301
      Test test_50 : FAILED

            fparain Frederic Parain
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: