United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 4850474 dependence information is inaccurate, leading to intermittent COMPILE FAILED
4850474 : dependence information is inaccurate, leading to intermittent COMPILE FAILED

Details
Type:
Bug
Submit Date:
2003-04-18
Status:
Resolved
Updated Date:
2005-09-22
Project Name:
JDK
Resolved Date:
2005-09-22
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
6

Related Reports
Relates:
Relates:
Relates:

Sub Tasks

Description
Here's a smoking gun for the cleanup I've long wanted to do on the
jury-rigged data structure that pertains to nmethod::first_dependent.

If the compiler substitutes a unique concrete subclass B for a given
abstract class A, it will issue a dependency which mentions A (and
no method).  This dependency actually states that A must have no subclasses
at all, so as soon as it is examined, the method will fail to compile,
or will be deoptimized.  If, as happens in big-apps, there is concurrent
class loading happening, even if that concurrent class loading is unrealated
to the method in question, that method will be marked "COMPILE FAILED",
because the system dictionary's mod-tick will have incremented a bit,
and the check of the new dependency (on A) will fail (because of B).

Solution:  Have a real data structure for dependencies, with an enum
that distinguishes the separate types of dependency.

                                    

Comments
SUGGESTED FIX

See PRT webrev:
 http://analemma.sfbay.sun.com/net/prt-archiver.sfbay/data/archived_workspaces/main/c2_baseline/2005/20050908124746.jrose.mustang-dependencies/workspace/webrevs/webrev-2005.09.09/index.html
                                     
2005-09-28
EVALUATION

###@###.### 2003-04-17

Fix needed.
-----
                                     
2003-04-17



Hardware and Software, Engineered to Work Together