From 236007c39e651114169a1cd5f5ad629297033f35 Mon Sep 17 00:00:00 2001 From: Maurizio Cimadamore Date: Thu, 16 May 2024 11:50:16 +0100 Subject: [PATCH] Revert commented lines in test --- test/jdk/java/foreign/TestAccessModes.java | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/test/jdk/java/foreign/TestAccessModes.java b/test/jdk/java/foreign/TestAccessModes.java index 1a94eae5b1578..0cedcc9058e2b 100644 --- a/test/jdk/java/foreign/TestAccessModes.java +++ b/test/jdk/java/foreign/TestAccessModes.java @@ -137,15 +137,15 @@ static Set 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 layouts = new ArrayList<>(); for (MemoryLayout layout : valueLayouts) { @@ -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]) }; }