finding fast_cwd_pointer on ARM64
Jeremy Drake
cygwin@jdrake.com
Tue Dec 3 21:01:05 GMT 2024
On Fri, 29 Nov 2024, Corinna Vinschen wrote:
> On Nov 27 14:04, Jeremy Drake via Cygwin-patches wrote:
> > https://gist.github.com/jeremyd2019/aa167df0a0ae422fa6ebaea5b60c80c9
>
> Nice! If you feel confident to merge something like this into
> Cygwin, feel free to send patches.
I've found a little time to add in the additional checking that I noticed
in the path.cc code for x64 (make sure the load of the RtlpCurDirRef is
followed immediately by a NULL check, and that it is preceded by a call to
RtlEnterCriticalSection with the FastPebLock as its parameter). I tested
this on Windows builds 16299 (the oldest version I could easily figure out
how to pull from uupdump), 19045, 22631, and 26100 for arm64, x32 and x64
(where possible).
I don't know when or if I'll have time to try to integrate this into
Cygwin, but I've updated the gist (and you can see revision history
there) and also attached the latest version for the mailing list archives
if somebody else wants to.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_fast_cwd_arm.c
Type: text/x-c
Size: 6633 bytes
Desc:
URL: <https://cygwin.com/pipermail/cygwin-patches/attachments/20241203/83a47965/attachment.bin>
More information about the Cygwin-patches
mailing list