Dan Sugalski <[EMAIL PROTECTED]> writes:
> At 01:37 PM 3/28/00 -0600, Craig A. Berry wrote:
>>At 01:52 PM 3/28/00 -0500, Charles Lane wrote:
>>
>> >+    I'm using LIB$(GET|FREE)_VM here so that we can allocate and deallocate
>> >+    inside an AST routine without worrying about reentrancy and which Perl
>> >+    memory allocator is being used.
>>
>>Mixing these with malloc() used to be a no-no; does the fact that you have
>>them in an AST routine allow you to dodge that restriction?
> 
> Should we just switch over to the LIB$ memory management stuff altogether? 
> It'd just require some changes to perl's memory allocator.

Well, it *is* amusing to see the discussion on P5P about how you can't 
even malloc inside a signal handling routine without risking a crash.
I've used malloc inside AST handlers with no problem, and LIB$ stuff is
robust.  Makes you appreciate VMS all the more :-)
--
 Drexel University       \V                     --Chuck Lane
----------------->--------*------------<[EMAIL PROTECTED]
     (215) 895-1545      / \  Particle Physics  [EMAIL PROTECTED]
FAX: (215) 895-5934        /~~~~~~~~~~~         [EMAIL PROTECTED]

Reply via email to