Skip to content

Documentation "remarks" section is inconsistent with actual implementation #8388

Open
@kiapanahi

Description

@kiapanahi

The Remarks section of the Interlocked.MemoryBarrier method document is inconsistent with the actual implementation.

to quote:

This method was added to the Interlocked class in the .NET Framework 4.5 as a convenience;
it's a wrapper for the Thread.MemoryBarrier method.

This statement is correct for .NET Framework 4.x version. see Source Code in Microsoft Reference Code.

But when it comes to .NET [Core] the implementation is reversed. see Source Code in GitHub.

This might lead to some misunderstandings when reading the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.ThreadinguntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions