006. Thread-safe JAVA lock correlation

1. The concept of locks in JAVA Spin Lock: When a thread acquires a lock, if the lock has already been acquired by another thread, the thread will wait in a loop and constantly determine if the lock can be acquired successfully until it is acquired. Optimistic lock: If there is no conflict, read the latest data when modifying the data and ...

Posted by JakesSA on Sun, 05 Apr 2020 02:55:32 +0200

Runtime stack frame structure local variable table explore slot reuse

Local variable table As we know, the start of a method call is equivalent to the stack frame's stack in and out of the Java virtual machine stack. Stack frame includes local variable table, operand stack, dynamic link, return address, etc. Figure below: each thread corresponds to a Java virtual machine stack. There are many stack frames in t ...

Posted by briansol on Sun, 05 Apr 2020 00:58:38 +0200

Talk about the JVM receiver plugin of skywalking

order This paper focuses on the JVM receiver plugin of skywalking JVMModuleProvider skywalking-6.6.0/oap-server/server-receiver-plugin/skywalking-jvm-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/jvm/provider/JVMModuleProvider.java public class JVMModuleProvider extends ModuleProvider { @Override public String nam ...

Posted by altergothen on Sat, 21 Mar 2020 15:34:56 +0100

Using OpenJ9 JVM for Quarkus applications

In this article, see how to use the OpenJ9 JVM with Quarkus applications and see the memory usage results. Talk about those things in detail According to the definition on the home page, Quarkus is "Kubernetes native Java stack customized for OpenJDK HotSpot and grailvm". Since I'm a big fan of OpenJ9, I quickly measured the memory us ...

Posted by sgaron on Tue, 17 Mar 2020 05:44:15 +0100

java agent project based on IDEA + maven

200316 idea + Maven zero infrastructure java agent project Java Agent(java probe) has existed since jdk1.5, but for most business development javaer s, it is still quite magical and strange; although in actual business development, agent development is rarely involved, but every java development has been used, such as using idea to write a He ...

Posted by peuge on Mon, 16 Mar 2020 05:58:34 +0100

Source code analysis of hotspot object local method

Catalog 1, Object.c 2, JVM? Clone 3, Shallow copy and deep copy 4, ObjectSynchronizer 1,FastHashCode / identity_hash_value_for 2,get_next_hash 3,inflate / inflate_helper 4,omAlloc / omRelease / omFlush 5,InduceScavenge / deflate_idle_monitors / deflate_monitor / walk_monitor_list 6,wait / n ...

Posted by scheinarts on Sun, 15 Mar 2020 04:22:25 +0100

Introduction to Java - Object Oriented - 03. Polymorphism

Original address: http://www.work100.net/training/java-polymorphism.htmlMore Tutorials: Beam Cloud - Free Course polymorphic Sequence Number Intratext chapters video 1 Summary - 2 virtual function - 3 Implementation of polymorphism - See the navigation section above for reading 1. Overview Polymorphism is the ability of the same be ...

Posted by moonoo1974 on Sat, 07 Mar 2020 06:05:51 +0100

Java learning notes -- Java language foundation (classloader, reflection)

1, Classloader Loading overview of class 1.1 Class loading overview When a program wants to use a class, if the class has not yet been loaded into memory, The system will initialize this class in three steps: loading, connecting and initializing. Load It means to read the class file into memor ...

Posted by emcb_php on Wed, 04 Mar 2020 06:16:36 +0100

Details of important methods in Thread and Object classes

Details of important methods in Thread and Object classes Overview of methods wait,notify,notifyAll Function and usage: blocking phase, wake-up phase, interrupt encountered It will not wake up until one of the following four conditions occurs Another thread calls the notify() method of this obje ...

Posted by spider661 on Tue, 03 Mar 2020 03:21:37 +0100

OOM and Garbage Collector

1. How many OOM s are common? ①java.lang.StackOverflowError②java.lang.OutOfMemoryError:Java heap space③java.lang.OutOfMemoryError:GC overhead limit exceeded④java.lang.OutOfMemoryError:Direct buffer memory⑤java.lang.OutOfMemoryError:unable to create new native thread⑥java.lang.OutOfMemoryError:Metasp ...

Posted by gregchet on Wed, 26 Feb 2020 03:34:46 +0100