----- Original Message ----- From: "Leopold Toetsch" <[EMAIL PROTECTED]> To: "Jonathan Worthington" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, December 28, 2003 6:36 PM Subject: Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft
> Jonathan Worthington <[EMAIL PROTECTED]> wrote: > > The other question is does Parrot care about the memory being zero'd out? > > Isn't necessary. Executable mem is filled with ops anyway. Currently it > is zeroed to aid debugging a bit. It should be filled up with trap > operations of some kind finally I think. > Here is my attempt at a patch for executable memory allocation, which makes the changes in the platform code with the names suggested by Leo a while back [1]. I have put Peter Gibbs' changes into generic.c, and implemented alloc, free and (hopefully) realloc in win32.c. Updated other platform files to have these functions (and just call into the normal mem_sys ones) and updated platform_interface.h. I'm not too sure what is required in terms of changes in jit.c, so I followed Peter's lead there and also added a #include at the top. It's attached as a separate patch. Hope this helps, Jonathan [1] What are the semantics of mem_flush_executable? I didn't implement this.
platform_exec.patch
Description: Binary data
platform_exec_jit.patch
Description: Binary data