HHH-6219 Nullify pending put map or singleton to avoid leaks
This commit is contained in:
parent
2077b5f43c
commit
c678392e30
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue