We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e54e7 commit 7d4569aCopy full SHA for 7d4569a
jerry-core/mem/mem-heap.cpp
@@ -902,9 +902,12 @@ mem_heap_get_chunked_block_start (void *ptr) /**< pointer into a block */
902
JERRY_ASSERT (uintptr > uintptr_chunk_aligned);
903
904
mem_block_header_t *block_p = (mem_block_header_t *) uintptr_chunk_aligned;
905
- JERRY_ASSERT (block_p->length_type == mem_block_length_type_t::ONE_CHUNKED);
906
907
#ifndef JERRY_NDEBUG
+ VALGRIND_DEFINED_STRUCT (block_p);
908
+ JERRY_ASSERT (block_p->length_type == mem_block_length_type_t::ONE_CHUNKED);
909
+ VALGRIND_NOACCESS_STRUCT (block_p);
910
+
911
const mem_block_header_t *block_iter_p = mem_heap.first_block_p;
912
bool is_found = false;
913
0 commit comments