FreshPorts -- The Place For Ports If you buy from Amazon USA, please support us by using this link.
Follow us

I am looking for an LTO tape library. Do you have one to spare?
Commit found by message id
Wed, 20 Oct 2004
[ 23:22:56 green ] Original commit 
jdk14 java  Deleted Broken Deprecated Expired Ignore files touched by this commit  This port version is marked as vulnerable. Restricted NO CDROM Java Development Kit 1.4.2
The BSD patchset for the Sun JDK modeled its thread behavior mostly after
existing the Solaris base, and similarly to what happened with NSPR, made
a bad assumption on undefined behavior.  This broke locking in various
places in Java, for example, causing the the debugging support to be
totally broken.  It is worth someone who knows the Java codebase taking
a look to see what other things could have been broken by this on
FreeBSD 5.x+.

The assumption is that pthread_mutex_trylock(3) on a default-type
mutex will fail with EBUSY.  This assumption is wrong for our
libpthread, which returns EDEADLK if the owner thread is trying to
acquire the mutex again with trylock.  The behavior of performing a
locking operation on a self-locked default-type mutex is explicitly
undefined for pthread_mutex_lock(3).

The POSIX specification is still not very clear.  It defines
pthread_mutex_trylock(3) in terms of pthread_mutex_lock(3) yet
does not say what the defined behavior should be for a self-locked
pthread_mutex_trylock(3) for any of the various mutex types, so it is
ambiguous whether the result is clearly undefined or clearly to return

It is a one line change whether or not to make libpthread return
EDEADLK in this case, where it seems that most implementations do not.


Number of ports [& non-ports] in this commit: 1

Showing files for just one port: java/jdk14

show all files

hide all files

2 files found
modify 1.81 View diff View revision /ports/head/java/jdk14/Makefile
import 1.1 View revision /ports/head/java/jdk14/files/patch-vm::os_bsd.hpp
User Login
Create account

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD

This site
What is FreshPorts?
About the authors
How big is it?
The latest upgrade!

Enter Keywords:

Latest Vulnerabilities
postfixadminJul 13
dbusJul 03
mencoderJun 28
mplayerJun 28
lzo2Jun 26
phpmyadmin*Jun 24
gnupgJun 23
gnupg1Jun 23
samba36Jun 23
samba4Jun 23
samba41Jun 23
iodineJun 18
asteriskJun 17
asterisk11Jun 17
dbusJun 14

2 vulnerabilities affecting 2 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Deleted ports
Sanity Test Failures

NEW Graphs (Javascript)

Calculated hourly:
Port count 24454
Broken 191
Deprecated 586
Ignore 514
Forbidden 2
Restricted 264
No CDROM 102
Vulnerable 26
Expired 3
Set to expire 573
Interactive 14
new 24 hours 4
new 48 hours9
new 7 days35
new fortnight56
new month100

Servers and bandwidth provided by
New York Internet, SuperNews, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2014 Dan Langille. All rights reserved.