Skip to content
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

Add extreme assertion for barrier slow path calls #833

Merged
merged 7 commits into from
May 26, 2023

Conversation

ArberSephirotheca
Copy link
Contributor

@ArberSephirotheca ArberSephirotheca commented May 25, 2023

Close #685

mmtk-core/ChangeLog:
        * src/plan/barrier.rs: add extreme assertion to check valid object bit in slow path.
	* vmbindings/dummyvm/src/tests/assertion_barrier.rs: add unit test for new changes.
	* vmbindings/dummyvm/src/tests/mod.rs: add unit test for new changes.

I am not quite sure if more extreme assertions are needed, so please suggest any places where we can add assertions for an easier debugging experience.

        * src/plan/barrier.rs: add extreme assertion to check valid object bit in slow path.
	* vmbindings/dummyvm/src/tests/assertion_barrier.rs: add unit test for new changes.
	* vmbindings/dummyvm/src/tests/mod.rs: add unit test for new changes.

Signed-off-by: Zheyuan Chen <sephirotheca17@gmail.com>
src/plan/barriers.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@k-sareen k-sareen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@k-sareen k-sareen merged commit c5a20c0 into mmtk:master May 26, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding extreme assertions for barrier slow path calls
3 participants