Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentModificationException from ThreadGroup.list #2446

kares opened this Issue Jan 9, 2015 · 0 comments


None yet
2 participants
Copy link

kares commented Jan 9, 2015

while the rubyThreadList field is a fully synchronized collection, iterator might still throw a CME

there's probably a typo the line above as it synchronizes on a local variable :

 RubyArray ary = RubyArray.newArray(getRuntime());
  synchronized (ary) { `nextEntry': java.util.ConcurrentModificationException
    from `next'
    from `list'
    from RubyThreadGroup$INVOKER$i$0$0$list.gen:-1:in `call'
    from `call'
    from `cacheAndCall'
    from `call'
    from `interpret'
    from `interpret'
    from `interpret'
    from `interpret'
    from `evalBlockBody'
    from `yield'
    from `yield'
    from `synchronize'
    from Mutex$INVOKER$i$0$0$synchronize.gen:-1:in `call'

only seen this under high actor/fiber usage (Celluloid) ... reproduced on 1.7.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.