
Featured · Runtime
What the JIT Actually Does to Your Hot Loop
Tiered compilation, on-stack replacement and inlining decide how your loop really runs. Here is how to read those decisions instead of guessing.
Marcus Venn
Deep technical writing about the JVM and its ecosystem.

Featured · Runtime
Tiered compilation, on-stack replacement and inlining decide how your loop really runs. Here is how to read those decisions instead of guessing.

Memory
The same image under two limits gave 1.94 GB of heap and G1, or 128 MB and SerialGC. A container limit is an input to ergonomics, not a ceiling applied afterwards.

Concurrency
The release store measured 28 per cent more expensive than the volatile store it is weaker than. Access modes are a trade, and the deadline for learning them is fixed.

Concurrency
Fifteen billion observations on AArch64 produced 191,614 the model permits and x86 forbids. One in 79,000 - too rare to test for, common enough to ship.

Concurrency
Eight threads, eight private slots, nothing shared in the program's terms - and 2.30 times the throughput once they stopped sharing a cache line.

Diagnostics
Ten calls with one returned measured 2.877 ns. The same ten, each consumed, measured 30.721. Nine were never executed, and nothing in the output said so.

Diagnostics
The histogram's largest entry was 525 MB of byte arrays. The class responsible was seventh, at 256 KB. Size and ownership are different measurements.