sun.nio.ch.NativeThread.current
Martin Buchholz
martinrb at google.com
Sat Apr 5 20:03:41 UTC 2008
There is a mismatch between the spec and implementation of
sun.nio.ch.NativeThread.current
// Returns an opaque token representing the native thread underlying the
// invoking Java thread. On systems that do not require signalling,
this
// method always returns zero.
//
static native long current();
...
Java_sun_nio_ch_NativeThread_current(JNIEnv *env, jclass cl)
{
#ifdef __linux__
return (long)pthread_self();
#else
return -1;
#endif
...
Which is it, zero or -1?
Please file a bug.
Thanks,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20080405/2d0c2379/attachment.html>
More information about the core-libs-dev
mailing list