[Bug translator/7033] New: Optimize locking reginon of global variables

mhiramat at redhat dot com sourceware-bugzilla@sourceware.org
Fri Nov 14 23:27:00 GMT 2008


Currently, systemtap locks whole of a probe handler which uses global variables.
However, I think translator can shrink the locking region to the best size.

{ 
 (lock(a) and lock(b))
 ...
 a = xxx  <- only here, we actually needs a's lock.
 ...
 if (yyy)
   b = zzz <- only here, we actually needs b's lock.
 ...
 (unlock(a) and unlock(b))
}

-- 
           Summary: Optimize locking reginon of global variables
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mhiramat at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=7033

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Systemtap mailing list