We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
at least in interop with java.lang.Thread, as the following code demonstrates:
java.lang.Thread
def run puts 'in def run' # super # invoking super allows the thread blocks to run end latch = java.util.concurrent.CountDownLatch.new(2) t1 = java.lang.Thread.new { puts 'executing t1'; latch.count_down } t2 = java.lang.Thread.new { puts 'executing t2'; latch.count_down } t1.start t2.start success = latch.await(1, java.util.concurrent.TimeUnit::SECONDS) puts success ? 'succeeded' : 'failed' exit (success ? 0 : 1)
I'm seeing this behavior on all JRuby 1.7 versions up to 1.7.18 as well as 1.6.8, using Oracle JDK 1.7.0_72.
The problem doesn't occur with Ruby threads, probably because no implicit Runnable is created.
Runnable
Note that the test-unit gem defines run in such a way that only the first thread block never executes.
test-unit
run
A workaround is to undef run right after requiring test-unit.
undef run
The text was updated successfully, but these errors were encountered:
Same issue on master (7951249)
Sorry, something went wrong.
its no longer the case with JRuby 9K due generate interface methods being bound directly
No branches or pull requests
at least in interop with
java.lang.Thread
, as the following code demonstrates:I'm seeing this behavior on all JRuby 1.7 versions up to 1.7.18 as well as
1.6.8, using Oracle JDK 1.7.0_72.
The problem doesn't occur with Ruby threads, probably because no implicit
Runnable
is created.Note that the
test-unit
gem definesrun
in such a way that only the first thread block never executes.A workaround is to
undef run
right after requiringtest-unit
.The text was updated successfully, but these errors were encountered: