-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Reapply "Replace CordbProcess::GetSharedDomain with GetAppDomain" #117224
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
Conversation
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.
Pull Request Overview
This PR simplifies the ID cookie passed to the CordbBase
constructor in CordbAssembly
by always using vmAssembly
instead of conditionally choosing between vmAssembly
and vmDomainAssembly
.
- Removed the
vmDomainAssembly.IsNull()
check in the constructor initializer list. - Now always calls
VmPtrToCookie(vmAssembly)
for the assembly ID.
Comments suppressed due to low confidence (2)
src/coreclr/debug/di/rsassembly.cpp:29
- Add a unit test scenario where the same assembly is loaded into multiple AppDomains to ensure the new ID generation logic produces unique and consistent cookies.
VMPTR_DomainAssembly vmDomainAssembly)
src/coreclr/debug/di/rsassembly.cpp:32
- By removing the null check on
vmDomainAssembly
, we should verify thatvmAssembly
is always valid here; consider adding an assertion (_ASSERTE(!vmAssembly.IsNull())
) or early guard to prevent passing a null pointer toVmPtrToCookie
.
VmPtrToCookie(vmAssembly),
Tagging subscribers to this area: @steveisok, @dotnet/dotnet-diag |
…otnet#117037)" (dotnet#117221) This reverts commit a3929e2.
6856cf5
to
89a04fa
Compare
I'll run some tests before merging |
|
/ba-g failure is #111922
Chatted offline that we should be good. |
…tnet#117224) Fix on top of the original: use Assembly as the ID for CordbAssembly instead of DomainAssembly.
Original change: #117037
Fix on top of the original: 1002a9d. Use Assembly as the ID instead of DomainAssembly. See #117221