JDK-7087728 : crash in C2 code if ScavengeRootsInCode=2 when "static final" MethodHandle constants are in use
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2011-09-07
  • Updated: 2011-09-09
  • Resolved: 2011-09-09
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
hs24Resolved
Related Reports
Duplicate :  
Description
The flag setting ScavengeRootsInCode=2 causes the JIT to inline more constants.  This is generally a good thing for performance, but can cause bugs in compiled code.

In the attached code, there is a crash when the second benchmark runs.  (The first benchmark completes with doubled speed, compared with the default setting of ScavengeRootsInCode=1.)

By fixing this bug and similar blocking bugs, we should be able to turn ScavengeRootsInCode=2 by default.