Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Allocate RuntimeType objects on Frozen Object Heap #75573
Allocate RuntimeType objects on Frozen Object Heap #75573
Changes from 40 commits
9c15c1f
232033b
f63c941
841e9c7
f168d13
2f50121
3e6d3ba
c939027
c8512a9
bad7cc4
9d8526e
18e1cd4
a7fea6d
f2afedc
6a8cedf
677f94b
15bcad1
81bacbb
b5b7c98
608e6c9
be063b8
59af88b
a8e0786
1f9a348
2fd4384
8f2a767
b4b7128
a2ca5b1
fd099a2
64e7171
ac405a1
7ab7bd1
895e9f5
bcd47b1
c217579
253747e
ca6c69a
93ef525
7394e1e
f6055b9
57b1477
e9a396f
4fbb894
7476a68
bc2292b
7bf7e0e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
It would be better to return the string from the JIT/EE interface API as utf8, similar to other places that return names.
The problem with depending on
%S
to formatchar16_t
strings is that depends on the PAL emulating Windows CRT behavior on Unix. We have been working towards getting rid of the Windows PAL emulator, and adding more uses of %S goes against that.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.
@jkotas I was thinking of leaving it as is just for future JIT optimizations e.g. enable unrolling of Equals/StartsWith for static readonly strings, folding some
.ToString()
operations etc and for that I'll need raw contentThere 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.
If you want to do that, it should be a new API that just returns the raw string content.
I do not think it is a good idea to be overloading APIs to do both pretty printing and real functionality.
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.
Replaced with UTF8
char*
The only problem that it now prints garbage for non latin1 string literals for JitDisasm
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.
The same issue exists in number of other places (e.g. for method names). I do not think that it is a problem. Do you agree?
I think we should standardize on utf8 output, and tell everybody who is not happy about the garbage characters from jit tracing to switch their console encoding to utf8. I have my console encoding set to utf8 on all my Windows systems for a while, so I almost forgot that this problem exists.