JDK-6433579 : save_live_registers shouldn't finit FPU after saving FPU registers
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2006-06-02
  • Updated: 2010-04-02
  • Resolved: 2006-06-14
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.
JDK 6
6 b88Fixed
Related Reports
Relates :  
Description
The resolve stubs save off the FPU state before transitioning out the runtime and there's a line of code which uses finit to reset the FPU before transitioning out.  This is ok if the VM can never execute an Java code inside the runtime call.  For C2 this is true but C1 can use execute this code at an unresolved call site which can cause initialization.  When this happens the Java code executed with the wrong FPU control word and bad things can happen.  This is reproducible by simply using java -client -Xcomp -XX:+VerifyFPU foo on a fastdebug build.

Comments
SUGGESTED FIX http://analemma.sfbay.sun.com/net/prt-archiver.sfbay/data/archived_workspaces/main/c2_baseline/2006/20060602185415.never.sux/workspace/webrevs/webrev-2006.06.02/index.html
05-06-2006

EVALUATION The finit should just be removed.
02-06-2006