OSDN Git Service

Revert "Workaround alloc-dealloc-mismatch error on ASan device boot."
authorEvgenii Stepanov <eugenis@google.com>
Wed, 14 Sep 2016 00:50:46 +0000 (00:50 +0000)
committerEvgenii Stepanov <eugenis@google.com>
Fri, 11 Nov 2016 23:19:20 +0000 (15:19 -0800)
This reverts commit 22819276b147e34a80e8ca696be5b3fda68764b9.

The underlying kernel bug has been fixed.

Test: SANITIZE_TARGET=address build should continue working

Change-Id: I6f3938047d9f60357e7bd9bccd3ef36d7686c73b

services/surfaceflinger/SurfaceFlinger.cpp

index 47f5401..dd5b034 100644 (file)
 
 EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name);
 
-// Workaround for b/30067360: /proc/self/environ inaccessible in SurfaceFlinger
-// => ASan fails to read ASAN_OPTIONS => alloc-dealloc-mismatch bug is not
-// suppressed and prevents the device from booting.
-#ifndef __has_feature
-#define __has_feature(x) 0
-#endif
-#if __has_feature(address_sanitizer)
-__attribute__((visibility("default")))
-extern "C" const char* __asan_default_options() {
-  return "alloc_dealloc_mismatch=0";
-}
-#endif
-
 namespace android {
 
 // This is the phase offset in nanoseconds of the software vsync event