From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 30 19:52:04 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F49D16A4BF for ; Sat, 30 Aug 2003 19:52:04 -0700 (PDT) Received: from web13404.mail.yahoo.com (web13404.mail.yahoo.com [216.136.175.62]) by mx1.FreeBSD.org (Postfix) with SMTP id D12D143FBD for ; Sat, 30 Aug 2003 19:52:03 -0700 (PDT) (envelope-from giffunip@yahoo.com) Message-ID: <20030831025203.5026.qmail@web13404.mail.yahoo.com> Received: from [200.91.194.11] by web13404.mail.yahoo.com via HTTP; Sun, 31 Aug 2003 03:52:03 BST Date: Sun, 31 Aug 2003 03:52:03 +0100 (BST) From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" To: hackers@freebsd.org In-Reply-To: <200308302050.AA2582249810@141.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Non-executable mappings now in NetBSD too X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2003 02:52:04 -0000 Ugh... or just consider not all equipment out there needs JIT Java, and make it a kernel option! cheers, Pedro. --- Andrew Lankford wrote: > > Whilst the Java bytecode is not natively executable, a JIT JVM >needs to be > able towrite and immediately execute native code. >The OpenBSD W^X approach > would require system calls between the >compilation and execution steps. My > understanding of current JIT >is that the compilation is done is very small > pieces and adding >the overhead of a pair of system calls would basically > kill it. > > Even simpler to compile to a temporary file and then exit the temporary file. > Woohoo, potential race condition!

> ...Or you could make a nifty new system call that creates a pipe to a newly > forked child process. You write the compiled executable to the fork, and the > child jumps to the begining of that compiled code as soon as your parent > process closes the pipe!

> Gratuitous/pointless, but fun to think about. > > > Andrew Lankford > > > > ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/