dotnet / dotnet/dotnet-api-docs

Clarify when DataMisalignedException can be thrown

Open
#4,598 1 comment 1 reaction 0 assignees View on GitHub
area-System.Runtime.InteropServices Pri3 untriaged
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.