22 error optimization strategy

This blog is from my new book Java System Performance Optimization (tentative name), and welcome to read my new book. The Essence of Spring Boot 2 4.22.1 final cannot help inlining There is an outdated rule that "final keywords are used extensively in java getter and setter methods to support inlining," such as public final String get ...

Posted by nielst on Sun, 21 Jul 2019 20:30:03 -0700

The Role of modCount in ArrayList

There is a member variable modCount in ArrayList, which inherits from AbstractList. This member variable records the number of modifications to the collection, which add s or remove s its value by 1 each time. What's the use of this? Let's start with the following test code:   package temp; impo ...

Posted by grevathi_02 on Sun, 21 Jul 2019 01:08:22 -0700

Java Collection _HashMap Chapter

1.HashMap structure HashMap is the data structure of key-value mapping, which is composed of array and linked list. Array is the main body of HashMap, and linked list exists mainly to solve hash conflict. If the location of the array does not contain linked list (the next entry of the current entry points to null), then for searching, adding an ...

Posted by Andrew B on Sat, 20 Jul 2019 06:20:30 -0700

Netty-Pipeline Depth Analysis

First of all, we know that in NIO network programming model, IO operations are directly related to channel, such as client request connection, or sending data to the server, the server must obtain this data from the client channel. So what is Channel Pipeline? In fact, this channel Pepiline is a component added by netty to the native channel. A ...

Posted by vladj on Fri, 19 Jul 2019 20:41:59 -0700

java Lock Improvement Read-Write Lock StampedLock Details

1. StampedLock characteristics StampedLock is a new read-write lock for JDK 8. Unlike read-write locks, it is not implemented by AQS.Its state is a long variable, state is designed differently from read-write locks, provides three modes to control read/write acquisition, and implements its own synchronous wait queue internally. 1.1 ...

Posted by Xephon on Thu, 18 Jul 2019 17:25:06 -0700

Detailed java lock queue synchronizer AQS

1. Introduction to AQS AQS (java.util.concurrent.locks.AbstractQueuedSynchronizer) is the basic framework class used to construct locks or other synchronization components (semaphores, events, etc.).The internal implementation of many concurrent tool classes in JDK relies on AQS, such as ReentrantLock, Semaphore, CountDownLatch, an ...

Posted by js_280 on Thu, 18 Jul 2019 17:19:16 -0700

Brief Introduction to Spring Boot Series (1) Helloword and Basic Concepts

Preface Recently, in learning Spring Boot, a series has been opened to record the pits encountered in the learning process. The proverb goes deep and shallow, but my level is still limited. I'm afraid it's hard to do it. So it's called shallow Spring Book. This is the first article in this series to build a simple Hello World See the original t ...

Posted by Sxooter on Mon, 15 Jul 2019 15:51:27 -0700

ant+jmeter+Jenkins Interface Automation Test Practice (1)

    In the project, we need to do the interface automation test, so we go to do the experiment, and do the experiment from building the test environment. In the process of learning, we will certainly encounter different problems, so we spent two days to make a simple interface automation environment, and also encountered som ...

Posted by UnsuitableBadger on Mon, 15 Jul 2019 14:37:03 -0700

Analysis of the Use of JNI in Android framework Layer

Reprint address: http://blog.csdn.net/yuanzeyao/article/details/42418977 JNI technology for many Java Developed friends believe that it is not unfamiliar, that is( Java native interface), the local call interface, has the following two main functions: 1. Calling C/C++ Layer Code in java Layer 2. C/C++ Layer Calls java Layer Code ...

Posted by dannau on Sat, 13 Jul 2019 11:31:24 -0700

Analysis of the Use of JNI in Android framework Layer

Reprint address: http://blog.csdn.net/yuanzeyao/article/details/42418977 JNI technology for many Java Developed friends believe that it is not unfamiliar, that is( Java native interface), the local call interface, has the following two main functions: 1. Calling C/C++ Layer Code in java Layer 2. C/C++ Layer Calls java Layer Code ...

Posted by Sinister747 on Sat, 13 Jul 2019 11:24:26 -0700