Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/asan/asan_interceptors.h | ||
---|---|---|
22 ↗ | (On Diff #108182) | I assume you disable entire things instead of particular interceptors, like other platforms, because Fuchsia does not need interceptors? Could you please note that in the code. |
lib/asan/asan_rtl.cc | ||
89 ↗ | (On Diff #108182) | Why not just SANITIZER_FUCHSIA |
342 ↗ | (On Diff #108182) | Maybe better to move some stuff into Same for other files |
lib/asan/asan_thread.cc | ||
234 ↗ | (On Diff #108182) | Could you please move this into fuchsia version of AsanThread::SetThreadStackAndTls() |
lib/asan/asan_interceptors.h | ||
---|---|---|
118 ↗ | (On Diff #108182) | It seems you can disable most of the file anyway. Do you really need InitializeAsanInterceptors if you don't have interceptors? |
I'll split this into smaller pieces.
lib/asan/asan_interceptors.h | ||
---|---|---|
118 ↗ | (On Diff #108182) | InitializeAsanInterceptors is called unconditionally from asan_rtl.cc and the norm in this code seems to be to write stub functions instead of conditionalizing the calls. The main thing I need is the ENSURE_ASAN_INITED macro, which is used by asan_interceptors_memintrinsics.h and by asan_malloc_linux.cc (both of which are used on Fuchsia). I'll move the preserved code to the top of the file if that's what you prefer. If it's to go in a different header, I'm not sure which one you'd want it in. I'll do it however I'm told. |
lib/asan/asan_thread.cc | ||
---|---|---|
234 ↗ | (On Diff #108182) | Currently I don't have such a function. It would have to have a different signature than the generic one so it can take the arguments passed to Init. |
lib/asan/asan_errors.cc | ||
---|---|---|
74 ↗ | (On Diff #109586) | Why you can't leave the current implementation? |
lib/asan/asan_rtl.cc | ||
370 ↗ | (On Diff #109586) | Please move into CL with thread API refactoring as well |
lib/asan/asan_shadow_setup.cc | ||
17 ↗ | (On Diff #109586) | Can I ask you to try later to move such full file "#if !SANITIZER_FUCHSIA ..." into cmake rules? |
lib/asan/asan_thread.cc | ||
273 ↗ | (On Diff #109586) | Please move API change and other thread code movements, without fucshia, into separate patch |
281 ↗ | (On Diff #109586) | Could you please put fuchsia version |
lib/asan/asan_errors.cc | ||
---|---|---|
74 ↗ | (On Diff #109586) | It's dead code already because Fuchsia doesn't have anything like signal handling (it would take a bunch of changes in generic code to get rid of the references to it in other dead code paths). Defining it would require me to define more functions of dead code just to satisfy its references (sanitizer::DescribeSignalOrException, sanitizer::SignalContext::DumpAllRegisters). But there is plenty of dead code cruft already and plenty of stub functions I've defined just because of all the dead code already. And reducing #if complexity is good. So I'll do that. |
lib/asan/asan_rtl.cc | ||
370 ↗ | (On Diff #109586) | Done in D36385. |
lib/asan/asan_shadow_setup.cc | ||
17 ↗ | (On Diff #109586) | That would be inconsistent with the rest of the code base. |
lib/asan/asan_thread.cc | ||
273 ↗ | (On Diff #109586) | Done in D36385. |
Split out D36385. Reduced number of #if's. Moved Fuchsia-specific implementations into asan_fuchsia.cc.
Rebased and ready to land once D36385 has landed.
Please land it for me!
Thanks,
Roland