lockstat Provider

compared with
Current by ckiick
on Feb 28, 2008 13:41.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View page history
|{{adaptive-acquire}}|Hold-event probe that fires immediately after an adaptive lock is acquired.|
|{{adaptive-block}}|Contention-event probe that fires after a thread that has blocked on a held adaptive mutex has reawakened and has acquired the mutex. If both probes are enabled, {{adaptive-block}} fires _before_ {{adaptive-acquire}}. At most one of {{adaptive-block}} and {{adaptive-spin}} will fire for a single lock acquisition. {{arg1}} for {{adaptive-block}} contains the sleep time in nanoseconds.|
|{{adaptive-spin}}|Contention-event probe that fires after a thread that has spun on a held adaptive mutex has successfully acquired the mutex. If both are enabled, {{adaptive-spin}} fires _before_ {{adaptive-acquire}}. At most one of {{adaptive-spin}} and {{adaptive-block}} will fire for a single lock acquisition. {{arg1}} for {{adaptive-spin}} contains the _spin count_: the number of iterations that were taken through the spin loop before the lock was acquired. The spin count has little meaning on its own, but can be used to compare spin times.|
|{{adaptive-spin}}|Contention-event probe that fires after a thread that has spun on a held adaptive mutex has successfully acquired the mutex. If both are enabled, {{adaptive-spin}} fires _before_ {{adaptive-acquire}}. At most one of {{adaptive-spin}} and {{adaptive-block}} will fire for a single lock acquisition. {{arg1}} for {{adaptive-spin}} contains the _spin time_: the number of nanoseconds that were spent in the spin loop before the lock was acquired.|
|{{adaptive-release}}|Hold-event probe that fires immediately after an adaptive lock is released.|
h6. {anchor:TBL-SPIN} Spin Lock Probes
|{{spin-acquire}}|Hold-event probe that fires immediately after a spin lock is acquired.|
|{{spin-spin}}|Contention-event probe that fires after a thread that has spun on a held spin lock has successfully acquired the spin lock. If both are enabled, {{spin-spin}} fires _before_ {{spin-acquire}}. {{arg1}} for {{spin-spin}} contains the _spin count_: the number of iterations that were taken through the spin loop before the lock was acquired. The spin count has little meaning on its own, but can be used to compare spin times.|
|{{spin-spin}}|Contention-event probe that fires after a thread that has spun on a held spin lock has successfully acquired the spin lock. If both are enabled, {{spin-spin}} fires _before_ {{spin-acquire}}. {{arg1}} for {{spin-spin}} contains the _spin time_: the number of nanoseconds that were spent in the spin loop before the lock was acquired.|
|{{spin-release}}|Hold-event probe that fires immediately after a spin lock is released.|
Adaptive locks are much more common than spin locks. The following script displays totals for both lock types to provide data to support this observation.

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact