Currently when uncommitting memory we ask the OS to actually uncommit it, and wait until that action has been completed.
However that is not necessary: OSes provide a facility to inform it that memory is unused, potentially delaying actual OS work to when there is need for new memory.
This means that the operation itself may be much faster, decreasing pause time (where we do this work currently).
However that is not necessary: OSes provide a facility to inform it that memory is unused, potentially delaying actual OS work to when there is need for new memory.
This means that the operation itself may be much faster, decreasing pause time (where we do this work currently).
- relates to
-
JDK-8196820 Implement unused memory deallocation (MADV_FREE/MADV_DONTNEED)
-
- Closed
-