When analyzing thread-safety issues in concurrent programming, you often need a starting point. There are two cores: the JMM abstract memory model and the happens-before...
The G1 Garbage collector is designed to "collect as much Garbage as possible First," with the goal of minimizing the pauses associated with processing very...
I've read blogs and books about the G1 collector collection process, and almost nine times out of ten they say something different. To determine which...
Most programmers have an idea of "garbage collection" from the Java language, but the concept was invented around 1959 by John McCarthy, an American computer...
[TOC] 11. Overview and Algorithm of Garbage Collection What is garbage? Garbage collection is not a companion product of the Java language. Back in 1960,...
The process of loading a Class file into memory, validating, converting, parsing, initializing, and finally forming a directly usable Java type is called the Class...
LockSupport is a new JUC utility class in JSR 166. The LockSupport class is primarily used to create locks and other synchronization classes for thread...
Common JVM configuration parameters include: Trace Trace parameter, heap allocation parameter, stack allocation parameter. The Trace parameter is used to Trace and monitor the JVM,...
"Debug it." "Online machine, no Debug port open." "That code didn't print a log." "Change the code, log it, and release it again." "Suspected thread...
When the Java virtual machine reaches a bytecode new instruction, it first checks to see if the instruction's arguments locate a symbolic reference to a...
In a real world scenario, if a synchronized block (or method) does not have multiple threads competing, and the same thread always re-enters to acquire...
A: one of 006 - the JVM - Sweep phase algorithm: Mark Mark Sweep - https://juejin.cn/post/6908617627208253448 - clear algorithm. Background In order to address the...
Understand the life cycle of a class from loading, connecting, initialization to unloading. Understand the parental delegation model understand and master the actual class loading...
Class loaders are a prerequisite for the JVM to implement a classloading mechanism. ClassLoader is the core component of Java. All classes are loaded by...
What are race conditions? Let me give you an example. Introduction to the JSWDL development kit. JAXP, JAXM interpretation. SOAP, UDDI,WSDL interpretation. What are the...
By decomcompiling the generated bytecode files, we can get an in-depth understanding of the working mechanism of Java code. However, analyzing the class file structure...
The preparation phase is the phase where you formally allocate memory and set initial values for variables defined in a class (that is, static variables,...
1. Interaction between stack, heap, and method area from the perspective of whether threads are shared or not: Interaction: 2. Methods the understanding official document...