Skip to content

Commit

Permalink
Drop spurious changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcimadamore committed May 15, 2024
1 parent 70010e3 commit 749a6ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,6 @@ public sealed interface MemoryLayout
* {@code A} is the size of this layout and {@code S} is the size of the
* accessed memory segment. Note that the size of this layout might be <em>bigger</em>
* than the size of the accessed layout (e.g. when accessing a struct member).</li>
* <li>The offset of the access operation (computed as above) must fall inside
* the spatial bounds of the accessed memory segment, or an
* {@link IndexOutOfBoundsException} is thrown. This is the case when
* {@code O + A <= S}, where {@code O} is the accessed offset (computed as above),
* {@code A} is the size of the selected layout and {@code S} is the size of the
* accessed memory segment.</li>
* <li>If the provided layout path has an open path element whose size is {@code S},
* its corresponding trailing {@code long} coordinate value {@code I} must be
* {@code 0 <= I < S}, or an {@link IndexOutOfBoundsException} is thrown.</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@
import java.lang.foreign.ValueLayout;
import java.lang.invoke.VarHandle;
import java.nio.ByteOrder;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;

/**
* A value layout. A value layout is used to model the memory layout associated with values of basic data types, such as <em>integral</em> types
Expand Down Expand Up @@ -162,7 +159,7 @@ static boolean isValidCarrier(Class<?> carrier) {
public final VarHandle varHandle() {
if (handle == null) {
// this store to stable field is safe, because return value of 'makeMemoryAccessVarHandle' has stable identity
handle = Utils.makeSegmentViewVarHandle((ValueLayout) this, false);
handle = Utils.makeSegmentViewVarHandle(self(), false);
}
return handle;
}
Expand Down

0 comments on commit 749a6ca

Please sign in to comment.