Skip to content

Commit ca4981c

Browse files
xal-0vtjnash
andauthored
Update lock hierarchy devdocs (#58884)
Brings the devdocs up to date for the lock hierarchy we have now, documenting the deadlock avoidance algorithm we use for method locks. The information about which locks to take to update global data has been removed because it was out of date, and some basic comments about locking has been added to `julia.h`. Also removes an unused mutex, `extern_c_lock`, which I found while looking for locks. TODO: - A few fields that have questionable locking (`usings_backedges`, `jl_binding_t.backedges`) will be fixed later. - Document how the atomic fields are updated/read. --------- Co-authored-by: Jameson Nash <vtjnash@gmail.com>
1 parent f5668d6 commit ca4981c

File tree

5 files changed

+525
-139
lines changed

5 files changed

+525
-139
lines changed
Lines changed: 234 additions & 0 deletions
Loading
Lines changed: 55 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)