[Gd-chatter] [Bug 6998] correctness of callback functions on OSX

bugzilla-daemon at gwydiondylan.org bugzilla-daemon at gwydiondylan.org
Sat Jan 6 02:36:03 CET 2007


http://www.gwydiondylan.org/cgi-bin/bugzilla/show_bug.cgi?id=6998





------- Comment #6 from bruce at hoult.org  2007-01-06 02:36 -------
What do you mean by that?  Some sort of readable+writeable but not executable
flags in the page table?

If something like that is enabled (and exists on the CPU in the first place)
that's not going to cause some sort of subtle correctness bug -- it's going to
crash first time, every time.  You'd know if it was happening!

It's also going to cause a trip into the OS and back.  We do *not* want that in
the path every single time you call a foreign function with a callback function
argument!  If we're faced with that on some platform then we should allocate
entire pages at a time for use as callback thunks, and execute-enable them in
advance.


-- 
Configure bugmail: http://www.gwydiondylan.org/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the chatter mailing list