Update memory-related defines
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
This commit is contained in:
@@ -74,10 +74,10 @@ project (JerryCore C ASM)
|
|||||||
|
|
||||||
# Memory management stress-test mode
|
# Memory management stress-test mode
|
||||||
set(DEFINES_MEM_STRESS_TEST
|
set(DEFINES_MEM_STRESS_TEST
|
||||||
MEM_GC_BEFORE_EACH_ALLOC)
|
JMEM_GC_BEFORE_EACH_ALLOC)
|
||||||
|
|
||||||
# Memory statistics
|
# Memory statistics
|
||||||
set(DEFINES_MEMORY_STATISTICS MEM_STATS)
|
set(DEFINES_MEMORY_STATISTICS JMEM_STATS)
|
||||||
|
|
||||||
# Valgrind
|
# Valgrind
|
||||||
set(DEFINES_JERRY_VALGRIND JERRY_VALGRIND)
|
set(DEFINES_JERRY_VALGRIND JERRY_VALGRIND)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ function is_mem_stats_build
|
|||||||
[ -x "$1" ] || fail_msg "Engine '$1' is not executable"
|
[ -x "$1" ] || fail_msg "Engine '$1' is not executable"
|
||||||
|
|
||||||
tmpfile=`mktemp`
|
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=$?
|
code=$?
|
||||||
rm $tmpfile
|
rm $tmpfile
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function is_mem_stats_build() {
|
|||||||
[ -x "$1" ] || fail_msg "Engine '$1' is not executable"
|
[ -x "$1" ] || fail_msg "Engine '$1' is not executable"
|
||||||
|
|
||||||
tmpfile=`mktemp`
|
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=$?
|
code=$?
|
||||||
rm $tmpfile
|
rm $tmpfile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user