Skip to content

Conversation

@akoeplinger
Copy link
Member

Just a small cleanup.


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

@akoeplinger akoeplinger requested a review from jkotas October 17, 2022 09:29
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