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

StackCounter adding extraneous slots for receiver invoke instructions

    XMLWordPrintable

Details

    Description

      StackCounter handling of invoke instructions should add slots for invoke instruction at once instead of in 2 batches: if in a method like
      int work() { return anotherInstanceMethod(); }
      The stack will be 2 currently due to this buggy logic first adding another stack, making max 2, then decrementing back to 1 and to 0.

      We need to ensure all calls to addStackInSlot should be atomic.

      Courtesy to [~winterhalter] for test cases discovering this issue.

      Attachments

        Issue Links

          Activity

            People

              liach Chen Liang
              liach Chen Liang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: