diff --git a/pytools/__init__.py b/pytools/__init__.py index 70eb53051cd18b37ff5aa72f6620d6c5f61fbf0b..f831c3e4f8edfe8b3dac99fcb36dbfd0e15949f5 100644 --- a/pytools/__init__.py +++ b/pytools/__init__.py @@ -1943,15 +1943,13 @@ class MinRecursionLimit(object): # (or long chains of to-be gc'd generators) that cannot be # undergo garbage collection with a lower recursion limit. # - # Force a garbage collection while the recursion limit is - # still high to avoid this situation. + # As a result, it doesn't seem possible to lower the recursion limit + # again after it has been raised without causing reliability issues. # # See https://gitlab.tiker.net/inducer/sumpy/issues/31 for # context. - import gc - gc.collect() - sys.setrecursionlimit(self.prev_recursion_limit) + pass # }}}