Heap(堆)
Java堆是Java虛擬機所管理內存中最大的一塊,在虛擬機啟動時創建,被所有線程共享。
Java對象實例以及數組都在堆上分配。
The Java Virtual Machine has a heap that is shared among all Java Virtual
Machine threads. The heap is the run-time data area from which memory for all
class instances and arrays is allocated.
The heap is created on virtual machine start-up.
此時回看裝載階段的第3步:(3)在Java堆中生成一個代表這個類的java.lang.Class對象,作為對方法區中這些數據的訪問入口
此時裝載(1)(2)(3)的圖可以改動一下
?
超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生總結
- 上一篇: Method Area(方法区)
- 下一篇: The pc Register(程序计数