My Struct Key Was Boxed Two Million Times
A small struct with three int fields silently produced boxing during Dictionary lookups. The cause of the problem and a two-line fix.
~/hasan/posts/
A small struct with three int fields silently produced boxing during Dictionary lookups. The cause of the problem and a two-line fix.
With JDK 27, G1 becomes the default garbage collector in all environments. In small containers this change happens silently. Here is what to check before you upgrade.