Skip to content

[NativeAOT] Review COOP helpers that may cause long GC suspension pauses. #73655

Closed
@VSadov

Description

@VSadov

RhpCopyObjectContents can cause long pauses when copying large arrays.
it was observed on System.Security.Cryptography.Tests.

Other COOP_PINVOKE_HELPER need to be examined as well on whether the potential wait is bounded and short.
For example RhCompareObjectContentsAndPadding might have the same issues.

In the copy object/array case, we can use the same approach as in CoreClr that does the copying in managed code and if needs to set cards, does it in chunks. Perhaps the code can be unified?

RhBulkMoveWithWriteBarrier has the same issue. Long pauses were observed when running System.Private.Uri.Functional.Tests

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions