Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: None
-
Environment:running 1.6.7.2 on ubuntu linux
-
Number of attachments :
Description
When running a rails app in tomcat we see threads waiting on the synchronize in RubyModule::Autoload#getConstant. Here is a stacktrace of the thread where we are seeing the problem:
https://gist.github.com/2884586
Here is the defined? call in haml that is triggering the constant lookup:
https://github.com/haml/haml/blob/master/lib/haml/util.rb#L82
Haml has earlier issues interacting with autoload:
https://github.com/haml/haml/commit/7ddd9f3581d88f784850ab0bb036bc69409ab07a
This was fixed in 1.7 by this commit:
https://github.com/jruby/jruby/commit/e5420b235ab4a1b0e4c0ff0bca1a1265a6a709c4