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

gh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_LIST_INT#135907
corona10 wants to merge 3 commits into
python:mainfrom
corona10:gh-134584-_STORE_SUBSCR_LIST_INT

Conversation

@corona10

@corona10corona10 commented Jun 25, 2025

Copy link
Copy Markdown
Member

@corona10corona10 changed the title gh-134584: Eliminate redundant refcounting from STORE_SUBSCR_LIST_INTgh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_LIST_INTJun 25, 2025

@Fidget-SpinnerFidget-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 threadPython/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!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@corona10@Fidget-Spinner