Commit 2dcbadc
committed
frame: fix thread-safety issue when accessing f_lineno
It wasn't safe to access f_lineno from the thread that doesn't won the
frame. This can happen, for example, when calling sys.current_frames()
and accessing another thread's frames (such as for profiling purposes).
See python#661 parent 4b35823 commit 2dcbadc
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
0 commit comments