You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_sourceFiles in DebugContext holds items in memory that are not cleaned up.
This results in "memory" leaks everytime that DebugContext is used.
Looks like ResetSourceFile method was added long time ago to address this, but was never exposed/used.
Steps to Reproduce
Use sys.settrace or any code that enables using DebugContext.
Expected behavior:
Memory is cleaned up either automatically or user manually calls a method that exposes DebugContext ResetSourceFile. For example, DebugContext?.ResetSourceFile("<module>");
Actual behavior: Memory is not cleaned up.
Versions
2.7.8 and earlier, latest master as well.
The text was updated successfully, but these errors were encountered:
Prerequisites
Description
_sourceFiles in DebugContext holds items in memory that are not cleaned up.
This results in "memory" leaks everytime that DebugContext is used.
Looks like ResetSourceFile method was added long time ago to address this, but was never exposed/used.
Steps to Reproduce
Use sys.settrace or any code that enables using DebugContext.
Expected behavior:
Memory is cleaned up either automatically or user manually calls a method that exposes DebugContext ResetSourceFile. For example, DebugContext?.ResetSourceFile("<module>");
Actual behavior: Memory is not cleaned up.
Versions
2.7.8 and earlier, latest master as well.
The text was updated successfully, but these errors were encountered: