Make Miscellaneous#invokeGarbageCollector jd more verbose
This commit is contained in:
parent
a0a89d2f3c
commit
260464d727
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue