Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6RC1
-
Fix Version/s: JRuby 1.6RC2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
For example, the output of `ruby --profile.graph -rubygems -e'require "bundler"'`
https://gist.github.com/779066
Note the entries for 'Date.new!' and 'Gem.searcher', and the definition of Gem.searcher:
def self.searcher
MUTEX.synchronize do
@searcher ||= Gem::GemPathSearcher.new
end
end
It seems clear that where 'Date.new!' appears in the profile output, it should actually be 'Gem::GemPathSearcher.new'.
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Thomas E Enebo [ enebo ] | Charles Oliver Nutter [ headius ] |
Charles Oliver Nutter
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Charles Oliver Nutter
made changes -
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Fix Version/s | JRuby 1.6RC2 [ 17075 ] | |
| Resolution | Fixed [ 1 ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
I think the problem here is that the the new! method for Date and the new method for GemPathSearcher are resolving to the same actual method object in-memory in JRuby. As a result, we go with the first one defined, and report all future results with that method's name.
Looking into it.