< prev index next >

test/jdk/java/foreign/CallGeneratorHelper.java

Print this page
@@ -40,17 +40,23 @@
  import java.util.List;
  import java.util.Stack;
  import java.util.function.Consumer;
  import java.util.stream.Collectors;
  import java.util.stream.IntStream;
+ import java.util.stream.Stream;
  
  import org.testng.annotations.*;
  
  import static org.testng.Assert.*;
  
  public class CallGeneratorHelper extends NativeTestHelper {
  
+     static final List<MemoryLayout> STACK_PREFIX_LAYOUTS = Stream.concat(
+             Stream.generate(() -> (MemoryLayout) C_LONG_LONG).limit(8),
+             Stream.generate(() -> (MemoryLayout)  C_DOUBLE).limit(8)
+         ).toList();
+ 
      static SegmentAllocator THROWING_ALLOCATOR = (size, align) -> {
          throw new UnsupportedOperationException();
      };
  
      static final int SAMPLE_FACTOR = Integer.parseInt((String)System.getProperties().getOrDefault("generator.sample.factor", "-1"));
< prev index next >