Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4965689

class literal code wastes a byte

    XMLWordPrintable

Details

    • b86
    • generic
    • solaris_8
    • Verified

    Description

      Date: Tue, 09 Dec 2003 09:46:48 -0800
      Wrom: SHJEXXIMQZUIVOTQNQEMSFDULHPQQWOY
      Subject: ldc class
      To: <###@###.###>

      Just FYI, a lot of ldc of classes are being emitted ldc_w even though
      index < 255. For example:

      % javap -c -private java.awt.Frame | grep ldc_w | grep class
          0: ldc_w #85; //class java/awt/Frame
          9: ldc_w #85; //class java/awt/Frame
          0: ldc_w #85; //class java/awt/Frame
          10: ldc_w #85; //class java/awt/Frame
          36: ldc_w #85; //class java/awt/Frame
          0: ldc_w #85; //class java/awt/Frame
          10: ldc_w #85; //class java/awt/Frame

      Attachments

        Activity

          People

            vromero Vicente Arturo Romero Zaldivar
            gafter Neal Gafter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: