JDK-7021332 : SA CodeBlob.java has assert incompatible with Linux/x64 support.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 5.0u22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2011-02-22
  • Updated: 2011-05-17
  • Resolved: 2011-05-17
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.
Other
5.0u31 b01Fixed
Description
Assert in CodeBlob.java prevents using the SA tools for JDK5 on Linux/x64 (amd64).

Comments
EVALUATION I've been running with just removing the assert: (5.10)$ hg diff agent/src/share/classes/sun/jvm/hotspot/code/CodeBlob.java ... @@ -190,7 +190,6 @@ public class CodeBlob extends VMObject { public int getLinkOffset() { if (Assert.ASSERTS_ENABLED) { Assert.that(VM.getVM().isServerCompiler(), "Only used on C2 x86"); - Assert.that(VM.getVM().getCPU().equals("x86"), "Only used on C2 x86"); }
22-02-2011