This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pitrou, serhiy.storchaka, vstinner
Date 2013-10-08.21:18:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381267121.14.0.275844287932.issue19199@psf.upfronthosting.co.za>
In-reply-to
Content
The C structure "PyThreadState" has a counter which is incremented in the bytecode evaluation loop (ceval.c), but never used.

    /* XXX doesn't mean anything anymore (the comment below is obsolete)
       => deprecate or remove? */
    /* tick_counter is incremented whenever the check_interval ticker
     * reaches zero. The purpose is to give a useful measure of the number
     * of interpreted bytecode instructions in a given thread.  This
     * extremely lightweight statistic collector may be of interest to
     * profilers (like psyco.jit()), although nothing in the core uses it.
     */
    int tick_counter;

Antoine Pitrou added the XXX comment when he merged the "new GIL" of Python 3.2.

Can we now remove it?
History
Date User Action Args
2013-10-08 21:18:41vstinnersetrecipients: + vstinner, pitrou, serhiy.storchaka
2013-10-08 21:18:41vstinnersetmessageid: <1381267121.14.0.275844287932.issue19199@psf.upfronthosting.co.za>
2013-10-08 21:18:41vstinnerlinkissue19199 messages
2013-10-08 21:18:40vstinnercreate