HHH-6219 : Memory leak with Infinispan

This commit is contained in:
Gail Badner 2011-06-08 16:19:06 -07:00
parent 86748c42f8
commit 6e80b34f83
1 changed files with 4 additions and 0 deletions

View File

@ -665,10 +665,14 @@ public class PutFromLoadValidator {
public void invalidate() {
if (singlePendingPut != null) {
singlePendingPut.completed = true;
// Nullify to avoid leaking completed pending puts
singlePendingPut = null;
} else if (fullMap != null) {
for (PendingPut pp : fullMap.values()) {
pp.completed = true;
}
// Nullify to avoid leaking completed pending puts
fullMap = null;
}
}
}