Skip to content

Commit

Permalink
Refactor for latest JDK 20
Browse files Browse the repository at this point in the history
  • Loading branch information
httpdigest committed Dec 16, 2022
1 parent a78bf62 commit 9ea59cb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 359 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
java-version: '19'
java-version: '20-ea'
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
Expand Down
1 change: 0 additions & 1 deletion src/jmh/java/org/joml/jmh/Bench.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public class Bench {
private final Matrix4fvBB m4vbb = new Matrix4fvBB();
private final Matrix4fvArr m4varr = new Matrix4fvArr();
private final ByteBuffer bb = allocateDirect(16<<2).order(nativeOrder());
private final long bb_addr = WithJvmci.address(bb);
private final FloatBuffer fb = bb.asFloatBuffer();
private final Quaternionf qa = new Quaternionf();
private final Quaternionf qb = new Quaternionf();
Expand Down
2 changes: 1 addition & 1 deletion src/jmh/java/org/joml/jmh/Matrix4fn.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class Matrix4fn {
public static final MethodHandle noop2ForPanama = getNoopForPanama();
private static MethodHandle getNoopForPanama() {
return Linker.nativeLinker().downcallHandle(
SymbolLookup.loaderLookup().lookup("noop2ForPanama").get(),
SymbolLookup.loaderLookup().find("noop2ForPanama").get(),
FunctionDescriptor.ofVoid(JAVA_LONG, JAVA_LONG)
);
}
Expand Down
Loading

0 comments on commit 9ea59cb

Please sign in to comment.