Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged

Conversation

lateralusX
Copy link
Member

#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.

@Copilot Copilot AI review requested due to automatic review settings March 26, 2025 11:19
@ghost ghost added the area-VM-coreclr label Mar 26, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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

Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@lateralusX
Copy link
Member Author

Failures in [runtime "Build Libraries Test Run checked coreclr linux x64 Release" appears on other PR's as well, so unrelated.

@ivanpovazan ivanpovazan requested a review from janvorli March 27, 2025 10:58
@lateralusX
Copy link
Member Author

lateralusX commented Mar 27, 2025

@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!

@lateralusX
Copy link
Member Author

@janvorli addressed all your review feedback.

Copy link
Member

@janvorli janvorli left a 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.

@lateralusX
Copy link
Member Author

@janvorli changed the called-out logging from info -> error, please make another review when you have time.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@lateralusX
Copy link
Member Author

Same test failures in "Build Libraries Test Run checked coreclr linux x64 Release" appears on other PR's.

@lateralusX lateralusX force-pushed the lateralusX/additional-coreclr-android-logging branch from 8f3462b to 6cd01d3 Compare April 1, 2025 16:37
@janvorli
Copy link
Member

janvorli commented Apr 1, 2025

/ba-g the failures are the tests that keep failing on the azure linux for all PRs.

@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants