[Bug translator/26296] delay script-global locking until required
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Aug 4 19:59:22 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=26296
--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> ---
> Even an explicit construct that scopes locking would be handy. Borrow from
> Java's "synchronized" perhaps.
If one can come up with easy-to-explain, implementable, safe
semantics, yeah perhaps!
> global targets_map;
>
> probe process("foo").mark("some_probe_point") {
> if (pid() in targets_map) {
> kdelay(100000);
> }
> }
In this example, you need the dual of the subject feature:
release of locks as early as possible.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list