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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to