Make Miscellaneous#invokeGarbageCollector jd more verbose

This commit is contained in:
JeremyStar™ 2024-07-22 13:39:17 +02:00
parent a0a89d2f3c
commit 260464d727
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -189,8 +189,14 @@ public final class Miscellaneous {
}
/**
* Forcefully invokes the garbage collector and blocks execution until finished.<br/>
* 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}.
* <p>
* 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
*/