qinzhikui commented on issue #1840:
URL: https://github.com/apache/fury/issues/1840#issuecomment-2418427283

   `private final WeakHashMap<LoaderBinding, Object> allFury = new 
WeakHashMap();
   
       public ThreadLocalFury(Function<ClassLoader, Fury> furyFactory) {
           this.bindingThreadLocal = ThreadLocal.withInitial(() -> {
               LoaderBinding binding = new LoaderBinding(furyFactory);
               binding.setBindingCallback(this.factoryCallback);
               
binding.setClassLoader(Thread.currentThread().getContextClassLoader());
               this.allFury.put(binding, (Object)null);
               return binding;
           });
           Fury fury = ((LoaderBinding)this.bindingThreadLocal.get()).get();
           
ClassResolver._addGraalvmClassRegistry(fury.getConfig().getConfigHash(), 
fury.getClassResolver());
       }`
   It seems that allFury. put() has caused a concurrency conflict


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to