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,
Java Virtual Machine Definition
Java virtual machines are called "virtual" because they are just abstract computers defined by a specification.
What is a Java
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
Deep understanding of Java Virtual Machine-Chapter 6 Java Memory Model and thread, and Chapter 4
Chapter 2 Java Memory Model and thread
Java Memory Model
Master memory and working memory:
The
JIT compiler , English writing just-in-time Compiler, Chinese means instant compilerThe reason the class field does not need to be initialized:After the memory allocation is complete, the virtual machine needs to initialize the allocated memory space to a value of 0 (excluding the object header), and if Tlab is used, the work process can also be advanced to Tlab allocation. This step ensures that an instanc
1.java of Memory AreaThread sharing(1) Heap: The largest chunk of memory managed by a Java virtual machine for holding object instances, all object instances and arrays allocated on the heapBased on the garbage collector is divided into the new generation and the old age, and can be further divided into Eden,survivor,
"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
Objective
This article is mainly to introduce the Java Virtual machine fault handling tools, the article mentioned that these tools include:
Name
Main role
JPs
JVM process Status Tool, which displays all hotspot virtual machine processes wit
Java Virtual Machine (1) runtime data area
1. There is a "high wall" between Java and C ++ that is surrounded by the dynamic memory allocation and garbage collection technology. The people inside the wall want to go in, but they want to come up.
2. Division of runtime data regions
During
IntroductionWe know that Java code is compiled with bytecode, how does a virtual machine load these class bytecode files? How is the method call made after loading? A class of file structuresThe cornerstone of IndependenceJava has a slogan called Write once, running around. The implementation of this slogan is a virtual
1. in the following cases, the Java Virtual machine will end the life cycle:1). Implemented the System.exit () method2). The program is finished executing properly3). The program encountered an exception or error during execution and terminated abnormally4). The Java Virtual
上周末搬家后,家里的宽带一直没弄好,跟电信客服反映了N遍了终于约了个师傅明天早上来迁移宽带,可以结束一个多星期没网的痛苦日子了。这段时间也是各种忙,都一个星期没更新博客了,再不写之前那种状态和激情都要慢慢褪去了,总觉得心里慌的一逼,这怎么行呢?!趁明天周末,在公司电脑上记录下这周的一些学习内容。近期在看一本很经典的java书籍:《深入理解java虚拟机 第二版》,几年前也翻过,但那时候功力不够,不太能看懂就没看了。现在回过头来看,发现确实写的很好,很多知识点都能理解了,而且讲的也很有深度,收获颇多。后期计划按照这本书的内容写出一系列博客,来深入学习和复习下java虚拟机相关的知识。Fu Yun Source code downloadAddress one: "hubawl.com" Fox PA Source Foru
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
open-source worker now, this series may encourage you to move in this direction.
JVM performance and the challenge of "compile, run everywhere"
I have new news for those who stubbornly believe that the Java platform is inherently slow. When Java was just being used as an enterprise application, the JVM was criticized for the Java performance problem more than
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
Reply:A Java Virtual machine is a virtual machine process that can execute Java bytecode. Java source files are compiled by the Javac compiler to generate bytecode files that can be exe
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
1. Compilation sequence:Compiler Virtual MachineJava source file *. Java -------> bytecode *. Class ------> Class Loader ---> execution engine
A. Class file can only contain one class or interface. Therefore, the number of classes defined in the. Java file and the number of. class files generated during compilation (internal classes are not counted ).
2.
Recently, we have compiled the notes of learning the JVM, which will be uploaded in succession. Java history1991.4Dr. James Gosling launches green project to develop Oak1995.5.23Oak renamed Java. Proposed write Once,run anywhere1996.1.23 JDK 1.0published. Represents the technology: Java Virtual
This blog post focuses on the components of the JVM (Java Virtual machine) and how they work within them. It is important to note that although most of the times we use the JVM provided by Sun (now acquired by Oracle), the JVM itself is a specification, so there are many implementations, in addition to hotspots, such as Oracle's JRockit, IBM's J9 are also very we
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.