8369041: Release memory after testing in ThreadsRunner.java

Reviewed-by: shade, tschatzl
This commit is contained in:
Albert Mingkun Yang 2025-10-06 15:44:13 +00:00
parent b6a4cfecb7
commit 596af0a7cc

View File

@ -310,6 +310,10 @@ public class ThreadsRunner implements MultiRunner, LogAware, RunParamsAware {
log.info("Unexpected exception during the run.");
log.info(t);
successful = false;
} finally {
// Finished testing; release memory to avoid OOM.
runnables.clear();
threads.clear();
}
}