-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
NativeOverlapped moved the data to native memory. The code below creates an AsyncPinned handle for the object and consequently the userData. Can we consider avoiding the pinning here? Or move these to the POH?
The handle right now does contribute to fragmentation. Especially for cases where there may be long running connections etc. which may promote these to GEN2.
overlappedHolder->m_handle = GetAppDomain()->CreateTypedHandle(overlapped, HNDTYPE_ASYNCPINNED);
HandleTable:
0000023FD9E5A950 (async pinned handle)
-> 0000023FB8978590 System.Threading.OverlappedData
Metadata
Metadata
Assignees
Labels
No labels