This is an archive of the discontinued LLVM Phabricator instance.

Add support for background thread on NetBSD in ASan
ClosedPublic

Authored by krytarowski on Dec 19 2018, 5:53 AM.

Details

Summary

Change the point of calling MaybeStartBackgroudThread() from AsanInitInternal()
that is too early on NetBSD to a constructor (with aid of C++11 lambda construct).

Enable the code for background thread as is for NetBSD.

Rename test/sanitizer_common/TestCases/Linux/hard_rss_limit_mb_test.cc
to test/sanitizer_common/TestCases/hard_rss_limit_mb_test.cc and allow runs
on NetBSD. This tests passes correctly.

Diff Detail

Event Timeline

krytarowski created this revision.Dec 19 2018, 5:53 AM
eugenis accepted this revision.Dec 28 2018, 3:35 PM
eugenis added a subscriber: eugenis.

LGTM

This should also fix https://github.com/google/sanitizers/issues/981 on Android O. Would you mind removing the UNSUPPORTED line from the test?

This revision is now accepted and ready to land.Dec 28 2018, 3:35 PM

LGTM

This should also fix https://github.com/google/sanitizers/issues/981 on Android O. Would you mind removing the UNSUPPORTED line from the test?

I will do it!

This revision was automatically updated to reflect the committed changes.
lib/sanitizer_common/sanitizer_common_libcdep.cc