From owner-freebsd-java Mon Nov 25 14:52:52 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7248937B401 for ; Mon, 25 Nov 2002 14:52:51 -0800 (PST) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6B1C43EBE for ; Mon, 25 Nov 2002 14:52:50 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 18GS5m-0000qL-00; Mon, 25 Nov 2002 14:52:38 -0800 Date: Mon, 25 Nov 2002 14:52:38 -0800 To: Daniel Eischen Cc: freebsd-java@freebsd.org, "Bill Huey (Hui)" Subject: Re: PATCH - changing libc_r to use *context() (fwd) Message-ID: <20021125225238.GA3236@gnuppy.monkey.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Nov 25, 2002 at 11:00:03AM -0500, Daniel Eischen wrote: > FYI, this patch should have everything you've been asking for. > > To answer some potential questions, a threads context is > always in thread->ctx as a ucontext_t. A thread's interrupted > context is stored in the same location. > > Signal handlers caused by pthread_kill() now also get a > siginfo and ucontext passed to them (assuming the handler > was installed with SA_SIGINFO). I was in the process of getting the jmp_buf method going, but I'll guess I check the viability of this out instead. ;) Currently, I'm reading how all the safepointing code works so that I can directly use the Solaris fast path method for getting the ucontext (evil stuff with EIP/program counter manipulation), but the normal signal stack frame method should be at least half working now. ..Remaining thread suspension problems... don't know. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message