Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-30 Thread Jonathan Worthington
- Original Message - From: "Vladimir Lipsky" <[EMAIL PROTECTED]> To: "perl6-internals" <[EMAIL PROTECTED]> Sent: Wednesday, December 31, 2003 2:42 AM Subject: Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft > From: "

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-30 Thread Vladimir Lipsky
From: "Jonathan Worthington" <[EMAIL PROTECTED]> > Here is my attempt at a patch for executable memory allocation, which makes +void * +mem_alloc_executable(size_t size) +{ + void *ptr = VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); ^^^

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-28 Thread Jeff Clites
On Dec 28, 2003, at 6:35 PM, Mark A. Biggar wrote: Leopold Toetsch wrote: 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

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-28 Thread Mark A. Biggar
Leopold Toetsch wrote: 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 o

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-28 Thread Jonathan Worthington
- 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

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-28 Thread Leopold Toetsch
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 t

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-28 Thread Jonathan Worthington
- 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: > > > Att

Re: [perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-28 Thread Leopold Toetsch
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. Some memory handling functions that manage a pool of such memory and handle out small chunks would be fine in

[perl #24769] [PATCH] mem_sys_allocate_executable - initial draft

2003-12-28 Thread via RT
# New Ticket Created by Peter Gibbs # Please include the string: [perl #24769] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=24769 > Attached is a patch to add a function 'mem_sys_allocate_executable", to allocate memory w