Commit 925a6bbc authored by Chris Toshok's avatar Chris Toshok

assert that we're using a GIL here

parent 526e3969
......@@ -562,6 +562,7 @@ static inline void unwind_loop(ExcInfo* exc_data) {
// i.e. a catch block. thus ends our unwind session.
endPythonUnwindSession(unwind_session);
}
static_assert(THREADING_USE_GIL, "have to make the unwind session usage in this file thread safe!");
// there is a python unwinding implementation detail leaked
// here - that the unwind session can be ended but its
// exception storage is still around.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment