You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// clear the TTL value only in copied// avoid extra TTL value in copied, when run task.if (!copied.containsKey(threadLocal)) {
iterator.remove();
threadLocal.superRemove();
}
您好,请教一个问题:
在
TransmittableThreadLocal
类中的backupAndSet()
方法中,如下代码:一旦调用
iterator.remove()
本来不属于当前线程的threadlocal
也会被remove
,这样假如此时另外一个线程池中的线程调用了copy()
方法,就会丢失部分数据?不知我哪里理解错误,望批评指正。
期待回复
此Issue为提交错误地址后粘贴过来的
oldratlee/translations#51 (comment)
The text was updated successfully, but these errors were encountered: