I've been reading web articles about how Compare and Swap (CAS) works under the hood. Since AtomicInteger, AtomicLong and other atomic variables all u ...
I've been reading web articles about how Compare and Swap (CAS) works under the hood. Since AtomicInteger, AtomicLong and other atomic variables all u ...
In a typical detailed zgc log, what's the meaning of these numbers in this mmu line? [gc,mmu ] GC(18939) MMU: 2ms/0.0%, 5ms/0.0%, 10ms/0.0%, 20ms/0.0 ...
Why does java-11 version command shows java 18.x as output - First line of output is fine as expected --> java 11.0.17 2022-10-18 LTS Why are t ...
I have a hard time understanding how compressed pointers works in Java 19, help is appreciated. In Java 11 the reference size is 4 for heaps below 32 ...
The System and Unsafe both offer some overlapped functionality ( For example, System.arraycopy v.s _UNSAFE.copyMemory). In terms of implementations, ...
I'm trying to run my own classes in JITWatch, however, I can only seem to get the prepackaged .java files in the sandbox/sources folder to work. Every ...
I'm learning the mark-compaction algorithm from the book "The Garbage Collection Handbook: The Art of Automatic Memory Management". For the Lisp 2 al ...
Here is a version of implementation of function Atomic::cmpxchg used for CAS: jbyte Atomic::cmpxchg(jbyte exchange_value, volatile jbyte* dest, jbyte ...
openjdk 11.0.14.1 2022-02-08 Consider the following simple Java program. Here int is 4 byte in size so allocating int[Integer.MAX_VALUE / 2] requi ...
I have the following function: The function is supposed to get a class name (as String), load it and, if a constructor which matches the Object... ...
Question How to get a rolling recording into disk, with a maximum age? Context When something goes bad in my server, I want to be able to dump the ...
Question Why is the use of fBuffer1 in the attached code example (SELECT_QUICK = true) double as fast as the other variant when fBuffer2 is resized o ...
In one of my computers, there is Jre1.8.0_45 and in another machine there is OpenJDK. I want to set JVM flag Dlog4j2.formatMsgNoLookups=true but I do ...
As we know, when a Bias Lock upgrade to a Lightweight Lock, JVM will stop the world. Does JVM stop the world, when Lightweight Lock upgrade to Heavyw ...
We run a complex clustered application with Java 11.0.11 and -XX:ReservedCodeCacheSize=375m with the same load profile attached 24/7 without any resta ...
I know that compiled code is stored in CodeBuffer in hotspot and there are three sections: insts, consts, stubs, each section has relocs and I wonder ...
I read this post "https://malloc.se/blog/zgc-jdk15", and last index is about Class Data Sharing. In this index, This feature(means CDS) only work ...
I am trying to build a very basic Java Hotspot Serviceability agent to dump the bytecode of one specific loaded method. This is the code of my agent : ...
Suppose I have a java.util.Collection that I want to loop over. Normally I'd do this: But suppose that this is in some core utility method that is ...
I have my own test class that is supposed to do timing without JVM deleting anything. Some example test times of 100,000,000 reps comparing the native ...