dotnet / dotnet/dotnet-api-docs
Clarify when DataMisalignedException can be thrown
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
[The documentations for `DataMisalignedException` starts](https://docs.microsoft.com/en-us/dotnet/api/system.datamisalignedexception?view=netcore-3.1#remarks):
> Some microprocessors, such as 64-bit processors, can issue hardware exceptions when data is read or written to a misaligned address […]
If I understand it correctly, on .Net 5, this exception can be thrown on ARM, but not on x64, which makes the above phrase misleading. (I suspect the reference to 64-bit processors is about Itanium.) Should the above be updated to the following?
> Some processors, such as ARM, can issue hardware exceptions when data is read or written to a misaligned address […]
Contributor guide
Assessment
This issue has not been assessed yet.