Skip to content
Permalink
Browse files
[JENKINS-36871] When tiered compilation kicks in, sometimes you can g…
…et concurrent modification exceptions

- They'll recover, but better is not to have to worry about it at all
  • Loading branch information
stephenc committed Aug 3, 2016
1 parent 0ef5cac commit adc601401d66a01c44d819a56f81c33de9c304b3
Showing 1 changed file with 5 additions and 2 deletions.
@@ -750,8 +750,11 @@ private void cleanList(@CheckForNull List<PhantomReferenceImpl> referenceList) {
if (referenceList == null) {
return;
}
for (PhantomReferenceImpl phantom: referenceList) {
phantom.clear();
for (int i = 0; i < referenceList.size(); i++) {
PhantomReferenceImpl phantom = referenceList.get(i);
if (phantom != null) {
phantom.clear();
}
}
// simplify life for the Garbage collector by reducing reference counts
referenceList.clear();

0 comments on commit adc6014

Please sign in to comment.