United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6551887 Typo in 6531175 changes in generate_generic_copy() stub
JDK-6551887 : Typo in 6531175 changes in generate_generic_copy() stub

Details
Type:
Bug
Submit Date:
2007-04-30
Status:
Resolved
Updated Date:
2010-04-03
Project Name:
JDK
Resolved Date:
2007-05-24
Component:
hotspot
OS:
solaris_9
Sub-Component:
compiler
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10 (b13)

Related Reports
Backport:
Backport:

Sub Tasks

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

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

See Description.
                                     
2007-04-30
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
                                     
2007-05-01



Hardware and Software, Engineered to Work Together