On Sat, 28 Mar 2026 02:24:14 GMT, Yasumasa Suenaga <[email protected]> wrote:

> On the review for [JDK-8380955](https://bugs.openjdk.org/browse/JDK-8380955) 
> (#30443), `Linker` and `FunctionDescriptor` do not need to be value based 
> class because they would not be treated as "value".
> `Linker` is defined as providing a way to look up the canonical layouts 
> associated with the data types used by the ABI. `FunctionDescriptor` 
> represents the signature of a foreign function. They are not "value".
> 
> Actually they and their child (final) classes do not have `@ValueBased`, thus 
> `javac` and `-XX:DiagnoseSyncOnValueBasedClasses` cannot identify if they are 
> used in anti-pattern of value based class. Thus this change does not change 
> behavior, just documentation updates.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 7bbd2619
Author:    Yasumasa Suenaga <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/7bbd2619781ca42e9576c081ec6421fe220b0572
Stats:     6 lines in 2 files changed: 3 ins; 1 del; 2 mod

8381233: Linker does not need to be value based class

Reviewed-by: mcimadamore

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

PR: https://git.openjdk.org/jdk/pull/30481

Reply via email to