-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Make JIT<->EE printing methods consistent and support nested classes when printing class names #76505
Merged
Merged
Make JIT<->EE printing methods consistent and support nested classes when printing class names #76505
Changes from 49 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
5c25688
Clean up JIT<->EE "get class name" methods
jakobbotsch a176df0
Further cleanups/fixes
jakobbotsch 3bfb46f
Run jit-format
jakobbotsch e8fa31d
Revert TypeString removal
jakobbotsch 42501aa
Use getTypeForPrimitiveNumericClass instead
jakobbotsch 70d4370
Nit
jakobbotsch e7d0aa9
Fix unsupported test
jakobbotsch fcb4cc3
Address feedback
jakobbotsch 0449899
Remove leftover file
jakobbotsch 04def1f
Fix test failure
jakobbotsch 70866d0
Optimize
jakobbotsch 9b29a16
Remove StringPrinter::Grow
jakobbotsch 9bc6620
Fix contract, fix compiler error on x64
jakobbotsch ffaf9a4
Fix escaping
jakobbotsch 0f37c4e
Fix GCC build
jakobbotsch 77e799a
Clarify comment
jakobbotsch 0b58859
Avoid unnecessary eeGetMethodName call
jakobbotsch b987608
Nit
jakobbotsch 17388ed
Remove StringPrinter::Printf in favor of Append
jakobbotsch 08a63d9
Run jit-format
jakobbotsch c59ec3f
Merge branch 'main' of github.com:dotnet/runtime into print-nested-cl…
jakobbotsch 37f5cfa
Fix build
jakobbotsch 539162c
appendClassName -> printClassName
jakobbotsch f385851
Merge branch 'main' of github.com:dotnet/runtime into print-nested-cl…
jakobbotsch f1d6112
Fix build after merge
jakobbotsch 2a76d18
Remove escaping type names complication
jakobbotsch b8a0573
Nit
jakobbotsch e753c23
Factor PrintFromUtf16
jakobbotsch f61fc18
Remove unnecessary function
jakobbotsch e16357b
Fix missing write
jakobbotsch 62c2622
Work on switching getMethodName and getFieldName to print
jakobbotsch f5447b3
More work
jakobbotsch d9643e1
Fix bad merge
jakobbotsch 8a2368e
Fix bad merge
jakobbotsch d0c4b9f
Update for consistency, builds again
jakobbotsch fea3eec
Run jit-format
jakobbotsch 8b9d371
SPMI related fixes
jakobbotsch 0ca9cde
Unnecessary diff
jakobbotsch 5e53677
Run jit-format
jakobbotsch a5b7986
Avoid unnecessary diff 2
jakobbotsch 2f93dcb
Minor clean up for isEnum
jakobbotsch f8bac91
Avoid another diff
jakobbotsch 2f215cb
Remove a couple more hackishX in favor of <unknown X>
jakobbotsch 79ed341
More consistent buffer size
jakobbotsch d88c235
GC_NOTRIGGER
jakobbotsch 486a4fc
Remove getHelperName
jakobbotsch b45f7dd
Few fixes
jakobbotsch 6676673
Merge branch 'main' of github.com:dotnet/runtime into print-nested-cl…
jakobbotsch a8d8be1
Handle a few more cases in JitTypeNameFormatter
jakobbotsch 2b7e2ae
Update src/coreclr/vm/jitinterface.cpp
jakobbotsch 8c7a16c
Address feedback, remove outdated comment I forgot to remove in previ…
jakobbotsch 65c06f7
Address some more feedback
jakobbotsch 9aa933c
Small fix
jakobbotsch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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 useful to note in the comment above that
bufferSize
is in bytes, and*pRequiredBufferSize
is in bytes (ifpRequiredBufferSize
is non-nullptr).Can
buffer
benullptr
ifbufferSize == 0
? This would be the one case wherebuffer
can't be null terminated, of course, and where the documented return value range [0..0) makes no sense.Can
*pRequiredBufferSize == 0
? Since it needs to include space for a null terminator, I presume it needs to be at least 1.Can
*pRequiredBufferSize == 1
? That is, only a null terminator, and no text?If
bufferSize > 0
, and the return value is< bufferSize - 1
, are we guaranteed that the entire string is written (i.e., there is no truncation)? Does this implyreturn value == *pRequiredBufferSize - 1
? It would be useful to document these conditions.What happens if
handle
is illegal? Crash? Null-terminatedbuffer
(ifbufferSize > 0
)?Presumably you can do:
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.
Can you please take a look at the extra docs I've added in the latest commits?