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

test uv_barrier_t size in right block #36

Closed
wants to merge 1 commit into from
Closed

test uv_barrier_t size in right block #36

wants to merge 1 commit into from

Conversation

semarie
Copy link

@semarie semarie commented Feb 12, 2024

the local uv_barrier_t implementation is used: for AIX, OpenBSD and any system not defining PTHREAD_BARRIER_SERIAL_THREAD.

as the uv_barrier_t struct was modified and it isn't a pointer anymore, the check for uv_barrier_t size isn't right anymore for systems not using local uv_barrier_t implementation. so move the check inside the block implementing uv_barrier_t using pthread_barrier_t.

tested on OpenBSD, where the build failed due to the STATIC_ASSERT().

Cherry-pick #35 for the master branch.

@semarie
Copy link
Author

semarie commented Feb 12, 2024

@vtjnash now I have a doubt. you were speaking about the master branch here ? or the master branch in upstream ?

the local uv_barrier_t implementation is used: for AIX, OpenBSD and any system
not defining PTHREAD_BARRIER_SERIAL_THREAD.

as the uv_barrier_t struct was modified and it isn't a pointer anymore, the
check for uv_barrier_t size isn't right anymore for systems not using local
uv_barrier_t implementation. so move the check inside the block implementing
uv_barrier_t using pthread_barrier_t.

tested on OpenBSD, where the build failed due to the STATIC_ASSERT().
@semarie semarie closed this Feb 12, 2024
@semarie semarie deleted the uv_barrier_t-internal-master branch February 12, 2024 05:44
@semarie semarie restored the uv_barrier_t-internal-master branch February 12, 2024 05:44
@semarie semarie deleted the uv_barrier_t-internal-master branch February 12, 2024 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant