|
25 | 25 |
|
26 | 26 | package jdk.internal.foreign;
|
27 | 27 |
|
28 |
| -import java.lang.foreign.*; |
| 28 | +import jdk.internal.access.JavaNioAccess; |
| 29 | +import jdk.internal.access.SharedSecrets; |
| 30 | +import jdk.internal.access.foreign.UnmapperProxy; |
| 31 | +import jdk.internal.misc.ScopedMemoryAccess; |
| 32 | +import jdk.internal.reflect.CallerSensitive; |
| 33 | +import jdk.internal.reflect.Reflection; |
| 34 | +import jdk.internal.util.ArraysSupport; |
| 35 | +import jdk.internal.util.Preconditions; |
| 36 | +import jdk.internal.vm.annotation.ForceInline; |
| 37 | +import sun.nio.ch.DirectBuffer; |
| 38 | + |
| 39 | +import java.lang.foreign.AddressLayout; |
| 40 | +import java.lang.foreign.Arena; |
| 41 | +import java.lang.foreign.MemoryLayout; |
| 42 | +import java.lang.foreign.MemorySegment; |
| 43 | +import java.lang.foreign.SegmentAllocator; |
| 44 | +import java.lang.foreign.ValueLayout; |
29 | 45 | import java.lang.reflect.Array;
|
30 | 46 | import java.nio.Buffer;
|
31 | 47 | import java.nio.ByteBuffer;
|
32 | 48 | import java.nio.ByteOrder;
|
33 | 49 | import java.nio.charset.Charset;
|
34 |
| -import java.util.*; |
| 50 | +import java.util.List; |
| 51 | +import java.util.Objects; |
| 52 | +import java.util.Optional; |
| 53 | +import java.util.Spliterator; |
35 | 54 | import java.util.function.BiFunction;
|
36 | 55 | import java.util.function.Consumer;
|
37 | 56 | import java.util.function.Function;
|
38 | 57 | import java.util.function.IntFunction;
|
39 | 58 | import java.util.stream.Stream;
|
40 | 59 | import java.util.stream.StreamSupport;
|
41 | 60 |
|
42 |
| -import jdk.internal.access.JavaNioAccess; |
43 |
| -import jdk.internal.access.SharedSecrets; |
44 |
| -import jdk.internal.access.foreign.UnmapperProxy; |
45 |
| -import jdk.internal.misc.ScopedMemoryAccess; |
46 |
| -import jdk.internal.reflect.CallerSensitive; |
47 |
| -import jdk.internal.reflect.Reflection; |
48 |
| -import jdk.internal.util.ArraysSupport; |
49 |
| -import jdk.internal.util.Preconditions; |
50 |
| -import jdk.internal.vm.annotation.ForceInline; |
51 |
| -import sun.nio.ch.DirectBuffer; |
52 |
| - |
53 | 61 | /**
|
54 | 62 | * This abstract class provides an immutable implementation for the {@code MemorySegment} interface. This class contains information
|
55 | 63 | * about the segment's spatial and temporal bounds; each memory segment implementation is associated with an owner thread which is set at creation time.
|
|
0 commit comments