-
Notifications
You must be signed in to change notification settings - Fork 5k
Adjust additional source under utilcode and vm to use minipal_log API. #113916
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
Adjust additional source under utilcode and vm to use minipal_log API. #113916
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.
Copilot reviewed 3 out of 23 changed files in this pull request and generated no comments.
Files not reviewed (20)
- src/coreclr/utilcode/debug.cpp: Language not supported
- src/coreclr/utilcode/executableallocator.cpp: Language not supported
- src/coreclr/utilcode/loaderheap.cpp: Language not supported
- src/coreclr/utilcode/util_nodependencies.cpp: Language not supported
- src/coreclr/vm/assembly.cpp: Language not supported
- src/coreclr/vm/binder.cpp: Language not supported
- src/coreclr/vm/ceemain.cpp: Language not supported
- src/coreclr/vm/class.cpp: Language not supported
- src/coreclr/vm/classcompat.cpp: Language not supported
- src/coreclr/vm/codeman.h: Language not supported
- src/coreclr/vm/codepitchingmanager.cpp: Language not supported
- src/coreclr/vm/debughelp.cpp: Language not supported
- src/coreclr/vm/disassembler.cpp: Language not supported
- src/coreclr/vm/ecall.cpp: Language not supported
- src/coreclr/vm/eetwain.cpp: Language not supported
- src/coreclr/vm/frames.cpp: Language not supported
- src/coreclr/vm/gchelpers.cpp: Language not supported
- src/coreclr/vm/gdbjit.cpp: Language not supported
- src/coreclr/vm/hash.cpp: Language not supported
- src/coreclr/vm/jithelpers.cpp: Language not supported
Tagging subscribers to this area: @mangod9 |
Failures in [runtime "Build Libraries Test Run checked coreclr linux x64 Release" appears on other PR's as well, so unrelated. |
@janvorli Thanks for review, I did change existing logging since I didn't have too much experience of their usage, so primarily just did a straight adaption so if it used stdout it was ported to info and if it used strerr it was ported to error. I will go over your comment and adjust loggings based on feedback. Thanks! |
@janvorli addressed all your review feedback. |
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.
I am sorry, I've missed some places that should go to error in my previous PR.
@janvorli changed the called-out logging from info -> error, please make another review when you have time. |
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.
LGTM, thank you!
Same test failures in "Build Libraries Test Run checked coreclr linux x64 Release" appears on other PR's. |
8f3462b
to
6cd01d3
Compare
/ba-g the failures are the tests that keep failing on the azure linux for all PRs. |
#113416 established a logging API in native/minipal wired up to work on platforms not supporting standard stdout/stderr, like Android. That initial PR changed a couple of locations from regular printf's to minipal_log calls.
This follow-up PR adjust more locations inside coreclr utilcode and vm folder using minipal_log API's for logging. There are still a couple of places that have not been adjusted, mainly due to unactive code (commented out or #if 0) and the code in src\coreclr\vm\gc_unwind_x86.inl was intestinally left out.
There are more places that could be adjusted to use minipal_log API's instead of straight printf's, like the pal, nativeaot, but going forward, this could be done on a case-by-case basis, if the specific logging is needed on platforms without working stdout/stderr.