Home  >  Article  >  Java  >  Detailed introduction to data area

Detailed introduction to data area

零下一度
零下一度Original
2017-06-10 11:20:352789browse

1. The program counter is the line number indicator of the bytecode executed by the current thread. 2. The Java virtual machine stack thread is private and has the same life cycle as the thread. Used to store information such as local variable tables, operand stacks, dynamic linked lists, method exits, etc. Local variable table storage content: basic data types (boolean, byte, char, short, int, float, long, double) object reference (different from symbol reference, symbol reference is stored in the constant pool) returnAddress type (points to a bytecode instruction The address of long and double type data with a length of 64 bits occupies 2 local variable spaces (slots), and the rest occupies 1 slot. Two exceptions: StackOverflowError: The stack depth requested by the thread > the depth allowed by the virtual machine OutOfMemoryError: Unable to apply for enough memory during dynamic expansion 3. The native method stack (Native Method Stack) is similar to the virtual machine stack, the difference is the Native Method Stack service In the Native method, the virtual machine stack service

1. Java runtime data area for JVM learning

Detailed introduction to data area

Introduction: Program counter Line number indicator of the bytecode executed by the current thread. 2. Java virtual machine stack is thread private and has the same life cycle as the thread. Used to store information such as local variable tables, operand stacks, dynamic linked lists, method exits, etc.

2. Detailed explanation of Java memory allocation and recycling mechanism (picture)

Detailed introduction to data area

##Introduction: This article mainly talks about the allocation and recycling mechanism of Java memory, mainly including the Java runtime data area, object creation, garbage collection algorithm and recycling strategy. The reference book is "In-depth Understanding of Java Virtual Machine" by teacher Zhou Zhiming. The author only summarizes and illustrates it based on the content in the book. This part of the content is almost all comprehensible. In order to facilitate understanding and memory, it is presented in the form of pictures, texts or tables as much as possible. 1. Runtime data area The following figure is a memory diagram of the Java virtual machine when it is running: From the figure we can see that the Java memory is divided into...

3. A detailed introduction to the memory runtime data area managed by the Java virtual machine

Detailed introduction to data area

Introduction: This article mainly introduces For detailed information on the memory runtime data area managed by the Java virtual machine, friends in need can refer to the following

[Related Q&A recommendations]:

vba - python calls win32com.client to make a line chart in excel

The Java synchronization mechanism can be explained through the analogy of a building.

The above is the detailed content of Detailed introduction to data area. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn