Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Latest Strawberries: addresses reported by "p", Devel::Peek, etc.

by tonyc (Hermit)
on Nov 02, 2025 at 22:14 UTC ( [id://11166638]=note: print w/replies, xml ) Need Help??


in reply to Latest Strawberries: addresses reported by "p", Devel::Peek, etc.

There were a few changes in that range relevant to the changes you're seeing:

  • Strawberry Perl changed from doing an MSVCRT build of perl to UCRT, this is likely the cause of the change in pointer ranges (the addresses in both cases virtual addresses, like pretty much any pointer on a modern OS)
  • Richard changed constant folding to allow constant folded strings to be marked Copy-on-Write in 06e421c559c
  • I changed pack() to make SVs used for the pack "p" template non-CoW in more cases in 3d831e8998d, since we documented modifying SVs through the pointers pack() produces.
  • Comment on Re: Latest Strawberries: addresses reported by "p", Devel::Peek, etc.

Replies are listed 'Best First'.
Re^2: Latest Strawberries: addresses reported by "p", Devel::Peek, etc.
by syphilis (Archbishop) on Nov 02, 2025 at 23:08 UTC
    Strawberry Perl changed from doing an MSVCRT build of perl to UCRT, this is likely the cause of the change in pointer ranges ...

    I ran the given script on SP-5.38.2 (which still used MSVCRT) and got:
    v5.38.2 SV = PV(0x1875c0cb100) at 0x1875c201748 REFCNT = 1 FLAGS = (POK,pPOK) PV = 0x1875c20cba0 "sss"...\0 CUR = 32 LEN = 34 Q: hex: 1875c20cba0, dec: 1680877865888 SV = PV(0x1875c0cb100) at 0x1875c201748 REFCNT = 1 FLAGS = (POK,pPOK) PV = 0x1875c20cba0 "sss"...\0 CUR = 32 LEN = 34
    Apart from a missing "IsCow" flag, the output looks to me essentially the same as for SP-5.42.0.
    This suggests to me that the switch to UCRT is not part of the explanation.

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11166638]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2026-03-16 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.