PATCH: writejump() self modifying code needs to inform valgrind of change

Adam Gundy arg at cyberscience.com
Thu May 8 09:16:24 CDT 2003


Any self modifying code needs to tell valgrind which piece of code has been
modified.

The attached patch makes writejump() in scheduler/sysdeps.c do this.

Currently the code works OK under valgrind, since it is only used for trapping the
__errno_location functions, which haven't yet been called (so they have not been
JITted).


Seeya,
 Adam
--
Real Programmers don't comment their code. If it was hard to write,
it should be hard to read, and even harder to modify.
These are all my own opinions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-selfmodify.pat
Type: application/octet-stream
Size: 774 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030508/5da3d6f0/wine-selfmodify.obj


More information about the wine-patches mailing list