8381233: Linker does not need to be value based class

Reviewed-by: mcimadamore
This commit is contained in:
Yasumasa Suenaga 2026-05-22 06:14:07 +00:00
parent 15f09ceaf9
commit 7bbd261978
2 changed files with 5 additions and 3 deletions

View File

@ -551,8 +551,7 @@ import java.util.function.Consumer;
* upcall is typically executed in the context of a downcall method handle invocation.
*
* @implSpec
* Implementations of this interface are immutable, thread-safe and
* <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>.
* Implementations of this interface are immutable, thread-safe.
*
* @since 22
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -24,6 +24,8 @@
*/
package jdk.internal.foreign;
import jdk.internal.ValueBased;
import java.lang.foreign.FunctionDescriptor;
import java.lang.foreign.GroupLayout;
import java.lang.foreign.MemoryLayout;
@ -43,6 +45,7 @@ import static java.util.Objects.requireNonNull;
/**
* @implSpec This class and its subclasses are immutable, thread-safe and <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>.
*/
@ValueBased
public final class FunctionDescriptorImpl implements FunctionDescriptor {
private final MemoryLayout resLayout; // Nullable