The default build now uses _PyStackRef in a similar way to the free threaded build:
The implementations of most stackref functions are similar or identical, so let's combine them when it simplifies things. I think this will also make it less likely that we fix a bug in one build and miss it in the other, like happened in:
I'll put up a PR soon.
Linked PRs