Temporary memory leak in FutureImpl.executors (#8640)

* Temporary memory leak in `FutureImpl.executors`

* https://github.com/jenkinsci/jenkins-test-harness/pull/669 released

* Skip new test on Windows https://github.com/jenkinsci/jenkins/pull/8640#discussion_r1373797374
This commit is contained in:
Jesse Glick authored and GitHub committed 2023-11-08 06:39:28 -07:00
1 parent 942f932242
commit e4fe5042e4
3 files changed
+29

No files matched your search

@@ -95,4 +95,8 @@ public final class FutureImpl extends AsyncFutureImpl<Executable> implements Que
synchronized void addExecutor(@NonNull Executor executor) {
this.executors.add(executor);
}
synchronized void finished() {
executors.clear();
}
}
@@ -190,6 +190,7 @@ public final class WorkUnitContext {
}
}
}
future.finished();
}
}
}