HHH-6219 Nullify pending put map or singleton to avoid leaks

This commit is contained in:
Galder Zamarreño 2011-06-07 12:12:30 +02:00
parent 2077b5f43c
commit c678392e30
1 changed files with 4 additions and 0 deletions

View File

@ -662,10 +662,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;
}
}
}