-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Eliminate most Windows IO usages in superpmi #121367
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
Open
huoyaoyuan
wants to merge
29
commits into
dotnet:main
Choose a base branch
from
huoyaoyuan:superpmi/stdio2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 28 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e368e13
Logging
huoyaoyuan 62f44f0
TOCFile
huoyaoyuan 267d269
Read/Write MCL array
huoyaoyuan 0a1d0a1
MethodStatsEmitter
huoyaoyuan f784a0a
verbConcat
huoyaoyuan df64255
verbStat
huoyaoyuan 0cc91d3
verbTOC
huoyaoyuan 34280bb
ASMDumper
huoyaoyuan 5924a63
MCList
huoyaoyuan 55ecec8
MethodContext reader
huoyaoyuan 540fc0a
Write MethodContext
huoyaoyuan 21ef3e5
Fix Linux
huoyaoyuan caa90ed
MethodContextReader
huoyaoyuan 67e76e8
Exclude method list
huoyaoyuan e0ea225
Fix x86 build
huoyaoyuan 8eb0a9d
FileLineReader
huoyaoyuan 9e9bc74
Use ofstream for output with overload
huoyaoyuan 17964b1
Don't use std::endl to avoid flushing
huoyaoyuan 68177b3
Fix feof handling
huoyaoyuan f0b1eb3
Revert writer change
huoyaoyuan 9f2f26d
Use stdio with buffer
huoyaoyuan 26656f2
Merge branch 'main' into superpmi/stdio2
huoyaoyuan 977f6ca
Merge branch 'main' into superpmi/stdio2
huoyaoyuan 21e9dc4
Apply suggestions from code review
huoyaoyuan 500cfd5
Bring back USE_MSVCDIS
huoyaoyuan d644ad2
Use _fseeki64
huoyaoyuan efa6ea5
FIx
huoyaoyuan cf45fb8
Move construct the list
huoyaoyuan 0e60247
More vector handling
huoyaoyuan 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
If we're using a vector now, can we remove the
indexCountmember?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's also used as a sentinel for not using the indices. I haven't looked about it in depth.
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's passed into
MethodContextReaderwhich doesn't make a good lifetime. I tried to useshared_ptr<vector>to pass the list but got really confused. I'd like to limit the refactor and touch types that directly interact with the IO.