mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8369041: Release memory after testing in ThreadsRunner.java
Reviewed-by: shade, tschatzl
This commit is contained in:
parent
b6a4cfecb7
commit
596af0a7cc
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user