Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mingpepe opened this issue Jan 10, 2025 · 1 comment
Labels
area-System.Runtime untriaged New issue has not been triaged by the area owner

Comments

@mingpepe
Copy link

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

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 10, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Runtime untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant