- 
    Bug 
- 
    Resolution: Fixed
- 
     P2 P2
- 
    21, 22
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8313945 | 21.0.1 | Stefan Karlsson | P2 | Resolved | Fixed | b06 | 
| JDK-8313767 | 21 | Stefan Karlsson | P2 | Resolved | Fixed | b35 | 
                    The following assert is hit when the JVM fails to commit more memory for the heap:
assert(size > 0) failed: Invalid size
...
V [libjvm.so+0x185d157] VirtualMemoryTracker::add_committed_region(unsigned char*, unsigned long, NativeCallStack const&)+0x4d7 (virtualMemoryTracker.cpp:428)
V [libjvm.so+0x19c1f33] ZNMT::process_fake_mapping(zoffset, unsigned long, bool)+0xa3 (memTracker.hpp:168)
V [libjvm.so+0x19db817] ZPhysicalMemoryManager::commit(ZPhysicalMemory&)+0x47 (zPhysicalMemory.cpp:312)
V [libjvm.so+0x19d1e4b] ZPageAllocator::alloc_page_finalize(ZPageAllocation*)+0x6b (zPageAllocator.cpp:427)
The failure to commit memory is reported by returning that the committed size is zero. We then pass that information to the NMT subsystem, which asserts.
assert(size > 0) failed: Invalid size
...
V [libjvm.so+0x185d157] VirtualMemoryTracker::add_committed_region(unsigned char*, unsigned long, NativeCallStack const&)+0x4d7 (virtualMemoryTracker.cpp:428)
V [libjvm.so+0x19c1f33] ZNMT::process_fake_mapping(zoffset, unsigned long, bool)+0xa3 (memTracker.hpp:168)
V [libjvm.so+0x19db817] ZPhysicalMemoryManager::commit(ZPhysicalMemory&)+0x47 (zPhysicalMemory.cpp:312)
V [libjvm.so+0x19d1e4b] ZPageAllocator::alloc_page_finalize(ZPageAllocation*)+0x6b (zPageAllocator.cpp:427)
The failure to commit memory is reported by returning that the committed size is zero. We then pass that information to the NMT subsystem, which asserts.
- backported by
- 
                    JDK-8313767 Generational ZGC: NMT assert when the heap fails to expand -           
- Resolved
 
-         
- 
                    JDK-8313945 Generational ZGC: NMT assert when the heap fails to expand -           
- Resolved
 
-         
- links to
- 
                     Commit
        openjdk/jdk21/4273487e Commit
        openjdk/jdk21/4273487e
- 
                     Commit
        openjdk/jdk/19e2c8c3 Commit
        openjdk/jdk/19e2c8c3
- 
                     Review
        openjdk/jdk21/163 Review
        openjdk/jdk21/163
- 
                     Review
        openjdk/jdk/15120 Review
        openjdk/jdk/15120
             (1 links to)