Updated Upstream (Pufferfish)

Upstream has released updates that appear to apply and compile correctly

Pufferfish Changes:
pufferfish-gg/Pufferfish@8f95751 Updated Upstream (Paper)
pufferfish-gg/Pufferfish@6eef7e7 I'm lazy and this script makes life easier
pufferfish-gg/Pufferfish@1ebde66 Updated Upstream (Paper)
pufferfish-gg/Pufferfish@394f21f Confirm SIMD with JITWatch and update to Java 19
pufferfish-gg/Pufferfish@9771bd7 Updated Upstream (Paper)
This commit is contained in:
BillyGalbreath
2022-12-18 15:52:50 -06:00
parent 278eebff54
commit e2365fa207
2 changed files with 6 additions and 6 deletions

View File

@@ -619,7 +619,7 @@ index 0000000000000000000000000000000000000000..020368da69b9a492155f6de6297f7473
+}
diff --git a/src/main/java/gg/pufferfish/pufferfish/PufferfishConfig.java b/src/main/java/gg/pufferfish/pufferfish/PufferfishConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..4232585ab3048dcfd934569beca2f2f21d95f382
index 0000000000000000000000000000000000000000..48582f98fde23f3f1544a7303da21b6d7d4c874e
--- /dev/null
+++ b/src/main/java/gg/pufferfish/pufferfish/PufferfishConfig.java
@@ -0,0 +1,283 @@
@@ -711,13 +711,13 @@ index 0000000000000000000000000000000000000000..4232585ab3048dcfd934569beca2f2f2
+ // Attempt to detect vectorization
+ try {
+ SIMDDetection.isEnabled = SIMDDetection.canEnable(PufferfishLogger.LOGGER);
+ SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() != 17 && SIMDDetection.getJavaVersion() != 18;
+ } catch (NoClassDefFoundError | Exception ignored) {}
+ SIMDDetection.versionLimited = SIMDDetection.getJavaVersion() != 17 && SIMDDetection.getJavaVersion() != 18 && SIMDDetection.getJavaVersion() != 19;
+ } catch (NoClassDefFoundError | Exception ignored) { ignored.printStackTrace(); }
+
+ if (SIMDDetection.isEnabled) {
+ PufferfishLogger.LOGGER.info("SIMD operations detected as functional. Will replace some operations with faster versions.");
+ } else if (SIMDDetection.versionLimited) {
+ PufferfishLogger.LOGGER.warning("Will not enable SIMD! These optimizations are only safely supported on Java 17 and Java 18.");
+ PufferfishLogger.LOGGER.warning("Will not enable SIMD! These optimizations are only safely supported on Java 17, Java 18, and Java 19.");
+ } else {
+ PufferfishLogger.LOGGER.warning("SIMD operations are available for your server, but are not configured!");
+ PufferfishLogger.LOGGER.warning("To enable additional optimizations, add \"--add-modules=jdk.incubator.vector\" to your startup flags, BEFORE the \"-jar\".");