----- Original Message -----
From: "Leopold Toetsch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 28, 2003 2:24 PM
Subject: Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial
draft


> Peter Gibbs (via RT) wrote:
>
> > Attached is a patch to add a function 'mem_sys_allocate_executable",
> >
> > All comments welcome.
>
> I'd really like to have these kind of functions in platform code.
Agree.  You need to do call native memory allocation functions to do this on
Win32.  If I get time, maybe I'll have a crack at it.  Note that (as was
already mentioned) there isn't a ReAlloc function, so we'd have to do that
manually (essentially VirtualAlloc, CopyMemory, VirtualFree) if it's needed.
The other question is does Parrot care about the memory being zero'd out?
It is by default, but we can pass a flag to tell the OS not to bother, which
may buy a (small) bit of time, if this needn't be done or if it's done
elsewhere, e.g. with memset.

Jonathan


Reply via email to