From 9f29cc168d0355a4a66ef354b80c35746811918a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Borb=C3=A9ly?= Date: Sun, 22 May 2016 23:19:10 +0200 Subject: [PATCH] Update memory-related defines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set the correct defines in CMakeLists.txt and update another occurrences in scripts. JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com --- jerry-core/CMakeLists.txt | 8 ++++---- tools/run-mem-stats-test.sh | 2 +- tools/run-perf-test.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jerry-core/CMakeLists.txt b/jerry-core/CMakeLists.txt index 845ba25af..eeb67f55a 100644 --- a/jerry-core/CMakeLists.txt +++ b/jerry-core/CMakeLists.txt @@ -72,12 +72,12 @@ project (JerryCore C ASM) CONFIG_ECMA_COMPACT_PROFILE_DISABLE_MATH_BUILTIN CONFIG_ECMA_COMPACT_PROFILE_DISABLE_JSON_BUILTIN) - # Memory management stress-test mode - set(DEFINES_MEM_STRESS_TEST - MEM_GC_BEFORE_EACH_ALLOC) + # Memory management stress-test mode + set(DEFINES_MEM_STRESS_TEST + JMEM_GC_BEFORE_EACH_ALLOC) # Memory statistics - set(DEFINES_MEMORY_STATISTICS MEM_STATS) + set(DEFINES_MEMORY_STATISTICS JMEM_STATS) # Valgrind set(DEFINES_JERRY_VALGRIND JERRY_VALGRIND) diff --git a/tools/run-mem-stats-test.sh b/tools/run-mem-stats-test.sh index 95566168a..487051073 100755 --- a/tools/run-mem-stats-test.sh +++ b/tools/run-mem-stats-test.sh @@ -43,7 +43,7 @@ function is_mem_stats_build [ -x "$1" ] || fail_msg "Engine '$1' is not executable" tmpfile=`mktemp` - "$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring memory statistics option because of '!MEM_STATS' build configuration." 2>&1 > /dev/null + "$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring memory statistics option because of '!JMEM_STATS' build configuration." 2>&1 > /dev/null code=$? rm $tmpfile diff --git a/tools/run-perf-test.sh b/tools/run-perf-test.sh index 49515a5db..8de192b56 100755 --- a/tools/run-perf-test.sh +++ b/tools/run-perf-test.sh @@ -32,7 +32,7 @@ function is_mem_stats_build() { [ -x "$1" ] || fail_msg "Engine '$1' is not executable" tmpfile=`mktemp` - "$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring memory statistics option because of '!MEM_STATS' build configuration." 2>&1 > /dev/null + "$1" --mem-stats $tmpfile 2>&1 | grep -- "Ignoring memory statistics option because of '!JMEM_STATS' build configuration." 2>&1 > /dev/null code=$? rm $tmpfile