From 260464d727a93af96381c8e7fc730f07ae8f9edc Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 22 Jul 2024 13:39:17 +0200 Subject: [PATCH] Make Miscellaneous#invokeGarbageCollector jd more verbose --- .../sosengine/base/utility/Miscellaneous.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java b/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java index a61a0a8..2b5ca04 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java @@ -189,8 +189,14 @@ public final class Miscellaneous { } /** - * Forcefully invokes the garbage collector and blocks execution until finished.
- * If you want to run it in parallel to your program, consider running it in a {@link VirtualThread}. + * Forcefully invokes the garbage collector + * and blocks execution until finished. + * If you want to run it in parallel to your + * program, consider running it in a {@link VirtualThread}. + *

+ * This method does not guarantee full garbage collection, + * as the JVM only hints the garbage collector to do it's job. + * This is because all garbage collectors are non-deterministic. * * @since v1-alpha0 */