Review request: 8025096: Move the ChunkManager instances out of the VirtualSpaceLists
stefan.karlsson at oracle.com
Fri Sep 20 00:49:05 PDT 2013
On 09/20/2013 09:29 AM, Mikael Gerdin wrote:
> On 2013-09-20 08:54, Stefan Karlsson wrote:
>> New webrev based on Coleen's comments.
>> - Moved the _vs_list pointer out from SpaceManager
>> - Removed the unused _medium_chunk_bunch field.
> I think the moving of ChunkManager makes sense, the change looks good.
> Thanks for getting this patch ready so soon!
>> On 9/19/13 9:48 PM, Stefan Karlsson wrote:
>>> In the fix for 'JDK-8024547
>>> <https://bugs.openjdk.java.net/browse/JDK-8024547>: MaxMetaspaceSize
>>> should limit the committed memory used by the metaspaces' we need to
>>> make a clearer distinction between when new memory is committed and
>>> when memory is allocated inside already committed memory.
>>> Moving the ChunkManager, which handles the free chunk list, out of the
>>> VirtualSpaceList, which handles the committed metaspace memory, is a
>>> step in that direction.
>>> - Move the ChunkManager instances from VirtualSpaceList to
>>> - Move the inc_container_count() into ChunkManager::free_chunks_get.
>>> Now the Chunk manager calls dec_container_count when chunks are
>>> inserted in the chunk free list and inc_container_count when chunks
>>> are removed from the chunk free list.
>>> - Moved the ChunkManager::chunk_freelist_allocate() call out from the
More information about the hotspot-dev