-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
loop
allocates needless memory
#2785
Comments
Both JRuby 1.7 and 9k do have some allocation for every block invocation, usually to box arguments into an array used by our block argument logic to assign local variables. However, this particular case seems like it shouldn't need to allocate anything; the block is created once, and it receives no arguments. |
Hmm...I am confused. I do not see this allocation happening when I run your script with JRuby 1.7.19 and 9k (master):
We need from you:
|
You may also be running this in the interpreter. Do you have the --dev flag or -X-C flag set for your JRuby runs? |
@ecin Any update? |
Closing because I don't believe this is really an issue and the reporter seems to have gone away. |
Version:
jruby 1.7.19 (1.9.3p551) 2015-01-29 20786bd on Java HotSpot(TM) 64-Bit Server VM 1.7.0_72-b14 +jit [darwin-x86_64]
Also reproducible on Java 8 (
1.8.0 b25-b17
).Using
loop
seems to allocate needless memory when compared towhile true
:Thread.new { while true; end }
does not cause the same unexpected memory allocation.The text was updated successfully, but these errors were encountered: