FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-93516: match logic of codeobject.c in _co_firsttraceable calculation by iritkatriel · Pull Request #108028 · python/cpython · GitHub

/ cpython Public

GH-93516: match logic of codeobject.c in _co_firsttraceable calculation - #108028

Closed
iritkatriel wants to merge 1 commit into
python:mainfrom
iritkatriel:_co_firsttraceable
Closed

GH-93516: match logic of codeobject.c in _co_firsttraceable calculation#108028
iritkatriel wants to merge 1 commit into
python:mainfrom
iritkatriel:_co_firsttraceable

Conversation

iritkatriel commented Aug 16, 2023
edited
Loading

Copy link
Copy Markdown
Member

In codeobject.c:

    int entry_point = 0;
    while (entry_point < Py_SIZE(co) &&
        _PyCode_CODE(co)[entry_point].op.code != RESUME) {
        entry_point++;
    }
    co->_co_firsttraceable = entry_point;

This is different from deepfreeze when there is no RESUME in the code.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL