Skip to content

GC.RegisterForFullGCNotification does not throw InvalidOperationException in concurrent mode #10826

Open
@mingpepe

Description

@mingpepe

Type of issue

Other (describe below)

Description

This member is not available when concurrent garbage collection is enabled. See the runtime setting for information about how to disable concurrent garbage collection.

Managed code checks return value but runtime always return true, so InvalidOperationException always not throw.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.gc.registerforfullgcnotification?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/GC.xml

Document Version Independent Id

d39ddff3-1f0c-8cd5-e0c9-8b4125fc7331

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions