Skip to content

fix: remove preadv2 optimization#88

Merged
petrochenkov merged 1 commit intorust-lang:mainfrom
weihanglo:preadv2
Apr 20, 2024
Merged

fix: remove preadv2 optimization#88
petrochenkov merged 1 commit intorust-lang:mainfrom
weihanglo:preadv2

Conversation

@weihanglo
Copy link
Copy Markdown
Member

This optimization has introduced many compatibility issues, so remove it for now until we find it worthy the investment.

See also

This optimization has introduced many compatibility issues,
so remove it for now until we find it worthy the investment.

See also

* <rust-lang/cc-rs#1039>
* <rust-lang#87>
@the8472
Copy link
Copy Markdown
Member

the8472 commented Apr 20, 2024

You can use libc::syscall(SYS_preadv2, ...) to invoke the function without direct glibc support. If the kernel doesn't support it you'll get ENOSYS as usual.

@weihanglo
Copy link
Copy Markdown
Member Author

Thanks! That sounds also correct, though I personally don't have time investing in it (also have less experience of that). Need somebody else to work on that route.

@ofek
Copy link
Copy Markdown

ofek commented Apr 20, 2024

If it's not a one or two line change then I agree that we should revert for now to fix builds. I would be interested in the syscall change however because that seems simple but I'm not familiar with the code base.

@petrochenkov petrochenkov merged commit 66782f5 into rust-lang:main Apr 20, 2024
@ofek
Copy link
Copy Markdown

ofek commented Apr 21, 2024

When might this be released?

@NobodyXu
Copy link
Copy Markdown
Contributor

I've asked @petrochenkov to do so on zulip, only they have the right to publish a new release

@weihanglo weihanglo deleted the preadv2 branch April 21, 2024 03:52
joseluisq added a commit to static-web-server/static-web-server that referenced this pull request Apr 21, 2024
due to builds issues as reported on rust-lang/jobserver-rs#87
this workaround can be removed once rust-lang/jobserver-rs#88 is released
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.

5 participants