Skip to content

Commit

Permalink
Set TARGET_ARCH_LOWMEM to reduce Dalvik heap memory usage
Browse files Browse the repository at this point in the history
See
CyanogenMod/android_dalvik@15726c8
for details.

Change-Id: I3623a0a0fd94df37806d14ceee42af95d15b2a90
  • Loading branch information
steven676 committed Sep 8, 2013
1 parent cc93c70 commit 87b1570
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BoardConfig.mk
Expand Up @@ -51,6 +51,10 @@ ifdef OMAP_ENHANCEMENT
COMMON_GLOBAL_CFLAGS += -DOMAP_ENHANCEMENT -DTARGET_OMAP3 -DOMAP_ENHANCEMENT_CPCAM -DOMAP_ENHANCEMENT_VTC
endif

# Conserve memory in the Dalvik heap
# Details: https://github.com/CyanogenMod/android_dalvik/commit/15726c81059b74bf2352db29a3decfc4ea9c1428
TARGET_ARCH_LOWMEM := true

# for frameworks/native/libs/gui
# disable use of EGL_KHR_fence_sync extension, since it slows things down
COMMON_GLOBAL_CFLAGS += -DDONT_USE_FENCE_SYNC
Expand Down

0 comments on commit 87b1570

Please sign in to comment.