-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Cleanup most usages of Windows file mapping #121896
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
base: main
Are you sure you want to change the base?
Changes from all commits
f718149
1bb8c12
09f3143
b449372
5ef0308
5887162
3189244
44eca5b
fb1e9eb
84497f7
8a0254e
76ceb98
0eb84c1
974e935
f0d29f3
b74c501
3ccd88a
351cde6
89c25a4
20fc748
0c48c02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -237,13 +237,9 @@ class StressLog { | |
| static const size_t MAX_MODULES = 5; | ||
| ModuleDesc modules[MAX_MODULES]; // descriptor of the modules images | ||
|
|
||
| #if defined(HOST_64BIT) | ||
| #if defined(HOST_64BIT) && HOST_WINDOWS | ||
| #define MEMORY_MAPPED_STRESSLOG | ||
| #ifdef HOST_WINDOWS | ||
| #define MEMORY_MAPPED_STRESSLOG_BASE_ADDRESS (void*)0x400000000000 | ||
| #else | ||
| #define MEMORY_MAPPED_STRESSLOG_BASE_ADDRESS nullptr | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this removing support for memory mapped stresslog on non-Windows?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. NativeAOT copy of stresslog removes memory map support on all platforms. I haven't measured the impact. |
||
| #endif | ||
| #endif | ||
|
|
||
| #ifdef MEMORY_MAPPED_STRESSLOG | ||
|
|
||
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.
This can just be
delete m_File;. Implementations ofdeletehave handlednullptrfor over 30 years.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.
All of the existing code here are performing null test for
delete. Should we prefer consistency here?