|
From: Julian S. <js...@ac...> - 2005-03-04 15:31:40
|
> Arguably the bigger problem is when Joe Programmer allocates a 2MB array > on the stack and Memcheck gives him a zillion invalid read/write errors > because it thinks he switched stacks. I think we should slant things in > favour of him, rather than the person using stack-switching -- they > presumably know what they're doing, so making them use a client request > seems not unreasonable. > > So I'd suggest implementing the client request as Jeremy says, and then > tweaking the heuristic so that the %esp-delta has to be substantially > bigger (say, 8MB) before Memcheck assumes it's a stack-switch. And add a > FAQ about it. Yes, I agree. But (1) not for 2.4.0, and (2) how does this client request work? The client request needs to happen atomically with the new assignment to the stack pointer; I don't see how that can happen. J |