Tagged articles
8 articles
Page 1 of 1
Java Backend Technology
Java Backend Technology
Jun 12, 2025 · Backend Development

Why Debugging a Simple ConcurrentLinkedQueue Can Crash Your Java Program

A seemingly trivial Java program that uses ConcurrentLinkedQueue runs fine normally, but throws a NullPointerException when debugged in IntelliJ IDEA because the IDE silently invokes toString, which mutates internal state, revealing hidden pitfalls of debugging and IDE configurations.

ConcurrentLinkedQueueDebuggingIntelliJ IDEA
0 likes · 10 min read
Why Debugging a Simple ConcurrentLinkedQueue Can Crash Your Java Program
Sanyou's Java Diary
Sanyou's Java Diary
Apr 24, 2025 · Fundamentals

Master Java’s Concurrent Containers: Deep Dive into ConcurrentHashMap and Queues

This article provides an in‑depth exploration of Java’s concurrent collection classes, covering the design and implementation of ConcurrentHashMap, ConcurrentLinkedQueue, and the seven blocking queue variants, complete with code analysis, performance considerations, and practical usage scenarios for high‑throughput multithreaded applications.

BlockingQueueConcurrentHashMapConcurrentLinkedQueue
0 likes · 50 min read
Master Java’s Concurrent Containers: Deep Dive into ConcurrentHashMap and Queues
IT Services Circle
IT Services Circle
Mar 18, 2025 · Backend Development

Why Debugging a Simple ConcurrentLinkedQueue Triggers a NullPointerException in IntelliJ IDEA

The article recounts a puzzling case where a minimal Java program using ConcurrentLinkedQueue runs fine normally but throws a NullPointerException when debugged in IntelliJ IDEA, explains the underlying cause involving the IDE's automatic toString invocation, and shows how to disable the offending settings.

ConcurrentLinkedQueueIntelliJ IDEAJava
0 likes · 9 min read
Why Debugging a Simple ConcurrentLinkedQueue Triggers a NullPointerException in IntelliJ IDEA
Java Backend Technology
Java Backend Technology
Aug 9, 2020 · Backend Development

How a JDK Bug Makes ConcurrentLinkedQueue Leak Memory

An in‑depth investigation reveals how a long‑standing JDK bug in ConcurrentLinkedQueue causes memory leaks and performance degradation in Jetty’s QueuedThreadPool, illustrated with code demos, visual monitoring tools, and the eventual fix introduced in later JDK releases.

ConcurrentLinkedQueueJDKJava
0 likes · 14 min read
How a JDK Bug Makes ConcurrentLinkedQueue Leak Memory
Sohu Tech Products
Sohu Tech Products
Aug 5, 2020 · Backend Development

Debugging and Fixing the ConcurrentLinkedQueue Memory Leak Bug in JDK8

This article explains the root cause of a memory‑leak bug in JDK8's ConcurrentLinkedQueue, demonstrates how to reproduce and visualize the issue with custom CLQ implementations, analyzes the removal algorithm, and shares practical debugging tips including a notorious IDEA debug pitfall and its resolution.

ConcurrentLinkedQueueDebuggingJDK8
0 likes · 14 min read
Debugging and Fixing the ConcurrentLinkedQueue Memory Leak Bug in JDK8
Programmer DD
Programmer DD
Jul 18, 2018 · Backend Development

How Does Java’s ConcurrentLinkedQueue Achieve Lock‑Free Thread Safety?

This article explains the lock‑free design of Java's ConcurrentLinkedQueue, detailing its core invariants, the internal Node structure, and step‑by‑step analyses of the offer and poll methods with code snippets and visual illustrations to demystify its CAS‑based concurrency mechanisms.

CASConcurrentLinkedQueueJava
0 likes · 13 min read
How Does Java’s ConcurrentLinkedQueue Achieve Lock‑Free Thread Safety?