mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-24 02:26:23 +00:00
perf[virtual]: virtual thread task can not set Attachment to ThreadLocal
This commit is contained in:
@@ -28,11 +28,12 @@ public class FastThreadLocalAdapter<T> {
|
||||
}
|
||||
|
||||
public T get() {
|
||||
// return Thread.currentThread().isVirtual() ? supplier.get() : fastThreadLocal.get();
|
||||
// return Thread.currentThread().isVirtual() ? supplier.get() : fastThreadLocal.get();
|
||||
return fastThreadLocal.get();
|
||||
}
|
||||
|
||||
public void set(T value) {
|
||||
// if (Thread.currentThread().isVirtual()) return;
|
||||
fastThreadLocal.set(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user