View JMMSample_06_Finals.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.openjdk.jcstress.tests.singletons; | |
import org.openjdk.jcstress.annotations.Actor; | |
import org.openjdk.jcstress.annotations.JCStressTest; | |
import org.openjdk.jcstress.annotations.Outcome; | |
import org.openjdk.jcstress.annotations.State; | |
import org.openjdk.jcstress.infra.results.I_Result; | |
import static org.openjdk.jcstress.annotations.Expect.ACCEPTABLE; | |
import static org.openjdk.jcstress.annotations.Expect.ACCEPTABLE_INTERESTING; |
View StringToCharStarStar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/java --source 17 --enable-native-access ALL-UNNAMED --add-modules jdk.incubator.foreign | |
import jdk.incubator.foreign.*; | |
import java.util.*; | |
import java.util.stream.*; | |
public class StringToCharStarStar { | |
public static void main(String[] args) { | |
List<String> strings = List.of(args); |
View TestLoadStoreBytes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jmh; | |
import jdk.incubator.foreign.CLinker; | |
import jdk.incubator.foreign.MemoryAccess; | |
import jdk.incubator.foreign.MemoryAddress; | |
import jdk.incubator.foreign.MemorySegment; | |
import jdk.incubator.foreign.ResourceScope; | |
import jdk.incubator.vector.ByteVector; | |
import jdk.incubator.vector.IntVector; | |
import jdk.incubator.vector.VectorSpecies; |
View TestLoadStoreInts.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jdk.incubator.foreign.CLinker; | |
import jdk.incubator.foreign.MemoryAddress; | |
import jdk.incubator.foreign.MemorySegment; | |
import jdk.incubator.foreign.ResourceScope; | |
import jdk.incubator.vector.IntVector; | |
import jdk.incubator.vector.VectorSpecies; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.BenchmarkMode; | |
import org.openjdk.jmh.annotations.Fork; | |
import org.openjdk.jmh.annotations.Measurement; |
View pr-117.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/hotspot/share/classfile/vmIntrinsics.hpp b/src/hotspot/share/classfile/vmIntrinsics.hpp | |
index 0035dc20dde..24cfbfb1ac2 100644 | |
--- a/src/hotspot/share/classfile/vmIntrinsics.hpp | |
+++ b/src/hotspot/share/classfile/vmIntrinsics.hpp | |
@@ -809,140 +809,278 @@ class methodHandle; | |
/* Vector API intrinsification support */ \ | |
\ | |
do_intrinsic(_VectorUnaryOp, jdk_internal_vm_vector_VectorSupport, vector_unary_op_name, vector_unary_op_sig, F_S) \ | |
- do_signature(vector_unary_op_sig, "(ILjava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;ILjdk/internal/vm/vector/VectorSupport$Vector;" \ | |
- "Ljdk/internal/vm/vector/VectorSupport$VectorMask;Ljdk/internal/vm/vector/VectorSupport$UnaryOperation;)"\ |
View BufferByteToShort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jmh; | |
import jdk.incubator.vector.ByteVector; | |
import jdk.incubator.vector.Vector; | |
import jdk.incubator.vector.VectorMask; | |
import jdk.incubator.vector.VectorOperators; | |
import jdk.incubator.vector.VectorShuffle; | |
import jdk.incubator.vector.VectorSpecies; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.BenchmarkMode; |
OlderNewer