On Fri, 26 Jun 2026 15:50:01 GMT, Frederic Parain <[email protected]> wrote:

> Change in finalizers registration to prevent it for value classes.
> 
> Tested tier1-4.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

src/hotspot/share/classfile/classFileParser.cpp line 4164:

> 4162:   if (InstanceKlass::is_finalization_enabled() &&
> 4163:       (m != nullptr) && !m->is_empty_method() &&
> 4164:       m->method_holder()->access_flags().is_identity_class()) {

Could we call ClassFileParser's ` is_identity_class()` here instead of going 
through the method_holder?

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2589#discussion_r3483574909

Reply via email to