-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJVM.java
More file actions
23 lines (17 loc) · 1.06 KB
/
Copy pathJVM.java
File metadata and controls
23 lines (17 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
*
*
* VM Memory
Method area :In method area, all class level information like class name, immediate parent class name, methods and variables information etc.
are stored, including static variables. There is only one method area per JVM, and it is a shared resource.
Heap area :Information of all objects is stored in heap area. There is also one Heap Area per JVM. It is also a shared resource.
Stack area :For every thread, JVM create one run-time stack which is stored here. Every block of this stack is called
activation record/stack frame which store methods calls. All local variables of that method are stored in their corresponding frame.
After a thread terminate, it’s run-time stack will be destroyed by JVM. It is not a shared resource.
PC Registers :Store address of current execution instruction of a thread. Obviously each thread has separate PC Registers.
Native method stacks :For every thread, separate native stack is created. It stores native method information.
*
*
* */
public class JVM {
}