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

Account for trampoline stubs when estimating code buffer sizes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b08

      Backports

        Description

        Change 8016696 added support for trampoline stubs. The sizes of these stubs were not accounted for when computing the expected size of the stubs section in shorten_branches().

        This change introduces a small class CallStubImpl in the hpp section in the ad file which contains the size functions. Using a class avoids further 'extern' declarations. Putting the functions in the header assures they can be inlined and thus optimized away on platforms other than ppc64 where they return '0'. The ad_xxx.hpp file is included in output.cpp anyways.

        To finally clean up the extern declarations in output.cpp this change introduces another small class HandlerImpl wrapping the corresponding functions for the handler stubs (exception and deopt). This also now makes the size computation inlineable.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                goetz Goetz Lindenmaier
                Reporter:
                goetz Goetz Lindenmaier
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: