Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2011 02:15:02 +0200
From:      Pieter de Goeje <pieter@degoeje.nl>
To:        freebsd-hackers@freebsd.org
Cc:        lldb-dev@cs.uiuc.edu, Amit Kulkarni <amitkulz@gmail.com>, matthew@openbsd.org
Subject:   Re: lldb patches for FreeBSD
Message-ID:  <201105130215.02568.pieter@degoeje.nl>
In-Reply-To: <BANLkTimK7=j8UV5XR8kcF8YkXY63ZVmCAw@mail.gmail.com>
References:  <BANLkTimK7=j8UV5XR8kcF8YkXY63ZVmCAw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 13 May 2011 00:00:28 Amit Kulkarni wrote:
> It seems FreeBSD is also affected like OpenBSD about the thread id
> issue discussed a month before in this thread. I am cc'ing matthew@
> just to keep him in the loop.
> http://lists.cs.uiuc.edu/pipermail/lldb-dev/2011-April/000444.html

Check out this code from FreeBSD's OpenJDK6 port:

#if __FreeBSD_version > 900030
  return pthread_getthreadid_np();
#else
  long tid;
  thr_self(&tid);
  return (pid_t)tid;
#endif

The underlying type of a tid (lwpid_t in kernel) is an int.

-- 
Pieter de Goeje



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105130215.02568.pieter>