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

ARTEMIS-3271 Improve Critical Analyzer to sample single therads #3557

Merged
merged 1 commit into from Apr 28, 2021

Conversation

clebertsuconic
Copy link
Contributor

No description provided.

@clebertsuconic clebertsuconic changed the title @clebertsuconic ARTEMIS-3271 Improve Critical Analyzer to sample single therads ARTEMIS-3271 Improve Critical Analyzer to sample single therads Apr 27, 2021
@clebertsuconic clebertsuconic force-pushed the thread-check branch 11 times, most recently from c0e3b70 to 0282e9c Compare April 28, 2021 03:04
worked in collaboration with Gary Tully on this fix
@gtully
Copy link
Contributor

gtully commented Apr 28, 2021

looks good. the test captures the failure nicely. I guess the sampling is not unlike the current behaviour where multiple threads can modify the state. At least now there won't be any false positives.
also good that we are down to a single value to update for a single thread. nice.

@gtully
Copy link
Contributor

gtully commented Apr 28, 2021

Thinking out loud, if we want to improve on sampling, and check every thread enter/exit, some sort of xor of the thread id and the analyser doing mark (to capture the current bit mask) and sweep if it has not changed since the mark, could work without recourse to tracking nanno time. Something for the future maybe.

@clebertsuconic
Copy link
Contributor Author

I don't think we need to check on every thread. I was just checking around, and most uses are OK for this.

@gtully gtully merged commit 39f4684 into apache:main Apr 28, 2021
@clebertsuconic clebertsuconic deleted the thread-check branch April 28, 2021 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants