Skip to content
Open
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ internal sealed class ReferenceTrackerNativeObjectWrapper : NativeObjectWrapper
internal readonly IntPtr _contextToken;
private int _trackerObjectDisconnected; // Atomic boolean, so using int.
private readonly bool _releaseTrackerObject;
internal readonly GCHandle _nativeObjectWrapperWeakHandle;
internal GCHandle _nativeObjectWrapperWeakHandle; // mutable struct; do not make this readonly

public IntPtr TrackerObject => (_trackerObject == IntPtr.Zero || _trackerObjectDisconnected == 1) ? IntPtr.Zero : _trackerObject;

Expand Down