Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.7
-
Fix Version/s: JRuby 1.7.4
-
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
-
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | JRuby 1.7.0.pre2 [ 18527 ] | |
| Fix Version/s | JRuby 1.7.0.pre1 [ 17049 ] |
Charles Oliver Nutter
made changes -
| Link |
This issue is duplicated by |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.7.0 [ 18624 ] | |
| Fix Version/s | JRuby 1.7.0.pre2 [ 18527 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.7.1 [ 18842 ] | |
| Fix Version/s | JRuby 1.7.0 [ 18624 ] |
Thomas E Enebo
made changes -
| Fix Version/s | JRuby 1.7.2 [ 19008 ] | |
| Fix Version/s | JRuby 1.7.1 [ 18842 ] |
Thomas E Enebo
made changes -
| Fix Version/s | JRuby 1.7.3 [ 19009 ] | |
| Fix Version/s | JRuby 1.7.2 [ 19008 ] |
Thomas E Enebo
made changes -
| Fix Version/s | JRuby 1.7.4 [ 19106 ] | |
| Fix Version/s | JRuby 1.7.3 [ 19009 ] |