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.
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.
- relates to
-
JDK-6292017 VM crashed with the flags -client -XX:CompileThreshold=5 -XX:+LogCompilation
-
- Closed
-
-
JDK-6326076 SA-JDI: ThreadReference.frameCount throws AssertionFailure: must be a valid non-zero index
-
- Resolved
-
-
JDK-6471009 Significantly higher CPU usage in jvm1.6 build 97/98 vs jvm1.5.0_06-b05 on DOTS ATCJ2 test
-
- Resolved
-