Crash during optimizing exploded image with my patch
-
liangchenblue at gmail.com
Fri Sep 1 02:54:11 UTC 2023
Hello,
I am trying to create a patch [1] that optimizes forEach for immutable
factory collections (from List/Set.of) to see how it compares with
constant-folded random access. However, this patch somehow tampers with
exploded image optimization and modules during build, and I cannot build
this patch on my windows 11 device.
I have tried using both Oracle JDK 20 build 20+36-2344 (in JAVA_HOME) and
the JDK 21 build 35 as boot JDK. JDK 20 fails with an IAE with message "Bad
package name" (seems to be from modules.cpp) and JDK 21 fails with an NPE
'java.lang.NullPointerException: Cannot invoke "
java.lang.module.ResolvedModule.name()" because "resolvedModules[index]" is
null', both happening after reconfiguring and cleaning. These are my
command-line:
bash configure --with-boot-jdk=/cygdrive/c/java/boot/jdk-21
--enable-hsdis-bundling --with-hsdis=capstone
--with-capstone=/cygdrive/c/java/capstone-4.0.2-win64
--with-jmh=build/jmh/jars --with-conf-name=windows-x64
--enable-jtreg-failure-handler
Does anybody have any clue on why my patch fails the build? And how can I
resolve this problem?
Chen Liang
[1] https://github.com/liachmodded/jdk/pull/new/feature/imm-coll-stream
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20230901/f3bfd072/attachment.htm>
More information about the build-dev
mailing list