Is java heap memory continuous?
•
Java
I've seen people comment that Java heap memory is continuous, and people say the opposite So, can someone give me a final answer and explain this question? In addition, is there any kind of data structure in Java heap, just like Java stack?
Solution
From JVM spec: heap memory does not need to be contiguous So your code should not make assumptions about heap continuity
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码