Skip to content

Commit

Permalink
wip - fix deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Feb 12, 2024
1 parent 8616139 commit a128eae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions _pydevd_bundle/pydevd_net_command_factory_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,10 @@ def make_thread_suspend_message(self, py_db, thread_id, frames_list, stop_reason
if py_db.multi_threads_single_notification:
pydev_log.debug("Skipping per-thread thread suspend notification.")
return NULL_NET_COMMAND # Don't send per-thread, send a single one.
pydev_log.debug("Sending per-thread thread suspend notification.")
pydev_log.debug("Sending per-thread thread suspend notification (stop_reason: %s)", stop_reason)

exc_desc = None
exc_name = None
info = set_additional_thread_info(thread)

preserve_focus_hint = False
if stop_reason in self._STEP_REASONS:
if info.pydev_original_step_cmd == CMD_STOP_ON_START:
Expand Down
2 changes: 1 addition & 1 deletion _pydevd_bundle/pydevd_suspended_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def __init__(self, suspended_frames_manager, py_db):
self._untracked = False

# We need to be thread-safe!
self._lock = ForkSafeLock()
self._lock = ForkSafeLock(rlock=True)

self._variable_reference_to_variable = {}

Expand Down

0 comments on commit a128eae

Please sign in to comment.