JVM Basic Structure 1

Source: Internet
Author: User

1.JVM Start-up process

java XXX---> Mount configuration----> Find JVM.dll based on configuration---> Initialize JVM to get JNIEVN interface---> Find Main method and run

|                               | |

Based on the current path JVM.dll the JVM JNIEVN as the JVM interface, Findclass

And the main implementations of the system version are implemented through it

Jvm.cfg

2.JVM of memory structure

3. PC Register

1) Each thread has a PC register

2) created when thread is created

3) point to the address of the next instruction

4) When you run the local method, the value of the PC is undefined

4. Method area

1) Save some information about the load class

--Constant pool of types

--Information on fields and methods

--Method byte code

2) usually associated with the permanent zone (PERM)

5. Java Heap

--closely related to the development of programs

--The objects in the application system are mainly stored in the heap

--All threads share the Java heap

-For generational GC, the heap is also generational

Main working range of--GC

6. Java stack

--Thread Private

--The stack is a series of frames (so the Java stack is also called the frame stack)

--frame holds local variables of a method (parameters and local variables of functions), operand stacks, Chang pointers

--each time a method call creates a frame and presses the stack

7. Java stack--operand stack

There are no registers in the--java, all parameters are passed with the operand stack

JVM Basic Structure 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.