Skip to content

Commit

Permalink
Revert commented lines in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcimadamore committed May 16, 2024
1 parent 6a7f6a7 commit 236007c
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions test/jdk/java/foreign/TestAccessModes.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ static Set<AccessModeKind> supportedModes(ValueLayout layout) {

static MemoryLayout[] layouts() {
MemoryLayout[] valueLayouts = {
// ValueLayout.JAVA_BOOLEAN,
// ValueLayout.JAVA_CHAR,
// ValueLayout.JAVA_BYTE,
// ValueLayout.JAVA_SHORT,
// ValueLayout.JAVA_INT,
// ValueLayout.JAVA_FLOAT,
ValueLayout.JAVA_BOOLEAN,
ValueLayout.JAVA_CHAR,
ValueLayout.JAVA_BYTE,
ValueLayout.JAVA_SHORT,
ValueLayout.JAVA_INT,
ValueLayout.JAVA_FLOAT,
ValueLayout.JAVA_LONG,
// ValueLayout.JAVA_DOUBLE,
// ValueLayout.ADDRESS
ValueLayout.JAVA_DOUBLE,
ValueLayout.ADDRESS
};
List<MemoryLayout> layouts = new ArrayList<>();
for (MemoryLayout layout : valueLayouts) {
Expand All @@ -159,14 +159,14 @@ static MemoryLayout[] layouts() {

static MemorySegment[] segments() {
return new MemorySegment[]{
// Arena.ofAuto().allocate(8),
Arena.ofAuto().allocate(8),
MemorySegment.ofArray(new byte[8]),
// MemorySegment.ofArray(new char[4]),
// MemorySegment.ofArray(new short[4]),
// MemorySegment.ofArray(new int[2]),
// MemorySegment.ofArray(new float[2]),
// MemorySegment.ofArray(new long[1]),
// MemorySegment.ofArray(new double[1])
MemorySegment.ofArray(new char[4]),
MemorySegment.ofArray(new short[4]),
MemorySegment.ofArray(new int[2]),
MemorySegment.ofArray(new float[2]),
MemorySegment.ofArray(new long[1]),
MemorySegment.ofArray(new double[1])
};
}

Expand Down

0 comments on commit 236007c

Please sign in to comment.