Skip to content

Commit

Permalink
debug checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jan 11, 2019
1 parent a3059b9 commit e77a5a7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/optimization_ideas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ implement new optimizations.

See :ref:`Experimental runtime <exp-runtime>`.

.. _remove-debug-checks:

Remove debug checks
===================

Expand Down
14 changes: 14 additions & 0 deletions doc/runtimes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ Debug runtime: /usr/bin/python3-dbg

For example, the debug runtime can check that the GIL is held by the caller.

See also

* :ref:`Remove debug checks <remove-debug-checks>`
* Rejected idea: `Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug
mode <https://bugs.python.org/issue35337>`__ and `PyTuple_SET_ITEM could
check bounds in debug mode <https://bugs.python.org/issue14614>`__. Issues:

* Serhiy Storchaka: "I think we can break this only after adding public API for accessing
internal storage of a tuple: PyTuple_ITEMS()."
* Stefan Krah: "I'm using &PyTuple_GET_ITEM(args, 0), so Serhiy's concern is
not theoretical."
* Stefan Behnel: "If this is really just about debugging, then I would
suggest to not break existing code at all."

.. _exp-runtime:

New experimental runtime: python3-exp
Expand Down

0 comments on commit e77a5a7

Please sign in to comment.