-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Remove remaining CRT PAL wrappers and enable including standard headers in the CoreCLR build #98336
Merged
Merged
Changes from 27 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
ffee875
Remove PAL_exit as the only usages are in places where we don't use P…
jkoritzinsky 04ea4b4
Remove rand PAL API as no one uses it.
jkoritzinsky 2527c50
Remove PAL_realloc as no usage of it would ever pass an alloc size of 0.
jkoritzinsky 610d49f
Remove PAL_free as it just forwards to free.
jkoritzinsky 6f5d947
Remove malloc PAL API and update the few places that could have passe…
jkoritzinsky 33f3224
Remove AMD64 processor PAL functions
jkoritzinsky 86f4ea7
Remove time PAL as it's unused
jkoritzinsky 865eefb
Explicitly use the PAL's getenv implementation in the few places we w…
jkoritzinsky 188b02d
Suppress bad static-analysis warning
jkoritzinsky 57e6a10
Remove bsearch and qsort PAL APIs as they only forward to the underly…
jkoritzinsky b528590
Remove CRT PAL, CLR STL PAL, and enable including CRT and STL headers.
jkoritzinsky 309e330
Various changes to fix the Windows build.
jkoritzinsky 108f83d
Remove min/max macros from NativeAOT and fix other build failures on …
jkoritzinsky 16a04e0
Remove duplicate definitions, fix callconv build failure. Disable war…
jkoritzinsky d8afe1d
Force C++ linkage when including the C++ standard headers (some files…
jkoritzinsky e8c8846
Add missing includes/usings.
jkoritzinsky ce1f3e3
Fix some build errors
jkoritzinsky 03963c5
Merge branch 'main' of github.com:dotnet/runtime into misc-pal
jkoritzinsky c7e6dc3
Remove malloc wrapper and simplify InternalNew
jkoritzinsky 03a06fb
Remove cruntime/misc.cpp PAL APIs and inline usages of _gcvt_s
jkoritzinsky 54d2c8e
Fix more build failures
jkoritzinsky 90ad1fe
Fix various build failures.
jkoritzinsky a024484
Fix various build failures.
jkoritzinsky d3aec5e
Fix define and fix more community-leg failures.
jkoritzinsky 27fd400
Various osx and gcc fixes
jkoritzinsky 0c4e83a
Merge branch 'main' of github.com:dotnet/runtime into misc-pal
jkoritzinsky 5cfe483
Define RC_INVOKED when preprocessing RC files and fix more NULL->TADD…
jkoritzinsky d49ae0c
Disable the NULL arithmetic and conversion warnings in CoreCLR to avo…
jkoritzinsky 75529ac
One more malloc header fix.
jkoritzinsky 83a4d19
Various build fixes/adjustments
jkoritzinsky 2d195d1
Further build fixes
jkoritzinsky 110965d
Apply format patch
jkoritzinsky 141f08c
Fix GCC build and continue to work on the linux-x86 build
jkoritzinsky ab910e6
Ensure that we're doing an unsigned compare with the result of unsign…
jkoritzinsky 2ae3160
Remove malloc.h include except for where we're pulling it in for _alloca
jkoritzinsky 2e45f86
Undo unsigned largestAlignmentRequirement
jkoritzinsky a11db1d
Explicitly use the C++ abs signature as we did in the rest of the jit
jkoritzinsky bae9c94
Merge branch 'main' of github.com:dotnet/runtime into misc-pal
jkoritzinsky cf9efb2
Remove constant manipulation as that wasn't the problem and add missi…
jkoritzinsky eb0180d
Include malloc.h on windows for the whole JIT
jkoritzinsky fb30172
Fix PAL tests and update pal test script's usage information.
jkoritzinsky 93c34c4
Remove PAL_STDCPP_COMPAT and remove min/max macro in the GC space and…
jkoritzinsky d5b82a1
Merge branch 'main' of github.com:dotnet/runtime into misc-pal
jkoritzinsky 1a0ee6c
Various build fixes and PR feedback
jkoritzinsky 57ed663
Fix build errors
jkoritzinsky 705bf68
Set NOMINMAX globally and move the CoreCLR and NativeAOT builds to ne…
jkoritzinsky 12a6143
Move standard headers to the top to avoid having the "debug return" m…
jkoritzinsky a686376
Use `set_property` to append the RC_INVOKED define instead of overwri…
jkoritzinsky cef5418
Undef __fastcall to fix FreeBSD
jkoritzinsky 23f2792
Merge branch 'main' of github.com:dotnet/runtime into misc-pal
jkoritzinsky 283f254
Add more min/max casts to fix GCC build.
jkoritzinsky ee084ec
Add more casts to fix GCC and windows x86 builds
jkoritzinsky aa54b3f
More min/max fixes...
jkoritzinsky 03b42c6
More signedness mismatch fixes in gc.
jkoritzinsky 80c56da
Remove USE_STL
jkoritzinsky 0092a92
PR feedback
jkoritzinsky 93be569
Remove custom min/max from SuperPMI
jkoritzinsky 5dddd14
Remove custom min/max from the JIT
jkoritzinsky f9647e5
Remove min/max in the GC
jkoritzinsky 25c9976
Fix more cases that only pop in 64-bit windows builds.
jkoritzinsky 7315beb
Fix failures on linux-x64 and when using a compiler that can actually…
jkoritzinsky 3b8e067
Merge branch 'main' of github.com:dotnet/runtime into misc-pal
jkoritzinsky e71df2d
Fix build
jkoritzinsky 140313a
PR feedback
jkoritzinsky e9c5d90
Merge branch 'main' of github.com:dotnet/runtime into misc-pal
jkoritzinsky fca86d3
Convert (TADDR)NULL to (TADDR)0 in places where (TADDR)NULL was not a…
jkoritzinsky 3701d49
Merge dotnet/runtime into jkoritzinsky/misc-pal
jkoritzinsky a0e2e3d
Merge branch 'main' of github.com:dotnet/runtime into misc-pal
jkoritzinsky 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
#include <stdint.h> | ||
#include <wchar.h> | ||
#include <stdio.h> | ||
#include <algorithm> | ||
|
||
#include <windows.h> | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -768,7 +768,7 @@ class MSLAYOUT VMPTR_Base | |
// | ||
// Operators to emulate Pointer semantics. | ||
// | ||
bool IsNull() { SUPPORTS_DAC; return m_addr == NULL; } | ||
bool IsNull() { SUPPORTS_DAC; return m_addr == (TADDR)NULL; } | ||
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. It is more common to use 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. @jkoritzinsky can you please change this the way @jkotas suggested? |
||
|
||
static VMPTR_This NullPtr() | ||
{ | ||
|
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
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
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.
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.
I wonder if this was a compensation for the COMPILE_DEFINITIONS property that you have fixed based on my feedback. Or is this something else?
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.
The
get_source_file_property
was added to enable getting source-file-specific definitions. In particular, RC_INVOKED. The code your feedback was on was the pair to this line.