We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fcd7b4 commit 52b7e89Copy full SHA for 52b7e89
src/main/java/io/vertx/core/json/jackson/HybridJacksonPool.java
@@ -58,6 +58,14 @@ public BufferRecycler acquirePooled() {
58
nativePool.acquirePooled();
59
}
60
61
+ @Override
62
+ public BufferRecycler acquireAndLinkPooled() {
63
+ // when using the ThreadLocal based pool it is not necessary to register the BufferRecycler on the pool
64
+ return isVirtual.test(Thread.currentThread()) ?
65
+ VirtualPoolHolder.virtualPool.acquireAndLinkPooled() :
66
+ nativePool.acquirePooled();
67
+ }
68
+
69
@Override
70
public void releasePooled(BufferRecycler bufferRecycler) {
71
if (bufferRecycler instanceof VThreadBufferRecycler) {
0 commit comments