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

use lockless sequence in itimer signal handler #597

Open
derekbruening opened this issue Nov 28, 2014 · 2 comments
Open

use lockless sequence in itimer signal handler #597

derekbruening opened this issue Nov 28, 2014 · 2 comments

Comments

@derekbruening
Copy link
Contributor

From [email protected] on November 01, 2011 17:09:05

xref Dr. Memory issue #626

currently the alarm handler tries to grab a lock to avoid clobbering
a change to the time-left counter on an interval change by another thread.

also, it currently continues even when it can't get the lock after 2 tries:
which perhaps should be re-thought, but that's orthogonal to the main point
of this issue, which is to come up with a lockless protocol for updating
the multiplexing timer state.

idea: count up and mod to avoid having to reset?
need to figure out how to handle intervals w/o a simple common factor
though.

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=597

@derekbruening
Copy link
Contributor Author

Xref #2061

@derekbruening
Copy link
Contributor Author

Xref #2993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant