United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7021332 SA CodeBlob.java has assert incompatible with Linux/x64 support.
JDK-7021332 : SA CodeBlob.java has assert incompatible with Linux/x64 support.

Details
Type:
Bug
Submit Date:
2011-02-22
Status:
Resolved
Updated Date:
2011-05-17
Project Name:
JDK
Resolved Date:
2011-05-17
Component:
hotspot
OS:
linux
Sub-Component:
svc
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u22
Fixed Versions:
5.0u31 (b01)

Related Reports

Sub Tasks

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");
     }
                                     
2011-02-22



Hardware and Software, Engineered to Work Together