Alibabacloud.com offers a wide variety of articles about java virtual machine launcher, easily find your java virtual machine launcher information here online.
Original post address: http://www.roboticfan.com/blog/user_2005/104/20101218232353.shtml
When the JVM (Java Virtual Machine) is started, an initial class loader hierarchy consisting of three class loaders is formed:
Bootstrap classloader|Extension classloader|System classloader
1. bootstrap classloader-Bootstrap (also called the original) Class Loader. This load
I. Class File Content
Note: Each Java class can only have one class file or interface. In the following discussion, U4 represents four bytes, while U2 represents two bytes.
The content of the class file is as follows:
Magic (magic number)-U4 (U4 indicates 4 bytes)
0 xcafebabe, which is used to easily identify Java class files and non-Java class files;
start from scratch and write your own Java Virtual machine
Preface
It's hard to write a Java virtual machine yourself. Hard. It's hard. It's not difficult.The answer is different, because the
The following is a summary of the individual's understanding of the deep Java virtual machine Basic concepts:
A Java Virtual machine can refer to an abstract specification, or to a specific implementation, or to a
8.1 dynamic connection and resolution
The class file stores all its reference symbols in a constant pool. Each class file has a constant pool, and each class or interface loaded by the Java Virtual Machine has an internal version of the constant pool, called the runtime constant pool. The runtime constant pool is an implementation-specific data structure that is
Program Counter Program counter What do you do?With it, the bytecode interpreter can know which of the next bytecode instructions to execute.This program counter is required either to remove an instruction or branch, loop, jump, interrupt, or thread recovery.Where does the program counter exist?The virtual machine differs from the hardware, and the program counter of the composition principle is stored with
2.2 Run-time areaA Java Virtual machine is divided into several different data regions,1. Program counter, the bytecode interpreter is working by changing the value of the counter to take a scare jump. The bytecode command to execute
Understanding the String.intern () methodFunction: If a string constant in the pool contains a string equal to this
First, loadThe load (Loading) stage is a phase of the class Loading process. During the load phase, the virtual machine needs to complete the following three things:A. Get a binary byte stream that defines this class by using the full restricted name of a class.B. Convert the static storage structure represented by this byte stream into the run-in data structure of the method area.C. Generate a Java.lang.Cl
"Deep Java Virtual machine" bis: Class file structurePlatform agnosticJava is a platform-independent language, thanks to the Java source code-compiled file that stores bytecode, the class file, and the implementation of the Java Virtual
deep understanding of Java Virtual Machine JVM advanced features and Best Practices (second Edition) core notes JAVA Environment: Java Virtual machine Advanced Features:One:
ClassLoader to preload a class when it is expected to be used, if it encounters a. Class in the pre-loaded process.If the file is missing or there is an error, the ClassLoader must report an error when the program first actively uses the class.After the class is loaded, it enters the connection phase, which merges the binary data of the classes that have been read into the memory into the runtime environment of the virtual machine.The contents of the
Preface If someone asks you what the memory area of Java is divided into, many people might say: heap, stack, method area .... I personally understand that Java can relate to the "memory Area" from the developer's point of view in two ways: First, the Java Virtual Runtime data area, and the second,
Sometimes when you install Eclipse, the startup encounters a problem like "failed to create the Java Virtual machine".(a) Baidu a bit found the main solution is as follows:Steps to resolve:1. Open the configuration file Eclipse.ini of the Eclipse decompression directory;2. Find--launcher. Xxmaxpermsize256MAnd instead--
Each Java Virtual machine has a classloader subsystem that mounts a type according to a fully qualified name, and each Java Virtual machine has an execution engine that executes the instructions that are contained in the methods o
Platform agnosticJava is a platform-independent language, thanks to the Java source code-compiled file that stores bytecode, the class file, and the implementation of the Java Virtual machine. Not only the Java compiler can compile Java
Java Data type: 1) Original type: Primitive Types (original value) Numeric type (Numeric Types) integral type (Integral Types), floating-point type (floating-point Types) Boolean type (Boolean Types) returnaddress type: An opcode (Opcode) that represents a bytecode instruction. Of all the primitive types supported by the virtual machine, only the returnaddress
It is well known that Java programs run on the Java Virtual Machine (JVM), so how is the memory allocated when the JVM is running? Each part of the program is stored in the memory of which part, and how to access, below, let me explain the Java
Deep understanding of Java Virtual Machine (5) --- bytecode execution engine, deep understanding of bytecode
What is bytecode?
Baidu's explanation is as follows:
Byte-code is a binary file consisting of an execution program and a sequence of op code/data pairs. Bytecode is an intermediate code that is more abstract than a mac
Java Virtual Machine-garbage collection algorithm, java garbage collection
This article mainly introduces the garbage collection algorithm of Java virtual machine.I. Overview
Ii. Mark-clear Algorithm
Mark-Sweep. Like the name,
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.