mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
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 void releaseLock() {
|
||||
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…
x
Reference in New Issue
Block a user