-
Notifications
You must be signed in to change notification settings - Fork 601
TARG has some subtleties, mention them #23196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jkeenan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style nits; do not know enough to review content.
|
I WOULD NOT document this, since its a bug IMO, and fixable but the SV* TARG that ALL I instead realized, probably this is UB/not public API, but inside a sub |
|
These seem reasonable points to mention, so LGTM. Not sure what bulk88 is talking about with |
Disregard. I was wrong, sub FIRSTKEY/sub NEXTKEY are incapable of getting a I checked the biz code where I encountered it some months ago, and I was remembering my code comments incorrectly in my head from what I wrote at that time. My src code comments were talking about the well known "TARG with SvROK() no DESTROY call too long lifespan" bug/API nuance. Then discussed something else. They didn't say anything about a useless TARG/op_targ idx from PL_op struct, being seeing by sub FIRSTKEY/sub NEXTKEY/sub FETCH. I might've been thinking about a failed unrealistic experiment with TIEHASH+PP sub AUTOLOAD that doesn't vivify CVs into GVs and instead keeps lexical XSUBs around. The optimization experiment was too crazy and too slow to be useful. Some experimenting from just now The Larry Wall [email protected] -10/17/1994 7:00:00 PM - perl 5.000 Except for the 5.7.0 2001 XSUB get the AU name inside their CV*'s SvPVX() optimization 8fa6a40 No SVPVHEK * of the string "AUTOLOAD" exists in the interp, its rehashed constantly. 2nd, AUTOLOAD named non-prototyped XSUB CV* get a brand new |
Mostly lessons learned from Perl#22784.
Mostly lessons learned from #22784.