1. Run-time data area1.1. Program counterThread-Private, byte-code line number indicator executed by the current thread,The multithreading of a Java Virtual machine is assigned by threads that switch processor execution time in turn1.2. Java Virtual machine stackThread-Private, vir
Concept Virtual machine is an abstract computer, which is realized by simulating various computer functions on the actual computer. Java Virtual machine has its own perfect hardware architecture, such as processor , stack , register , etc., also has the corresponding instruction system. The JVM masks information that is relevant to the operating system platform,
The 1th chapter goes near Java
1.2 Java Technology SystemJava programming language, Java Virtual machine, Java API Class library these three parts are collectively referred to as JDK (Java Development Kit), the JDK is the minimum
What is a Java Virtual Machine?Java Virtual Machine (JVM)A Java virtual machine is an imaginary machine that is simulated by software on an actual computer. The Java
Why Java is gaining recognition
Structured, object-oriented
Write once and run everywhere
Relatively secure memory management and access mechanisms to avoid most memory leaks and pointer out-of-bounds
Run-time compilation is optimized
JDK is the smallest environment to support Java program development
Schedule
1991 Oak1995 Oak Changed to Java1996
2.5. Run-time Data areasthe Java Virtual machine defines various run-time data areas that is used during execution of a P Rogram. Some of these data areas is created on Java Virtual machine start-up and is destroyed only if the Java vir
The memory managed by the Java Virtual Machine includes the following runtime data areas:Program Counter (PCR):1, is a small memory space, can be seen as the current thread executes the byte code of the line number indicator2, for thread-private3, the implementation of the Java method has PCR, when the native method is performed, PCR is empty (Undefined)4, the me
Preface
For Java programmers, with the help of the virtual machine automatic memory management mechanism, it is no longer necessary to write the corresponding Delete/free code for each new operation, it is not easy to have memory leak and memory overflow problem, the virtual machine manages memory. However, it is also the Ja
In-depth understanding of Java Virtual Machine (2) Creation of Hot Spot Java objects, memory layout and access methods
In-Memory Object creation, object structure, and access method.I. Object Creation
At the language level, object creation is just a new Keyword. What is the process in a virtual machine?
(1) determine w
Original Address: http://blog.csdn.net/hanekawa/article/details/51972259 Chapter II Java memory area and memory overflow exception One, run-time data region: 1. Program counter: The line number indicator of the byte code executed by the current thread, the bytecode interpreter works by changing the value of this counter to select the byte code instruction that the next hop needs to execute. If you are performing the native method, the value of this co
The creation of objects in memory, the structure of objects, and how they are accessed.I. Creation of objectsAt the language level, the creation of objects is nothing more than a new keyword, so what is the process in a virtual machine? (a) determine whether the class is loaded . Virtual opportunity to a new command, first check whether the parameters of this directive can be located in the constant pool of
them.1. Generics and type Erase
Generics are a new type of JDK 1.5, the essence of which is the application of the parameterized type (parametersized type), which means that the data type being manipulated is specified as a parameter. This parameter can be used in the creation of classes, interfaces, and methods, respectively, as generic classes, generic interfaces, and generic methods.
The generic idea began to sprout as early as the template of the C + + language. In the absence of a ge
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;
OverviewThe JVM is the essence of the Java language, because its Java language implements cross-platform operation, as well as automatic memory management mechanism, and so on, this article will conceptually introduce the various areas of JVM memory, explain the role of the region.JVM Runtime Data area modelJava virtual machines in the course of executing a
class loader for two types of classes-java the loader that comes with the virtual machineRoot ClassLoader (Bootstrap): Written in C + +, Programer can not abtain the This class.Extension class loader (Extension): Using Java code to implementSystem ClassLoader: Using Java code to implement-user-defined class loaderJava.
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 CS and IP register to represent the instruct
Java is a type-safe language that has four types of security mechanisms known as the security sandbox mechanism to guarantee the security of the language, and these four types of security sandboxes are:
.class File verifier
Security manager and Java API
This blog mainly introduces the "built-in Java
The Java Virtual machine divides the memory it manages into several different data regions during the execution of a Java program. These areas have respective uses, as well as creation and destruction times, and some regions exist as virtual machine processes start, and some are built and destroyed depending on the sta
In some commercial virtual machines, Java programs are initially interpreted by the interpreter (interpreter), and when a virtual machine discovers that a method or block of code is running particularly frequently, the code is identified as a " hotspot code ." To improve the efficiency of hot spot code execution, the instant compiler (Just in time Compiler) compi
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.