当前位置:网站首页>Why does the JVM heap memory exceed 32g and pointer compression fail?

Why does the JVM heap memory exceed 32g and pointer compression fail?

2022-07-01 11:45:00 Ziqian 2014

OOP The compressed size is four bytes , The largest addressing space of four bytes is 2^32 That is to say 4 individual G, Then the object size is 8 Integer multiples of bytes , Therefore, according to this feature, we only need to locate 8 Of bytes 1 One byte space can locate the object , therefore OOP The compressed address space is 2^32*8 Namely 32G, If the heap memory exceeds 32G It may cause that there is no way to use the compressed OOP Address , Therefore, the heap memory exceeds 32G Pointer compression will fail .

原网站

版权声明
本文为[Ziqian 2014]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202160043440526.html