-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b30
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083319 | emb-9 | Unassigned | P4 | Resolved | Fixed | b30 |
JDK-8063425 | 8u45 | Unassigned | P4 | Resolved | Fixed | b01 |
JDK-8056296 | 8u40 | Zhengyu Gu | P4 | Closed | Fixed | b04 |
JDK-8070979 | emb-8u47 | Unassigned | P4 | Resolved | Fixed | team |
NMT2 detects memory leak in NMT2 implementation.
NMT2 tries to baseline memory into an arena. Virtual memory's reserved regions (ReservedMemoryRegion) are baselined into the arena, however, the committed regions (CommittedMemoryRegion) inside the reserved regions are allocated on C heap.
When the baseline is discarded, it simply discards the arena, which do not invoke ReservedMemoryRegion's dtor, therefore, committed regions are not free.
[0x000000005f14eb29] ResourceObj::operator new+0x99
[0x000000005f5905da] SortedLinkedList<CommittedMemoryRegion,&compare_committed_region,2,10,1>::add+0x2a
[0x000000005f58e20f] ReservedMemoryRegion::operator=+0xef
[0x000000005f590918] LinkedListNode<ReservedMemoryRegion>::LinkedListNode<ReservedMemoryRegion>+0x78
(malloc=5KB +5KB #54 +54)
NMT2 tries to baseline memory into an arena. Virtual memory's reserved regions (ReservedMemoryRegion) are baselined into the arena, however, the committed regions (CommittedMemoryRegion) inside the reserved regions are allocated on C heap.
When the baseline is discarded, it simply discards the arena, which do not invoke ReservedMemoryRegion's dtor, therefore, committed regions are not free.
[0x000000005f14eb29] ResourceObj::operator new+0x99
[0x000000005f5905da] SortedLinkedList<CommittedMemoryRegion,&compare_committed_region,2,10,1>::add+0x2a
[0x000000005f58e20f] ReservedMemoryRegion::operator=+0xef
[0x000000005f590918] LinkedListNode<ReservedMemoryRegion>::LinkedListNode<ReservedMemoryRegion>+0x78
(malloc=5KB +5KB #54 +54)
- backported by
-
JDK-8063425 NMT2 leaks memory
- Resolved
-
JDK-8070979 NMT2 leaks memory
- Resolved
-
JDK-8083319 NMT2 leaks memory
- Resolved
-
JDK-8056296 NMT2 leaks memory
- Closed