Skip to content

Fix valgrind false-positive warning in mem_heap_get_chunked_block_start #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2015

Conversation

ruben-ayrapetyan
Copy link
Contributor

No description provided.

@ruben-ayrapetyan ruben-ayrapetyan added bug Undesired behaviour normal memory management Related to memory management or garbage collection labels Jun 19, 2015
@ruben-ayrapetyan ruben-ayrapetyan added this to the Core ECMA features milestone Jun 19, 2015
@ruben-ayrapetyan
Copy link
Contributor Author

@galpeter, could you, please, review the change?

@galpeter
Copy link
Contributor

Well. I don't really know the valgrind's macros so I'll just assume that it is correct :)

@ruben-ayrapetyan
Copy link
Contributor Author

@galpeter,
the VALGRIND_DEFINED_STRUCT just says to valgrind "from the moment the structure can be accessed and data is initialized", and VALGRIND_NOACCESS_STRUCT says "from the moment the structure can not be accessed".

Marking access with the macro, we provide access to heap-internal structures only to mem_heap component.

@galpeter
Copy link
Contributor

@ruben-ayrapetyan I see, thanks for the information. With this extra info it really does make sense.

@ruben-ayrapetyan
Copy link
Contributor Author

@galpeter, ok. thank you for review.

@egavrin
Copy link
Contributor

egavrin commented Jun 19, 2015

make push

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour memory management Related to memory management or garbage collection normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants