File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 40
40
public class SegmentTestDataProvider {
41
41
42
42
static VarHandle BYTE_HANDLE = MemoryLayouts .JAVA_BYTE .varHandle (byte .class );
43
- static VarHandle CHAR_HANDLE = MemoryLayouts .JAVA_CHAR .varHandle (char .class );
44
- static VarHandle SHORT_HANDLE = MemoryLayouts .JAVA_SHORT .varHandle (short .class );
45
- static VarHandle INT_HANDLE = MemoryLayouts .JAVA_INT .varHandle (int .class );
46
- static VarHandle LONG_HANDLE = MemoryLayouts .JAVA_LONG .varHandle (long .class );
47
- static VarHandle FLOAT_HANDLE = MemoryLayouts .JAVA_FLOAT .varHandle (float .class );
48
- static VarHandle DOUBLE_HANDLE = MemoryLayouts .JAVA_DOUBLE .varHandle (double .class );
43
+ static VarHandle CHAR_HANDLE = MemoryLayouts .JAVA_CHAR .withBitAlignment ( 8 ). varHandle (char .class );
44
+ static VarHandle SHORT_HANDLE = MemoryLayouts .JAVA_SHORT .withBitAlignment ( 8 ). varHandle (short .class );
45
+ static VarHandle INT_HANDLE = MemoryLayouts .JAVA_INT .withBitAlignment ( 8 ). varHandle (int .class );
46
+ static VarHandle LONG_HANDLE = MemoryLayouts .JAVA_LONG .withBitAlignment ( 8 ). varHandle (long .class );
47
+ static VarHandle FLOAT_HANDLE = MemoryLayouts .JAVA_FLOAT .withBitAlignment ( 8 ). varHandle (float .class );
48
+ static VarHandle DOUBLE_HANDLE = MemoryLayouts .JAVA_DOUBLE .withBitAlignment ( 8 ). varHandle (double .class );
49
49
50
50
static boolean compareSegmentsByte (Collection <MemorySegment > segments1 , Collection <MemorySegment > segments2 , boolean isOrdered ) {
51
51
Function <MemorySegment , Byte > mapper = segment -> (byte )BYTE_HANDLE .get (segment .baseAddress ());
You can’t perform that action at this time.
0 commit comments