Skip to content

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

@NGloreous

Description

@NGloreous

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions