-
Bug
-
Resolution: Fixed
-
P5
-
9
-
b08
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045365 | 8u25 | Goetz Lindenmaier | P5 | Resolved | Fixed | b01 |
JDK-8038563 | 8u20 | Goetz Lindenmaier | P5 | Resolved | Fixed | b08 |
JDK-8052667 | emb-8u26 | Vladimir Kozlov | P5 | Resolved | Fixed | b17 |
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.
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.
- backported by
-
JDK-8038563 Account for trampoline stubs when estimating code buffer sizes
-
- Resolved
-
-
JDK-8045365 Account for trampoline stubs when estimating code buffer sizes
-
- Resolved
-
-
JDK-8052667 Account for trampoline stubs when estimating code buffer sizes
-
- Resolved
-