Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Perl XS: garbage-collecting my malloc'd buffer (sv_grow?)

by tye (Sage)
on Mar 03, 2003 at 18:14 UTC ( [id://240100]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Perl XS: garbage-collecting my malloc'd buffer
in thread Perl XS: garbage-collecting my malloc'd buffer

Wouldn't calling sv_grow() directly fix that?

                - tye
  • Comment on Re^4: Perl XS: garbage-collecting my malloc'd buffer (sv_grow?)

Replies are listed 'Best First'.
Re^5: Perl XS: garbage-collecting my malloc'd buffer
by Elian (Parson) on Mar 03, 2003 at 18:21 UTC
    Yep, it would. SvGROW tries to be clever, and fails, unfortunately. (And the docs discourage using sv_grow directly, just to compound the potential problems)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-26 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found