dotnet-api-docs
dotnet-api-docs copied to clipboard
GC.RegisterForFullGCNotification does not throw InvalidOperationException in concurrent mode
Type of issue
Other (describe below)
Description
This member is not available when concurrent garbage collection is enabled. See the <gcConcurrent> 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
Tagging subscribers to this area: @dotnet/area-system-runtime