Fix valgrind false-positive warning in mem_heap_get_chunked_block_start.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
This commit is contained in:
1 parent
a4e54e736e
commit
7d4569a6ff
1 file changed
+4
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user