Cache the path on Module for easier diagnostics#106103
Cache the path on Module for easier diagnostics#106103elinor-fung merged 5 commits intodotnet:mainfrom
Module for easier diagnostics#106103Conversation
|
Tagging subscribers to this area: @mangod9 |
Module for eaiser diagnosticsModule for easier diagnostics
SString works well for temporary values - method arguments, locals, etc. It works poorly as a field with longer lifetime that is potentially accessed by multiple threads (you have to be very careful how you use it to avoid subtle race conditions). I think it is a good idea to avoid exposing SString for the cdac |
@lambdageek You would think marking something |
Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
|
Re: lifetime and
|
a65c3ce to
b2062d4
Compare
davidwrighton
left a comment
There was a problem hiding this comment.
Looks good to me. Long term, I'd like to see us stop using an SString as a field at all on PEImage, but we can do that some other time.
PEImagetake a path in its constructor and make its member constModuleI'm trying to avoid having to expose PEAssembly/PEImage in data descriptors to the cDAC just to get the module path.
Contributes to #99302
cc @lambdageek @davidwrighton