From d03c6120ffa58a4d9b01420cfb26cd06cbf18588 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Wed, 20 Sep 2023 19:22:04 +0700 Subject: [PATCH] [FIX] Sentry module Java 8 --- .../src/main/java/pro/gravit/utils/helper/JVMHelper.java | 1 - .../src/main/java11/pro/gravit/utils/helper/JVMHelper.java | 1 - 2 files changed, 2 deletions(-) diff --git a/LauncherCore/src/main/java/pro/gravit/utils/helper/JVMHelper.java b/LauncherCore/src/main/java/pro/gravit/utils/helper/JVMHelper.java index cf95e57e..e691aacb 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/helper/JVMHelper.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/helper/JVMHelper.java @@ -123,7 +123,6 @@ public static Class firstClass(String... names) throws ClassNotFoundException public static void fullGC() { RUNTIME.gc(); - RUNTIME.runFinalization(); LogHelper.debug("Used heap: %d MiB", RUNTIME.totalMemory() - RUNTIME.freeMemory() >> 20); } diff --git a/LauncherCore/src/main/java11/pro/gravit/utils/helper/JVMHelper.java b/LauncherCore/src/main/java11/pro/gravit/utils/helper/JVMHelper.java index ca8ff03a..d2779207 100644 --- a/LauncherCore/src/main/java11/pro/gravit/utils/helper/JVMHelper.java +++ b/LauncherCore/src/main/java11/pro/gravit/utils/helper/JVMHelper.java @@ -100,7 +100,6 @@ public static Class firstClass(String... names) throws ClassNotFoundException public static void fullGC() { RUNTIME.gc(); - RUNTIME.runFinalization(); LogHelper.debug("Used heap: %d MiB", RUNTIME.totalMemory() - RUNTIME.freeMemory() >> 20); }