Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6128

[drlvm][jit] Incorrect constant processing in server mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • DRLVM
    • None
    • Windows XP
    • Unknown

    Description

      To get it, just use the following java code:

      public class xx
      {
      public static void main(String[] args)

      { long t = 1; int it = (int)(long)(int)t; long tt = 1L << 32; System.out.println(tt); }

      }

      Output of RI (both server and client mode) is : 4294967296
      Output of harmony (under client mode) is: 4294967296
      Output of harmony (under server mode) is: 1 (this should be wrong)

      It is strange that you have to keep the first two statements inside function main, or you will get the correct output.

      Attachments

        Activity

          People

            Unassigned Unassigned
            daizisheng li, shisheng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: