Commit 09c5720
Phillip Webb
Fix memory leak in ConcurrentReferenceHashMap
Update ConcurrentReferenceHashMap to protect against references that
have been garbage collected but for some reason do not appear as a
`pollForPurge` result.
Also added purgeUnreferencedEntries() method to allow for programmatic
cleanup.
Issue: SPR-11440
(cherry picked from commit 2b4c81e)1 parent 4886bf0 commit 09c5720
File tree
1 file changed
+18
-3
lines changed- spring-core/src/main/java/org/springframework/util
1 file changed
+18
-3
lines changedLines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
337 | 350 | | |
338 | 351 | | |
339 | 352 | | |
| |||
508 | 521 | | |
509 | 522 | | |
510 | 523 | | |
511 | | - | |
| 524 | + | |
512 | 525 | | |
513 | 526 | | |
514 | 527 | | |
| |||
546 | 559 | | |
547 | 560 | | |
548 | 561 | | |
549 | | - | |
| 562 | + | |
550 | 563 | | |
551 | 564 | | |
552 | 565 | | |
| |||
560 | 573 | | |
561 | 574 | | |
562 | 575 | | |
563 | | - | |
| 576 | + | |
564 | 577 | | |
565 | 578 | | |
566 | 579 | | |
| |||
961 | 974 | | |
962 | 975 | | |
963 | 976 | | |
| 977 | + | |
964 | 978 | | |
965 | 979 | | |
966 | 980 | | |
| |||
991 | 1005 | | |
992 | 1006 | | |
993 | 1007 | | |
| 1008 | + | |
994 | 1009 | | |
995 | 1010 | | |
996 | 1011 | | |
0 commit comments