-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Currently we are using System.runFinalization as part of the initial, enforced, garbage collection execution. See
Hyperfoil/core/src/main/java/io/hyperfoil/core/impl/SimulationRunner.java
Lines 525 to 535 in 7f3850b
| private void runSystemGC() { | |
| long actualGCRun = System.currentTimeMillis(); | |
| // Run the GC twice and force finalization before every GC run | |
| System.runFinalization(); | |
| System.gc(); | |
| System.runFinalization(); | |
| System.gc(); | |
| log.info("GC execution took {} ms", (System.currentTimeMillis() - actualGCRun)); | |
| } |
Since version 18 the method was marked as deprecate for removal with:
Finalization has been deprecated for removal. See Object.finalize for background information and details about migration options.
When running in a JVM in which finalization has been disabled or removed, no objects will be pending finalization, so this method does nothingWe should probably start thinking if that is really needed and if so, how to migrate that.
Metadata
Metadata
Assignees
Labels
No labels