WebAssembly / WebAssembly/threads
Misalignment checks
Nobody has claimed this yet.
- Dominant language
- WebAssembly
- Stars
- 767
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
According to the current overview for the threads proposal, misaligned atomic accesses trap (here), while regular, misaligned memory accesses still don't trap.
From the research I've done, it looks like using cpu-exceptions to support trapping just for misaligned atomic operations is a no go for several reasons (lack of os support, overhead, etc). Are we intended to emit a branch to check if the pointer is aligned?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with proposals/threads/Overview.md#alignment and the issue's discussion of cpu-exceptions. Determine whether misaligned atomic accesses require an explicit alignment check, and document the agreed proposal-level behavior; no test or implementation file is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100