[jdk16u] Integrated: 8267345: VM crashes during dumping classlist with -Xshare:dump option
Yumin Qi
minqi at openjdk.java.net
Thu May 20 15:32:01 UTC 2021
On Wed, 19 May 2021 19:46:58 GMT, Yumin Qi <minqi at openjdk.org> wrote:
> Hi, Please review
> The problem is caused by JDK-8247536: Support for pre-generated java.lang.invoke classes in CDS static archive
> Usually the dump with an appointed class list file, -XX:SharedClassListFile=<classlist>, the 'classlist' is collected by pre-run the application with -XX:DumpLoadedClassList, so it is rare case using -Xshare:dump and -XX:DumpLoadedClassList together, though we can do that.
> It is reproducible by run
> java -Xshare:dump -XX:DumpLoadedClassList=<any valid file name>
> The problem happened when regenerating lambda form invoker's holder classes, with which the re-generated class stream without a source associated (class is generated on fly). Referencing to NULL source failed. Fix checks if source is valid.
>
> Tests: tier1,tier2,tier3,tier4
>
> Thanks
> Yumin
This pull request has now been integrated.
Changeset: 5311c4d4
Author: Yumin Qi <minqi at openjdk.org>
URL: https://git.openjdk.java.net/jdk16u/commit/5311c4d454bc30a357d0a066f8cb919d89792836
Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod
8267345: VM crashes during dumping classlist with -Xshare:dump option
Reviewed-by: iklam, ccheung
-------------
PR: https://git.openjdk.java.net/jdk16u/pull/119
More information about the jdk-updates-dev
mailing list