From ae6730572caad36239a3c7f99777c9023f03292a Mon Sep 17 00:00:00 2001 From: Mengyang Li <56702218+dreamlike-ocean@users.noreply.github.com> Date: Wed, 13 May 2026 23:35:32 +0800 Subject: [PATCH] Fix HybridJacksonPool stack node publication race (#6112) --- .../main/java/io/vertx/core/json/jackson/HybridJacksonPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertx-core/src/main/java/io/vertx/core/json/jackson/HybridJacksonPool.java b/vertx-core/src/main/java/io/vertx/core/json/jackson/HybridJacksonPool.java index f61fd441d83..99b6d9d1b73 100644 --- a/vertx-core/src/main/java/io/vertx/core/json/jackson/HybridJacksonPool.java +++ b/vertx-core/src/main/java/io/vertx/core/json/jackson/HybridJacksonPool.java @@ -142,8 +142,8 @@ public void releasePooled(BufferRecycler recycler) { Node next = topStacks.get(vThreadBufferRecycler.slot); while (true) { newHead.level = next == null ? 1 : next.level + 1; + newHead.next = next; if (topStacks.compareAndSet(vThreadBufferRecycler.slot, next, newHead)) { - newHead.next = next; return; } else { next = topStacks.get(vThreadBufferRecycler.slot);