ART: Allow dex2oat sanitization
Reverts commit c2f0474b90ee62fce1e538bfbfde4a609885b258.
Reverts commit 07407cd082033b72c953cbef37feb98cbd8a1b61.
The original commit was made when builds were not preopted by
default, so that dex2oat was speed-compiling everything on first
boot.
Bug: 22233158
Bug: 29188876
Test: m
Test: SANITIZE_TARGET=address m
Test: First boot is acceptable (tested on Pixel)
Change-Id: I52a334c7fe927f78bf8049208e5654e0aa86dbc9
diff --git a/dex2oat/Android.bp b/dex2oat/Android.bp
index 346f5a7..0d453ef 100644
--- a/dex2oat/Android.bp
+++ b/dex2oat/Android.bp
@@ -30,15 +30,6 @@
android: {
// Use the 32-bit version of dex2oat on devices
compile_multilib: "prefer32",
-
- sanitize: {
- // ASan slows down dex2oat by ~3.5x, which translates into
- // extremely slow first boot. Disabled to help speed up
- // SANITIZE_TARGET mode.
- // Bug: 22233158
- address: false,
- coverage: false,
- },
},
},