Skip to content

Add some asserts to check heap structure consistency #1024

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
Apr 22, 2016

Conversation

dbatyai
Copy link
Member

@dbatyai dbatyai commented Apr 21, 2016

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu

@dbatyai dbatyai added minor memory management Related to memory management or garbage collection labels Apr 21, 2016
@dbatyai
Copy link
Member Author

dbatyai commented Apr 21, 2016

Currently if the structure gets corrupted for some reason, it can produce strange errors in different places, which can be hard to debug. These asserts should help with this.

@dbatyai dbatyai force-pushed the check_heap_consistency branch from f2dac0b to 88ae4fe Compare April 21, 2016 14:02
@kkristof
Copy link
Contributor

Looks good to me

@akosthekiss
Copy link
Member

LGTM FWIW

@LaszloLango
Copy link
Contributor

LGTM

1 similar comment
@zherczeg
Copy link
Member

LGTM

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
@dbatyai dbatyai force-pushed the check_heap_consistency branch from 88ae4fe to 3203613 Compare April 22, 2016 11:59
@dbatyai dbatyai merged commit 3203613 into jerryscript-project:master Apr 22, 2016
@dbatyai dbatyai deleted the check_heap_consistency branch May 31, 2016 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory management Related to memory management or garbage collection minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants