JDK-8001223 : JSR 292: C1 fails to call virtual method (JRUBY-6920)
  • Type: Backport
  • Backport of: JDK-8000821
  • Component: hotspot
  • Sub-Component: compiler
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-10-22
  • Updated: 2013-07-18
  • Resolved: 2012-10-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
hs24 masterFixed
Description
Charlie Nutter found an issue in C1 and filed a JRuby bug for it:

http://jira.codehaus.org/browse/JRUBY-6920

The reduced test case is:

10000.times do
  begin
    ENV[1]
    raise
  rescue TypeError
  end
end

$ jruby -J-showversion -J-d32 -J-client -J-Xbatch JRUBY-6920.rb 
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b60)
Java HotSpot(TM) Client VM (build 25.0-b04, mixed mode)

RuntimeError: No current exception
  (root) at JRUBY-6920.rb:4
   times at org/jruby/RubyFixnum.java:273
  (root) at JRUBY-6920.rb:1