Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r93123:386b50664e3e Date: 2017-11-22 23:21 +0100 http://bitbucket.org/pypy/pypy/changeset/386b50664e3e/
Log: Untested and hard-to-test, but for symmetry reasons if we don't call start_sampling() here then it means sampling will not restart after some switches diff --git a/rpython/rlib/rstacklet.py b/rpython/rlib/rstacklet.py --- a/rpython/rlib/rstacklet.py +++ b/rpython/rlib/rstacklet.py @@ -26,12 +26,14 @@ def new(self, callback, arg=llmemory.NULL): if DEBUG: callback = _debug_wrapper(callback) + rvmprof.stop_sampling() x = cintf.save_rvmprof_stack() try: cintf.empty_rvmprof_stack() h = self._gcrootfinder.new(self, callback, arg) finally: cintf.restore_rvmprof_stack(x) + rvmprof.start_sampling() if DEBUG: debug.add(h) return h _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit