-
Notifications
You must be signed in to change notification settings - Fork 5k
Simplify 64-bit platform conditions #115083
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
Conversation
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Also, runtime/src/coreclr/debug/daccess/fntableaccess.h Lines 33 to 39 in 54dbfa7
#if defined(TARGET_64BIT) && defined(TARGET_WINDOWS) too.
|
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
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.
Thank you!
src/coreclr/vm/dynamicmethod.cpp
Outdated
@@ -448,7 +443,7 @@ HeapList* HostCodeHeap::InitializeHeapList(CodeHeapRequestInfo *pInfo) | |||
else | |||
#endif // FEATURE_INTERPRETER | |||
{ | |||
#if defined(TARGET_AMD64) || defined(TARGET_ARM64) || defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64) | |||
#if defined(TARGET_64BIT) && defined(TARGET_WINDOWS) |
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 (pInfo->IsInterpreted())
block needs to be moved inside this ifdef to fix the build break
src/coreclr/vm/jitinterface.cpp
Outdated
|
||
#elif defined(TARGET_AMD64) | ||
|
||
#if defined(TARGET_64BIT) && defined(TARGET_WINDOWS) |
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 defined(TARGET_64BIT) && defined(TARGET_WINDOWS) | |
#if !defined(TARGET_X86) && defined(TARGET_WINDOWS) |
This would be more logical ifdef for this one.
Also, reservePersonalityRoutineSpace
above can be wrapped with the same ifdef now that we are not filling in the personality routine on non-Windows.
// Note that the count of unwind codes (2 bytes each) is stored as a UBYTE | ||
// So the largest size could be 510 bytes, plus the header and language | ||
// specific stuff. This can't overflow. | ||
|
||
_ASSERTE(FitsInU4(unwindSize + sizeof(ULONG))); | ||
unwindSize = (ULONG)(ALIGN_UP(unwindSize, sizeof(ULONG))); |
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.
There are asserts elsewhere that insist on the unwind info to be 4-byte aligned. I am not sure why it is needed on Amd64. It is not a big deal to preserve the alignment.
A few conditions which no longer need the full list of architectures.