Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.7
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
Our 1.9 logic seems to be searching through filesystem to try and determine the canonical path we are storing our loads under in features. It appears MRI is not doing this. This little program (make an 'a' and 'b' directory both containing a 'test.rb' with different contents) demonstrates us double loading where MRI will not (tried against MRI 1.9.2 and 1.9.3):
$LOAD_PATH << 'a' require 'test' $LOAD_PATH[0] = 'b' require 'test'
Our resolution process may be a significant load cost for things like rails which has a lot of the same requires sprinkled around their codebase.
Issue Links
- is duplicated by
-
JRUBY-6797
LoadService doing too much work for duplicate requires in 1.9 mode
-