http://codereview.appspot.com/5702060/diff/1/asan_interceptors.cc File asan_interceptors.cc (right): http://codereview.appspot.com/5702060/diff/1/asan_interceptors.cc#newcode623 asan_interceptors.cc:623: if (GetOSVersion() == MACOS_LION) { Do you have any ...
12 years, 11 months ago
(2012-02-29 15:31:51 UTC)
#2
http://codereview.appspot.com/5702060/diff/1/asan_interceptors.cc File asan_interceptors.cc (right): http://codereview.appspot.com/5702060/diff/1/asan_interceptors.cc#newcode623 asan_interceptors.cc:623: if (GetOSVersion() == MACOS_LION) { On 2012/02/29 15:31:51, kcc1 ...
12 years, 11 months ago
(2012-02-29 21:04:49 UTC)
#3
http://codereview.appspot.com/5702060/diff/1/asan_interceptors.cc
File asan_interceptors.cc (right):
http://codereview.appspot.com/5702060/diff/1/asan_interceptors.cc#newcode623
asan_interceptors.cc:623: if (GetOSVersion() == MACOS_LION) {
On 2012/02/29 15:31:51, kcc1 wrote:
> Do you have any other reason for this function except for this if statement?
Yes, it probably helps to flatten code, remove some ifdefs in favor of ifs. I
don't like the idea of OS-specific functions and headers (we currently have
asan_mac.h, we may get rid of it this way).
> For this statement, I would prefer something like
> if (PlatformHasDifferentMemcpyAndMemmove)
I think we may end up with too much flags/functions of that kind.
if (PlatformNeedsGetPcSpBp)?
>
>
> BTW, Maybe it's better to implement internal_memcpy?
> (It will have to be highly performant)
Why do we need this? Not a problem, of course.
> > For this statement, I would prefer something like > > if (PlatformHasDifferentMemcpyAndMemmove) > ...
12 years, 11 months ago
(2012-03-01 23:24:28 UTC)
#4
> > For this statement, I would prefer something like
> > if (PlatformHasDifferentMemcpyAndMemmove)
> I think we may end up with too much flags/functions of that kind.
> if (PlatformNeedsGetPcSpBp)?
I see no problem with this.
> >
> >
> > BTW, Maybe it's better to implement internal_memcpy?
> > (It will have to be highly performant)
> Why do we need this? Not a problem, of course.
Maybe we don't need it.
Issue 5702060: AddressSanitizer: Make GetOSVersion available on all platforms
(Closed)
Created 12 years, 11 months ago by samsonov
Modified 12 years, 10 months ago
Reviewers: timurrrr_at_google_com, kcc, ramosian.glider, kcc1
Base URL: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/asan/
Comments: 2