qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] const / static (against current CVS)


From: Doctor Bill
Subject: Re: [Qemu-devel] [PATCH] const / static (against current CVS)
Date: Wed, 24 Aug 2005 12:49:58 -0400

 On Wed, Aug 24, 2005 at 02:41:44PM +0100, Paul Brook wrote:
 > > Probably more important is to make sure none constant data structures
 > > are done on the stack.  There is no good reason why any code page
 > > should be read-write.
 >
> Huh? this is nonsense.


I stand corrected, I ment to say on the stack or in the heap.  ie. I
was only refering within the scope of the original post.  The point is
you don't want self modifing code.  In rare circumstances you need
self modifing code, but it is very rare.  While it possible to mark
allocated pages as read only, this usually only done for runtime error
detection and sometimes thread saftey.  Pretty much all modern
operating systems do copy on write.  However, this is completely
beyond the scope of our discussion.

Bill




reply via email to

[Prev in Thread] Current Thread [Next in Thread]