-
Notifications
You must be signed in to change notification settings - Fork 566
Refactor singleton access and remove synchronous cleanup from WaitForGCBridgeProcessing #10806
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
Changes from all commits
7ab216d
e715372
7d24c36
1bfccb1
fabcb09
a961e4a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -30,7 +30,8 @@ class ManagedValueManager : JniRuntime.JniValueManager | |||||||||||||
| bool _disposed; | ||||||||||||||
|
|
||||||||||||||
| static Lazy<ManagedValueManager> s_instance = new (() => new ManagedValueManager ()); | ||||||||||||||
| public static ManagedValueManager GetOrCreateInstance () => s_instance.Value; | ||||||||||||||
|
|
||||||||||||||
| public static ManagedValueManager Instance => s_instance.Value; | ||||||||||||||
|
|
||||||||||||||
|
||||||||||||||
| public static ManagedValueManager GetOrCreateInstance () | |
| { | |
| return Instance; | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s_instanceshould bestatic readonlysince it is only assigned once, and the blank line after it currently contains stray whitespace. Making the field readonly and removing whitespace-only indentation helps prevent accidental reassignment and keeps the file clean per typical style/linters.