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

darwin: use pointer offsets to access dirent fields with getdirentries64 #13

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

charlievieth
Copy link
Owner

This fixes the "converted pointer straddles multiple allocations" errors reported by the race-detector when using getdirentries64 on darwin by changing the dirent parsing logic to match that of golang.org/x/sys/unix.

This PR also more cleanly splits the readDir logic on darwin (getdirentries64 vs readdir_r).

This fixes the "converted pointer straddles multiple allocations" errors
reported by the race-detector when using getdirentries64 on darwin by
changing the dirent parsing logic to match that of golang.org/x/sys/unix.
@charlievieth charlievieth merged commit 596420e into master Apr 4, 2024
6 checks passed
@charlievieth charlievieth deleted the cev/darwin-getdirentries branch April 4, 2024 03:47
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.

1 participant