Fix valgrind false-positive warning in mem_heap_get_chunked_block_start.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-06-19 16:54:22 +03:00
parent a4e54e736e
commit 7d4569a6ff
+4 -1
View File
@@ -902,9 +902,12 @@ mem_heap_get_chunked_block_start (void *ptr) /**< pointer into a block */
JERRY_ASSERT (uintptr > uintptr_chunk_aligned);
mem_block_header_t *block_p = (mem_block_header_t *) uintptr_chunk_aligned;
JERRY_ASSERT (block_p->length_type == mem_block_length_type_t::ONE_CHUNKED);
#ifndef JERRY_NDEBUG
VALGRIND_DEFINED_STRUCT (block_p);
JERRY_ASSERT (block_p->length_type == mem_block_length_type_t::ONE_CHUNKED);
VALGRIND_NOACCESS_STRUCT (block_p);
const mem_block_header_t *block_iter_p = mem_heap.first_block_p;
bool is_found = false;