On Wed, 18 Nov 2026 16:37:56 GMT, Vladimir Kozlov <[email protected]> wrote:

> Most of AOT code and CDS methods use `NOT_CDS_RETURN*` to handle case when 
> CDS is not included into VM build.
> We don't need `#if INCLUDE_CDS` to guard code which use such methods - C++ 
> compiler should fold code anyway.
> 
> I added a few `NOT_CDS_RETURN*` to allow the removal of more `INCLUDE_CDS`. 
> And I moved `entry` checks from `find_aot_code_entry()` in 
> `compilationPolicy.cpp` to `AOTCodeCache::find_code_entry()`
> 
> Testied: tier1-3,hs-comp-stress,hs-aot-stress, build without CDS
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Looks generally reasonable, but a question:

src/hotspot/cpu/x86/macroAssembler_x86.cpp line 6027:

> 6025:   if (vk != nullptr) {
> 6026:     // Called from C1, where the return type is statically known.
> 6027:     mov_metadata(rbx, vk->constant_encoding());

Hold on, this is not equivalent change, or am I missing something?

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

PR Review: https://git.openjdk.org/jdk/pull/33951#pullrequestreview-5962073909
PR Review Comment: https://git.openjdk.org/jdk/pull/33951#discussion_r4618400510

Reply via email to