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

HttpSysDelegator - AddOrUpdateRules fails to add rule due to bug with WeakReference/GC #2486

Closed
NGloreous opened this issue May 3, 2024 · 0 comments · Fixed by #2487
Closed
Labels
Type: Bug Something isn't working

Comments

@NGloreous
Copy link
Contributor

Describe the bug

This unexpected condition can be hit if a GC occurs after a new DelegationQueue is initialized but before it's pulled back out of the WeakReference.

That is because even though the queue variable is still used after here the actual object isn't necessarily referenced, so the JIT/GC considers it fine to clean up the object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
1 participant