[Bug 218571] umtx compat6 regression affecting 'jar' command

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Apr 17 16:24:07 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218571

Jilles Tjoelker <jilles at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles at FreeBSD.org
           Assignee|freebsd-bugs at FreeBSD.org    |freebsd-threads at FreeBSD.org
           Hardware|amd64                       |Any

--- Comment #4 from Jilles Tjoelker <jilles at FreeBSD.org> ---
Most of the time, freebsd6 compatibility is left in. It seems inconsistent to
remove the old umtx calls if the rest is left in.

It does look unfortunate to have two copies of almost-but-not-completely
duplicate code added to kern_umtx.c. However, it may be the least bad way so
that development of the current code is hindered as little as possible.

Adding the syscall stubs and exports back to libc seems unnecessary since these
calls were not supposed to be used by applications directly, and mixing
libc/libthr versions is not supported. Likewise, what was removed from
<sys/umtx.h> need not be restored (except as needed for kernel implementation).
UMUTEX_ERROR_CHECK was added after stable/6 and never used, so need not be
restored either.

If the old code is dynamically linked, it is worth a try to run it with the new
libc and libthr.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-threads mailing list