[Bug 2951] New: [IcedTea6] javap -c doesn't provide disassembled code when ct.sym is present

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Tue May 3 21:14:35 UTC 2016


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2951

            Bug ID: 2951
           Summary: [IcedTea6] javap -c doesn't provide disassembled code
                    when ct.sym is present
           Product: IcedTea
           Version: 6-hg
          Hardware: all
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: IcedTea
          Assignee: gnu.andrew at redhat.com
          Reporter: gnu.andrew at redhat.com
                CC: unassigned at icedtea.classpath.org

$ /home/andrew/build/icedtea6/bin/javap -c java.util.HashMap
Compiled from "HashMap.java"
public class java.util.HashMap<K, V> extends java.util.AbstractMap<K, V>
implements java.util.Map<K, V>, java.lang.Cloneable, java.io.Serializable {

...

  public java.util.HashMap(int, float);

  public java.util.HashMap(int);

The results should look like this:

Compiled from "HashMap.java"
public class java.util.HashMap<K, V> extends java.util.AbstractMap<K, V>
implements java.util.Map<K, V>, java.lang.Cloneable, java.io.Serializable {

...

  public java.util.HashMap(int, float);
    Code:
       0: aload_0       
       1: invokespecial #1;                 // Method
java/util/AbstractMap."<init>":()V
       4: aload_0       
       5: aconst_null   
       6: putfield      #2;                 // Field entrySet:Ljava/util/Set;
       9: iload_1       
      10: ifge          40
      13: new           #3;                 // class
java/lang/IllegalArgumentException
      16: dup           
      17: new           #4;                 // class java/lang/StringBuilder
      20: dup           
      21: invokespecial #5;                 // Method
java/lang/StringBuilder."<init>":()V
      24: ldc           #6;                 // String Illegal initial capacity: 
      26: invokevirtual #7;                 // Method
java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      29: iload_1       
      30: invokevirtual #8;                 // Method
java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
      33: invokevirtual #9;                 // Method
java/lang/StringBuilder.toString:()Ljava/lang/String;
      36: invokespecial #10;                // Method
java/lang/IllegalArgumentException."<init>":(Ljava/lang/String;)V
      39: athrow        
      40: iload_1       
      41: ldc           #11;                // int 1073741824
      43: if_icmple     49
      46: ldc           #11;                // int 1073741824
      48: istore_1      
      49: fload_2       
      50: fconst_0      
      51: fcmpg         
      52: ifle          62
      55: fload_2       
      56: invokestatic  #12;                // Method
java/lang/Float.isNaN:(F)Z
      59: ifeq          89
      62: new           #3;                 // class
java/lang/IllegalArgumentException
      65: dup           
      66: new           #4;                 // class java/lang/StringBuilder
      69: dup           
      70: invokespecial #5;                 // Method
java/lang/StringBuilder."<init>":()V
      73: ldc           #13;                // String Illegal load factor: 
      75: invokevirtual #7;                 // Method
java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      78: fload_2       
      79: invokevirtual #14;                // Method
java/lang/StringBuilder.append:(F)Ljava/lang/StringBuilder;
      82: invokevirtual #9;                 // Method
java/lang/StringBuilder.toString:()Ljava/lang/String;
      85: invokespecial #10;                // Method
java/lang/IllegalArgumentException."<init>":(Ljava/lang/String;)V
      88: athrow        
      89: iconst_1      
      90: istore_3      
      91: iload_3       
      92: iload_1       
      93: if_icmpge     103
      96: iload_3       
      97: iconst_1      
      98: ishl          
      99: istore_3      
     100: goto          91
     103: aload_0       
     104: fload_2       
     105: putfield      #15;                // Field loadFactor:F
     108: aload_0       
     109: iload_3       
     110: i2f           
     111: fload_2       
     112: fmul          
     113: f2i           
     114: putfield      #16;                // Field threshold:I
     117: aload_0       
     118: iload_3       
     119: anewarray     #17;                // class java/util/HashMap$Entry
     122: putfield      #18;                // Field
table:[Ljava/util/HashMap$Entry;
     125: aload_0       
     126: invokevirtual #19;                // Method init:()V
     129: return        

  public java.util.HashMap(int);
    Code:
       0: aload_0       
       1: iload_1       
       2: ldc           #20;                // float 0.75f
       4: invokespecial #21;                // Method "<init>":(IF)V
       7: return        

We need to backport https://bugs.openjdk.java.net/browse/JDK-6863746

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20160503/345a64e7/attachment.html>


More information about the distro-pkg-dev mailing list