Skip to content
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

NativeAOT: remove some headers that are not needed #77042

Merged
merged 2 commits into from
Oct 17, 2022

Conversation

akoeplinger
Copy link
Member

Just a small cleanup.

@@ -15,9 +15,6 @@ endif()

list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_FILE_OFFSET_BITS=64)

check_include_files(sys/vmparam.h HAVE_SYS_VMPARAM_H)
check_include_files(mach/vm_types.h HAVE_MACH_VM_TYPES_H)
check_include_files(mach/vm_param.h HAVE_MACH_VM_PARAM_H)
Copy link
Member

@am11 am11 Oct 14, 2022

Choose a reason for hiding this comment

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

HAVE_PTHREAD_ATTR_GET_NP and HAVE_UCONTEXT_T are also unused.

Copy link
Member Author

@akoeplinger akoeplinger Oct 14, 2022

Choose a reason for hiding this comment

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

HAVE_PTHREAD_ATTR_GET_NP is used here https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp#L1116

I don't actually see where HAVE_UCONTEXT_T is being defined, but it is set to 1 somehow.

Copy link
Member

@am11 am11 Oct 14, 2022

Choose a reason for hiding this comment

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

HAVE_UCONTEXT_T is in config.h.in and check_type_size(ucontext_t UCONTEXT_T) in this file, which can be deleted.

Yes, HAVE_PTHREAD_ATTR_GET_NP is in use.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks!

@jkotas jkotas merged commit 59f14ac into dotnet:main Oct 17, 2022
@akoeplinger akoeplinger deleted the nativeaot-cleanup branch October 17, 2022 13:58
@ghost ghost locked as resolved and limited conversation to collaborators Nov 16, 2022
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.

3 participants