Stream: git-wasmtime

Topic: wasmtime / PR #7201 aarch64: Implement TLSDESC for TLS GD...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2023 at 21:42):

afonso360 opened PR #7201 from afonso360:aarch64-tlsdesc to bytecodealliance:main:

:wave: Hey,

This PR replaces the current TLS GD sequence with Thead-Local Storage Descriptors (TLSDESC). TLSDESC is a improved TLS GD model that switches to a custom calling convention that preserves most registers, preventing clobbering and restoring around the regular __tls_get_addr call.

Furthermore, TLSDESC supports a number of relaxations that actually avoid the function call entirely in some situations. These relaxations are not allowed to change the code sequence size, so there is no danger of changing the label offsets after being resolved by cranelift.

I've tested this with cg_clif's testsuite. Using both lld and the gnu linker.

Closes: #6778

view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2023 at 21:42):

afonso360 requested fitzgen for a review on PR #7201.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2023 at 21:42):

afonso360 requested wasmtime-compiler-reviewers for a review on PR #7201.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2023 at 22:21):

afonso360 updated PR #7201.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2023 at 10:30):

alexcrichton submitted PR review:

:+1:

view this post on Zulip Wasmtime GitHub notifications bot (Oct 10 2023 at 11:14):

alexcrichton merged PR #7201.


Last updated: Nov 22 2024 at 16:03 UTC