Skip to content

BINARY_SUBSCR_GETITEM has duplicate CALL_STAT_INC(inlined_py_calls) #96653

Description

@itamaro

as titled and discussed in GH-92257

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Sep 7, 2022
  2. itamaro commented on Sep 7, 2022

    @itamaro
    ContributorAuthor

    permalink -

    cpython/Python/ceval.c

    Lines 1662 to 1674 in 3eaf70d

    CALL_STAT_INC(inlined_py_calls);
    STACK_SHRINK(2);
    new_frame->localsplus[0] = container;
    new_frame->localsplus[1] = sub;
    for (int i = 2; i < code->co_nlocalsplus; i++) {
    new_frame->localsplus[i] = NULL;
    }
    _PyFrame_SetStackPointer(frame, stack_pointer);
    JUMPBY(INLINE_CACHE_ENTRIES_BINARY_SUBSCR);
    frame->prev_instr = next_instr - 1;
    new_frame->previous = frame;
    frame = cframe.current_frame = new_frame;
    CALL_STAT_INC(inlined_py_calls);

    @Fidget-Spinner I'm happy to submit a PR - not sure which one should be removed (or whether it matters)

  3. Fidget-Spinner commented on Sep 7, 2022

    @Fidget-Spinner
    Member

    It doesn't really matter, but I'd prefer we keep the one nearer to the bottom.

  4. added a commit that references this issue on Sep 7, 2022
  5. added a commit that references this issue on Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions