bin/31661: pthread_kill signal handler doesn't get sigcontext
or ucontext
Daniel Eischen
eischen at vigrid.com
Thu Feb 5 06:28:00 PST 2004
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
More information about the freebsd-threads
mailing list