RFR: 8308463: Refactor regenerated class handling in lambdaFormInvokers.cpp

David Holmes dholmes at openjdk.org
Wed Jun 21 06:33:05 UTC 2023


On Wed, 21 Jun 2023 00:00:06 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> The handling of regenerated classes need to be refactored to enable future development:
> 
> - Improve the API to access the regenerated classes and their methods
> - Allow more classes to be regenerated, not just the Lambda Form invokers. Therefore, the code is moved to a new file cds/regeneratedClasses.cpp
> 
> 
> Please see the bug report [JDK-8308463](https://bugs.openjdk.org/browse/JDK-8308463) for motivation of this PR.

src/hotspot/share/cds/archiveBuilder.cpp line 463:

> 461:   bool created;
> 462:   _src_obj_table.put_if_absent(orig_src_obj, src_info, &created);
> 463:   assert(created, "We shouldn't have archived the original copy of an regenerated object");

nit: s/an/a/

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14573#discussion_r1236442717


More information about the hotspot-runtime-dev mailing list