diff options
author | Ian Rogers <irogers@google.com> | 2014-06-05 20:48:42 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-06-10 23:19:29 -0700 |
commit | c5f17732d8144491c642776b6b48c85dfadf4b52 (patch) | |
tree | 811daa488ae5ee5dfd9b3b73bd210bc1506e5ca1 /compiler | |
parent | 08654d40cdd256f6a6c8619bf06d04d4c819714a (diff) | |
download | art-c5f17732d8144491c642776b6b48c85dfadf4b52.tar.gz art-c5f17732d8144491c642776b6b48c85dfadf4b52.tar.bz2 art-c5f17732d8144491c642776b6b48c85dfadf4b52.zip |
Remove deprecated WITH_HOST_DALVIK.
Bug: 13751317
Fix the Mac build:
- disable x86 selector removal that causes OS/X 10.9 kernel panics,
- madvise don't need does zero memory on the Mac, factor into MemMap
routine,
- switch to the elf.h in elfutils to avoid Linux kernel dependencies,
- we can't rely on exclusive_owner_ being available from other pthread
libraries so maintain our own when futexes aren't available (we
can't rely on the OS/X 10.8 hack any more),
- fix symbol naming in assembly code,
- work around C library differences,
- disable backtrace in DumpNativeStack to avoid a broken libbacktrace
dependency,
- disable main thread signal handling logic,
- align the stack in stub_test,
- use $(HOST_SHLIB_SUFFIX) rather than .so in host make file variables.
Not all host tests are passing on the Mac with this change. dex2oat
works as does running HelloWorld.
Change-Id: I5a232aedfb2028524d49daa6397a8e60f3ee40d3
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/Android.mk | 14 | ||||
-rw-r--r-- | compiler/utils/arena_allocator.cc | 2 |
2 files changed, 7 insertions, 9 deletions
diff --git a/compiler/Android.mk b/compiler/Android.mk index 3cf7368a51..9a868fcd79 100644 --- a/compiler/Android.mk +++ b/compiler/Android.mk @@ -273,14 +273,12 @@ $$(ENUM_OPERATOR_OUT_GEN): $$(GENERATED_SRC_DIR)/%_operator_out.cc : $(LOCAL_PAT endef -ifeq ($(WITH_HOST_DALVIK),true) - # We always build dex2oat and dependencies, even if the host build is otherwise disabled, since they are used to cross compile for the target. - ifeq ($(ART_BUILD_NDEBUG),true) - $(eval $(call build-libart-compiler,host,ndebug)) - endif - ifeq ($(ART_BUILD_DEBUG),true) - $(eval $(call build-libart-compiler,host,debug)) - endif +# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since they are used to cross compile for the target. +ifeq ($(ART_BUILD_NDEBUG),true) + $(eval $(call build-libart-compiler,host,ndebug)) +endif +ifeq ($(ART_BUILD_DEBUG),true) + $(eval $(call build-libart-compiler,host,debug)) endif ifeq ($(ART_BUILD_TARGET_NDEBUG),true) $(eval $(call build-libart-compiler,target,ndebug)) diff --git a/compiler/utils/arena_allocator.cc b/compiler/utils/arena_allocator.cc index 6a39641f38..925d4a287a 100644 --- a/compiler/utils/arena_allocator.cc +++ b/compiler/utils/arena_allocator.cc @@ -139,7 +139,7 @@ void Arena::Reset() { if (kUseMemSet || !kUseMemMap) { memset(Begin(), 0, bytes_allocated_); } else { - madvise(Begin(), bytes_allocated_, MADV_DONTNEED); + map_->MadviseDontNeedAndZero(); } bytes_allocated_ = 0; } |