-
Notifications
You must be signed in to change notification settings - Fork 566
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
sv_force_normal_flags shrinks SvLEN on de-cow #14239
Comments
From @bulk88Created by @bulk88I am debugging an issue in an ancient, horribly written, unmaintained, In this block of macro code there is SvPV_force (I added all the printfs) -------------------------------------------------------------------- -------------------------------------------------------------------- before the uncow + xmg_stash 0x00000000 {sv_any=??? any_dbg={_1_5iv=??? _2_6nv=??? after + xmg_stash 0x00000000 {sv_any=??? any_dbg={_1_5iv=??? _2_6nv=??? The code using CUR in S_sv_uncow is from 2002 commit http://perl5.git.perl.org/perl.git/commitdiff/765f542df20317f47bb284c276cd0abfb50dcfd6 Since the deCOW code uses CUR, and a vicious loop starts (I can't figure here is a log produced on 5.21, notice osName's SvLEN keeps shrinking now on 5.10, note osName's SvLEN stays stable past Idx 12 (I trimmed the ----------------------------------------------------------------- So, whose fault is this? The module's or is this a core bug? Did we ever Perl Info
|
From @cpansproutOn Thu Nov 13 16:19:33 2014, bulk88 wrote:
Yes.
I’d say it’s a core *feature*. If a string gets shrunk and then copied many times, you don’t want all those other copies to allocate extra unneeded memory when written to, especially if the buffer is particularly large. If some other code can’t handle it, I think it’s a bug elsewhere.
Not as far as I know. -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
@bulk88 if I understand @cpansprout 's response, we're saying there is no core bug here and it is working by design. Please re-open this case if you would like to discuss it futher. |
Migrated from rt.perl.org#123207 (status was 'open')
Searchable as RT123207$
The text was updated successfully, but these errors were encountered: