Alibabacloud.com offers a wide variety of articles about java virtual machine launcher, easily find your java virtual machine launcher information here online.
execution.Load:The load phase is a phase in the class loading mechanism, which is often referred to as "loading," and is mainly done by:1. Obtain a binary byte stream that defines this class by "full name of Class"2. Convert the static storage structure represented by the byte stream to the run-time data structure of the method area3. Generate a Java.lang.Class object representing this class in the Java heap as the access entry for the data in the me
A virtual machine is a virtual computer that is used to perform a series of virtual computer commands. Virtual machines can generally be divided into the following:
(1) System virtual machine
1. Run-time data area
1.1 Program Counters
The program counter is a thread-isolated area where each thread has a separate program counter.
It is a small amount of memory space, the bytecode interpreter by changing the counter to select the next byte code instruction to execute, branch, loop, jump, exception handling, thread recovery and other basic functions need to rely on it to complete.1.2 Java Virtual
What is 1.JVM? Jvm:java virtual mechinal (Java vm). It is a fictional computer that is implemented by simulating various functions on a real computer. The main task of the JVM is to interpret its own set of instructions (bytecode, such as Java source code compiled into a class file to run on a virtual
1. Composition of the Java memory areaThe memory of the Java Virtual Runtime is mainly composed of five parts:(1) Method areaThe method area is used to store data such as class information, constants, static variables, and so on, that are loaded by the virtual machine. The s
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.0. PrefaceThe Java Virtual machine (Java Virtualmachine) implements the most important feature of the Java language: platform agnostic.Platform-agnostic principle: The
exceptions to the Java Virtual machine are represented by an instance of Throwable or its subclasses, which is actually a real-time, non-local (nonlocal) conversion of the control of the program-from where the exception is thrown to where it handles the exception. The vast majority of exceptions are caused by an operation that is performed by the current thread,
Java memory Area run-time data regionProgram counter (Counter Register)
A smaller memory space is an indicator of the line number of the bytecode that is being executed by the current thread. The bytecode interpreter obtains the next bytecode instruction by changing the value of the counter, branching, looping, jumping, exception handling, and thread recovery are done by it.
Each thread has its own counter, and the counters between the th
"Survival or death" how to determine whether the object is alive? Two algorithms are given in this paper, namely, the reference counting algorithm and the accessibility analysis algorithm.
Reference counting algorithm
The idea of the algorithm is simple and easy to implement. We add a reference counter to the object, and when there is a place to reference it, the reference counter adds one, and when the reference fails, the counter is reduced by one, and when the counter is 0 o'cloc
Document directory
Program counters
Java Virtual Machine Stack
Local method Stack
Java heap
Method Area
Runtime constant pool
Direct Memory
This series provides Reading Notes for deep understanding of Java Virtual
The memory structure of the Java Virtual machine, as distinct from the Java memory model, which focuses on multithreading But before we do that, we should consider: Why is the memory structure of the JVM divided?I think the main is based on the different data update frequency, access speed requirements, garbage collec
The so-called virtual machine, is a virtual machine. Ta It is a software used to execute a series of virtual computer instructions, in general virtual machines can be divided into system virtu
the structure of the book:
From a macro point of view, the entire Java technology system, Java and JVM development process, modularity, and JDK compilation
Explains the automatic memory management of the JVM, including the partitioning principle of the memory area of the virtual machine and the causes of v
virtual machine class loading mechanism : the virtual machine loads the data of the description class from the class file into the memory, verifies the data, parses and initializes it, and eventually forms a Java type that can be used directly by the
I. OverviewFor developers of C and C + + programs, in memory management, programmers have absolute access to memory, but also primarily to the correct use and cleanup of memory, which requires a high level of programmer.For Java programmers, with the help of the automatic memory management mechanism of the virtual machine, it is no longer necessary to write the p
Deep understanding of Java Virtual Machine-JVM advanced features and best practices
Author: Zhou Zhiming
Post-reading: I don't need to say much about this book. Many people recommend this book. After reading this book, I also feel very good. I strongly recommend this book as a java-related friend. The following are my
I. Program storage format
Unified Program Storage Format: virtual machines on different platforms are uniformly using the program storage format-byte code (bytecode) in all platforms;
The Java Virtual machine does not care about the source of the class file, but only the "class file" binary file format, wh
When a virtual opportunity comes to a new instruction, first check that the parameter of the directive is able to locate the symbolic reference of a class in the constant pool, and that the symbol reference indicates whether the class has been loaded, parsed, and initialized. If you do not have to perform the class's load process.After the class load check, the virtual
: (parameter list) descriptorReferencing Chang constants6. Collection of method tables Attribute table for 7.class, fields, methods, etc.There are 21 predefined, each of which has its own structure.1.Code Properties Attribute_name_index is an index that points to a Constant_utf8_info constant whose constant value is fixed as "Code", which represents the property name of the attributeAttribute_length indicates the length of the property value, so the value of the property is fixed to the en
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.