diff options
author | 2019-07-04 10:11:55 +0100 | |
---|---|---|
committer | 2019-07-04 15:26:23 +0000 | |
commit | ab682a78d9e61a37cc87d751a0c4d80856a44b7f (patch) | |
tree | b38c97bbc41ec9aae03f68eace058fa1338037d6 | |
parent | e6cb9710affda5e1560aa81b32ad93caf40de32a (diff) |
Blind fix for fixing 689-zygote-jit-deopt on host bionic.
Bug: 136724968
Change-Id: Icfab0233407955b7a859f7e5c2c59ce36e97af46
-rw-r--r-- | runtime/jit/jit_memory_region.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/jit/jit_memory_region.cc b/runtime/jit/jit_memory_region.cc index d2d8f7c429..dba2768d89 100644 --- a/runtime/jit/jit_memory_region.cc +++ b/runtime/jit/jit_memory_region.cc @@ -484,7 +484,8 @@ void JitMemoryRegion::FreeData(uint8_t* data) { mspace_free(data_mspace_, data); } -#if defined(__BIONIC__) +#if defined(__BIONIC__) && defined(ART_TARGET) +// The code below only works on bionic on target. int JitMemoryRegion::CreateZygoteMemory(size_t capacity, std::string* error_msg) { /* Check if kernel support exists, otherwise fall back to ashmem */ |