Skip to content

gh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_LIST_INT - #135907

Closed
corona10 wants to merge 3 commits into
python:mainfrom
corona10:gh-134584-_STORE_SUBSCR_LIST_INT
Closed

corona10 wants to merge 3 commits into
python:mainfrom
corona10:gh-134584-_STORE_SUBSCR_LIST_INT

Conversation

@corona10

@corona10 corona10 commented Jun 25, 2025 •

Copy link
Copy Markdown
Member
@bedevere-app bedevere-app Bot mentioned this pull request Jun 25, 2025
35 tasks done
@corona10 corona10 changed the title gh-134584: Eliminate redundant refcounting from STORE_SUBSCR_LIST_INT Jun 25, 2025

@Fidget-Spinner Fidget-Spinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 2 comments.

Comment thread Python/bytecodes.c
PyStackRef_CLOSE_SPECIALIZED(sub_st, _PyLong_ExactDealloc);
DEAD(sub_st);
ss = sub_st;
PyStackRef_CLOSE(list_st);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go on the stack too, and become a normal POP_TOP.

value = PyJitRef_Borrow(sym_new_const(ctx, ptr));
}

op(_POP_TOP_INT, (value -- )) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this below _POP_TOP. Thanks!

@corona10 corona10 closed this Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants