|
From: Jeremy F. <je...@go...> - 2005-02-24 08:09:30
|
Greg Parker wrote:
>On some architectures (e.g. Mac OS X on PowerPC) you need to
>scan registers other than the general-purpose ones. If you catch
>optimized, unrolled memmove() at the wrong point, a floating-point
>or vector register could contain the only extant copy of a pointer
>value. You'd have to be pretty unlucky to hit this while using
>Valgrind's leak check, so it may not be worth worrying about.
>
>
Sounds a bit unlikely. It would be tricky because you'd have to chop
the vector up into pointer-sized chunks and inspect each of them.
We also intercept mem*(), so they'd have to be using something fairly
specialized (or inlined).
>Something in Valgrind would need to know which architecture
>registers might hold pointer values. I don't know whether it
>should be the core or the tool, though.
>
>
It seems to me like it should be part of the core arch code. The
question "which registers might contain pointers?" doesn't seem like it
has a tool-specific answer.
J
|