On Tue, 15 Oct 2024 17:03:40 GMT, Dan Heidinga <heidi...@openjdk.org> wrote:

>> Ioi Lam has updated the pull request with a new target base due to a merge 
>> or a rebase. The pull request now contains 29 commits:
>> 
>>  - @DanHeidinga comments -- added ConcurrentHashMap::runtimeSetup() to init 
>> NCPU to runtime value; also use the same runtimeSetup() pattern to call 
>> registerNatives() for Class.java and Unsafe.java
>>  - Merge branch 
>> 'jep-483-step-06-8311071-avoid-soft-refs-in-java-lang-invoke' into 
>> jep-483-step-07-8293336-store-lambda-forms-in-cds-archive
>>  - Fixed JDK-8341988: jstack launched with AOT cache created with 
>> -XX:+AOTClassLinking crashes
>>  - 8341600: [premain] Automatic aot-init of classes used by java.lang.invoke
>>  - @adinn comments
>>  - improve checks for not changing <clinit> order for aot linking of lambda; 
>> added comprehensive test cases: AOTLinkedLambdasApp::testClinitOrder()
>>  - Clean up of aotClassInitializer and cdsHeaVerifier; added lambda test 
>> cases for <clinit> order of app classes
>>  - Merge branch 
>> 'jep-483-step-06-8311071-avoid-soft-refs-in-java-lang-invoke' into 
>> jep-483-step-07-8293336-store-lambda-forms-in-cds-archive
>>  - Require all <clinit> of supertypes of aot-inited classes to be executed 
>> in assembly phase
>>  - Limit the use of AOTHolder
>>  - ... and 19 more: https://git.openjdk.org/jdk/compare/e46b910a...382446d4
>
> src/hotspot/share/cds/metaspaceShared.cpp line 873:
> 
>> 871:       Symbol* method_sig = vmSymbols::void_method_signature();
>> 872:       JavaCalls::call_static(&result, vmClasses::Class_klass(),
>> 873:                              method_name, method_sig, CHECK);
> 
> Is this a good candidate for a `runtimeResolve` helper method?  Can we roll 
> it into the same mechanism as the other `runtimeResolve` classes use?

`Class::reflectionFactory` is a large table that must be cleared, or else we 
will bring unwanted (unsupported) objects into the cache.

During runtime, `reflectionFactory` will be initialized on demand, so there's 
no need to explicitly create it with `runtimeSetup`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21143#discussion_r1805823385

Reply via email to