< prev index next >

test/jdk/java/foreign/TestMatrix.java

Print this page
@@ -1,450 +1,247 @@
  /*
-  * Note: to run this test manually, you need to build the tests first to get native
-  * libraries compiled, and then execute it with plain jtreg, like:
+  * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
+  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
-  *  $ bin/jtreg -jdk:<path-to-tested-jdk> \
-  *              -nativepath:<path-to-build-dir>/support/test/jdk/jtreg/native/lib/ \
-  *              -concurrency:auto \
-  *              ./test/jdk/java/foreign/TestMatrix.java
-  */
- 
- /*
-  * @test id=UpcallHighArity-FFTT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * This code is free software; you can redistribute it and/or modify it
+  * under the terms of the GNU General Public License version 2 only, as
+  * published by the Free Software Foundation.
   *
-  * @run testng/othervm/native/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcallHighArity
-  */
- 
- /* @test id=UpcallHighArity-TFTT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * This code is distributed in the hope that it will be useful, but WITHOUT
+  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+  * version 2 for more details (a copy is included in the LICENSE file that
+  * accompanied this code).
   *
-  * @run testng/othervm/native/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcallHighArity
-  */
- 
- /* @test id=UpcallHighArity-FTTT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * You should have received a copy of the GNU General Public License version
+  * 2 along with this work; if not, write to the Free Software Foundation,
+  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
   *
-  * @run testng/othervm/native/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcallHighArity
+  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+  * or visit www.oracle.com if you need additional information or have any
+  * questions.
   */
  
- /* @test id=UpcallHighArity-TTTT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+ /*
+  * Note: to run this test manually, you need to build the tests first to get native
+  * libraries compiled, and then execute it with plain jtreg, like:
   *
-  * @run testng/othervm/native/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcallHighArity
+  *  $ bin/jtreg -jdk:<path-to-tested-jdk> \
+  *              -nativepath:<path-to-build-dir>/support/test/jdk/jtreg/native/manual/lib/ \
+  *              -concurrency:auto \
+  *              ./test/jdk/java/foreign/TestMatrix.java
   */
  
- /* @test id=UpcallHighArity-FFTF
+ /* @test id=UpcallHighArity-FF
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
   * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
+  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
   *   TestUpcallHighArity
   */
  
- /* @test id=UpcallHighArity-TFTF
+ /* @test id=UpcallHighArity-TF
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
   * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
+  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
   *   TestUpcallHighArity
   */
  
- /* @test id=UpcallHighArity-FTTF
+ /* @test id=UpcallHighArity-FT
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
   * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
   *   TestUpcallHighArity
   */
  
- /* @test id=UpcallHighArity-TTTF
+ /* @test id=UpcallHighArity-TT
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
   * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
   *   TestUpcallHighArity
   */
  
- /* @test id=UpcallHighArity-FFFT
+ /* @test id=Downcall-F
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * @build NativeTestHelper CallGeneratorHelper TestDowncall
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcallHighArity
+  *   TestDowncall
   */
  
- /* @test id=UpcallHighArity-TFFT
+ /* @test id=Downcall-T
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * @build NativeTestHelper CallGeneratorHelper TestDowncall
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcallHighArity
+  *   TestDowncall
   */
  
- /* @test id=UpcallHighArity-FTFT
+ /* @test id=UpcallScope-FF
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcallHighArity
+  *   TestUpcallScope
   */
  
- /* @test id=UpcallHighArity-TTFT
+ /* @test id=UpcallScope-TF
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcallHighArity
+  *   TestUpcallScope
   */
  
- /* @test id=UpcallHighArity-FFFF
+ /* @test id=UpcallScope-FT
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcallHighArity
+  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
+  *   TestUpcallScope
   */
  
- /* @test id=UpcallHighArity-TFFF
+ /* @test id=UpcallScope-TT
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
   * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcallHighArity
+  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
+  *   TestUpcallScope
   */
  
- /* @test id=UpcallHighArity-FTFF
+ /* @test id=UpcallAsync-FF
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
-  * @run testng/othervm/native/manual
+  * @run testng/othervm/native/manual/timeout=960
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcallHighArity
+  *   TestUpcallAsync
   */
  
- /* @test id=UpcallHighArity-TTFF
+ /* @test id=UpcallAsync-TF
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcallHighArity
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
-  * @run testng/othervm/native/manual
+  * @run testng/othervm/native/manual/timeout=960
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcallHighArity
+  *   TestUpcallAsync
   */
  
- /* @test id=Downcall-FF
+ /* @test id=UpcallAsync-FT
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestDowncall
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
-  * @run testng/othervm/manual
+  * @run testng/othervm/native/manual/timeout=960
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   TestDowncall
-  */
- 
- /* @test id=Downcall-TF
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestDowncall
-  *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   TestDowncall
-  */
- 
- /* @test id=Downcall-FT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestDowncall
-  *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   TestDowncall
-  */
- 
- /* @test id=Downcall-TT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestDowncall
-  *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   TestDowncall
-  */
- 
- /* @test id=Upcall-TFTT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
-  *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcall
-  */
- 
- /* @test id=Upcall-FTTT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
-  *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcall
+  *   TestUpcallAsync
   */
  
- /* @test id=Upcall-TTTT
+ /* @test id=UpcallAsync-TT
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
-  * @run testng/othervm/manual
+  * @run testng/othervm/native/manual/timeout=960
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcall
+  *   TestUpcallAsync
   */
  
- /* @test id=Upcall-TFTF
+ /* @test id=UpcallStack-FF
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcall
-  */
- 
- /* @test id=Upcall-FTTF
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
-  *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcall
-  */
- 
- /* @test id=Upcall-TTTF
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
-  *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcall
-  */
- 
- /* @test id=Upcall-TFFT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
-  *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcall
-  */
- 
- /* @test id=Upcall-FTFT
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
-  *
-  * @run testng/othervm/manual
+  * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcall
+  *   TestUpcallStack
   */
  
- /* @test id=Upcall-TTFT
+ /* @test id=UpcallStack-TF
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
-  * @run testng/othervm/manual
-  *   --enable-native-access=ALL-UNNAMED
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=true
-  *   TestUpcall
-  */
- 
- /* @test id=Upcall-TFFF
-  * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
-  * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
-  *
-  * @run testng/othervm/manual
+  * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=false
   *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcall
+  *   TestUpcallStack
   */
  
- /* @test id=Upcall-FTFF
+ /* @test id=UpcallStack-FT
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
-  * @run testng/othervm/manual
+  * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcall
+  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
+  *   TestUpcallStack
   */
  
- /* @test id=Upcall-TTFF
+ /* @test id=UpcallStack-TT
   * @requires ((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64"
   * @modules jdk.incubator.foreign/jdk.internal.foreign
-  * @build NativeTestHelper CallGeneratorHelper TestUpcall
+  * @build NativeTestHelper CallGeneratorHelper TestUpcallBase
   *
-  * @run testng/othervm/manual
+  * @run testng/othervm/native/manual
   *   --enable-native-access=ALL-UNNAMED
   *   -Djdk.internal.foreign.ProgrammableInvoker.USE_SPEC=true
-  *   -Djdk.internal.foreign.ProgrammableInvoker.USE_INTRINSICS=true
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=false
-  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_INTRINSICS=false
-  *   TestUpcall
+  *   -Djdk.internal.foreign.ProgrammableUpcallHandler.USE_SPEC=true
+  *   TestUpcallStack
   */
+ 
< prev index next >