[foreign-memaccess+abi] Integrated: 8299730: Add trivial call linker option
Jorn Vernee
jvernee at openjdk.org
Tue Jan 31 13:30:24 UTC 2023
On Thu, 19 Jan 2023 12:25:27 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Add a trivial call linker option. This option acts as a hint to the runtime which indicates that a downcall is extremely short live (comparable to calling an empty function), and does not call back into Java.
>
> Some implementations (like ours) might use this information to apply additional optimizations that are only applicable to trivial functions (dropping thread state transitions).
>
> Note that the VM code diff looks kind of messy, but I essentially just put 3 `if` statements around the code that deals with the thread state transitions before and after the call. This also required moving the declarations of the `Label`s around though (so they are accessible from both ifs on the return path), which is probably messing up the diff view.
This pull request has now been integrated.
Changeset: 200a116b
Author: Jorn Vernee <jvernee at openjdk.org>
URL: https://git.openjdk.org/panama-foreign/commit/200a116b385b58da964940f8f499e102b11780a0
Stats: 524 lines in 23 files changed: 361 ins; 44 del; 119 mod
8299730: Add trivial call linker option
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/panama-foreign/pull/771
More information about the panama-dev
mailing list