Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update: Add comment to volatile field
Co-authored-by: Stephen Toub <stoub@microsoft.com>
  • Loading branch information
2 people authored and github-actions committed Sep 8, 2022
commit 1ea41d9cf6c7bb73cb245581b4b3cb38087fe219
3 changes: 3 additions & 0 deletions src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ public ChangeTrackingArrayList() { }

public ChangeTrackingArrayList(ICollection c) : base(c) { }

// While this type isn't intended to mutated concurrently with reads, non-concurrent updates
// to the list might result in lazy initialization, and it's possible concurrent requests could race
// to trigger that initialization.
public volatile bool IsChanged;

// Override the methods that can add, remove, or change the regexes in the bypass list.
Expand Down