This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add extra lock tracing to threads::shared
authorTony Cook <tony@develop-help.com>
Wed, 27 Feb 2019 01:01:12 +0000 (12:01 +1100)
committerTony Cook <tony@develop-help.com>
Thu, 7 Mar 2019 23:36:13 +0000 (10:36 +1100)
commitd22170b0f355b196776681a081a50e5d7a7520cf
treef7c272ab0451400e2fa1f0905b96ba25a83ac746
parent534636494a1e2160ed87b0b7531ddb162be85b6e
add extra lock tracing to threads::shared

This was useful in tracing the cause for the deadlock in #124203.

This can be enabled during a build of perl by adding:

  -Accflags=-DSHARED_TRACE_LOCKS -DDEBUGGING

to the Configure command-line.

To see the trace at run-time add -DU or -DUv to the perl command-line.

The original DEBUG_LOCKS tracing using warn caused extra calls
confusing back traces when trying to debug this problem.
dist/threads-shared/shared.xs