Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2004 09:27:37 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Nick Barnes <Nick.Barnes@pobox.com>
Cc:        freebsd-threads@FreeBSD.org
Subject:   Re: bin/31661: pthread_kill signal handler doesn't get sigcontext or ucontext 
Message-ID:  <Pine.GSO.4.10.10402050926100.10-100000@pcnet5.pcnet.com>
In-Reply-To: <61471.1075975597@thrush.ravenbrook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Feb 2004, Nick Barnes wrote:

> At 2004-02-05 01:03:43+0000, Daniel Eischen writes:
> 
> > See pthread_resume_all_np(3), pthread_resume_np(3), pthread_suspend_all(3),
> > and pthread_suspend_allnp(3) :-)  This is what the native JDK uses for
> > GC.
> 
> Way cool.  Can I get the context (i.e. registers) of a suspended thread?

No, you can get the thread attributes which include the stack base
and addr, see pthread_attr_get_np(3).  The JDK seems to make do
without getting suspended thread context.

-- 
Dan Eischen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10402050926100.10-100000>