JDK-6551887 : Typo in 6531175 changes in generate_generic_copy() stub
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: x86
  • Submitted: 2007-04-30
  • Updated: 2010-04-03
  • Resolved: 2007-05-24
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 JDK 7 Other
6u4Fixed 7Fixed hs10Fixed
Description
In generate_generic_copy() stub I incorrectly replaced dec()
instruction with neg().

For example, in stubGenerator_i486.cpp:

     __ xorl(eax, eax);
-    __ decl(eax); // return -1
+    __ negl(eax); // return -1

It should be notl() or decrement().

Comments
SUGGESTED FIX Webrev: http://prt-web.sfbay.sun.com/net/prt-archiver.sfbay/data/archived_workspaces/main/c2_baseline/2007/20070501101928.kvn.6551887/workspace/webrevs/webrev-2007.05.01/index.html
01-05-2007

SUGGESTED FIX Use not() instruction instead of neg().
30-04-2007

EVALUATION See Description.
30-04-2007