[llvm-bugs] [Bug 45072] New: NamedRegionTimer is not thread safe
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Mar 1 14:37:07 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=45072
Bug ID: 45072
Summary: NamedRegionTimer is not thread safe
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: tomasz.miasko at gmail.com
CC: llvm-bugs at lists.llvm.org
The NamedRegionTimer obtains a timer instance from NamedRegionTimers global,
which keeps a single timer per timer name and timer group name. Those names are
generally constants and a single timer might end up being used from multiple
threads:
Assertion `!Running && "Cannot start a running timer"' failed.
This affects rustc -Z time-llvm-passes when compiling with multiple codegen
units.
Downstream bug reports:
* https://github.com/rust-lang/rust/issues/53136
* https://github.com/rust-lang/rust/issues/48329
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200301/d69c48fe/attachment.html>
More information about the llvm-bugs
mailing list