TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How ZGC allocates memory for the Java heap

86 pointsby lichtenberger24 days ago

2 comments

pron24 days ago
For relevant upcoming changes see Automatic Heap Sizing for ZGC: <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;8329758" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;8329758</a>
gopalv24 days ago
The 32x virtual memory to physical memory ratio plays into relocation and colored pointers (i.e pointers where some bits serve as flag bits).<p>Putting the actual data layouts in 44 bits out of 64 is a neat trick which relies on the allocator being aware of the mappings between physical and virtual addresses.
评论 #43776048 未加载
评论 #43774591 未加载