1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/java
Brian Feldman 52602010f0 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
EBUSY.

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.

Reference:	http://www.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_lock.html
2004-10-20 23:22:56 +00:00
..
avalon-logkit - Use MASTER_SITE_APACHE 2004-09-01 13:36:46 +00:00
bluej
bouncycastle
bsh
bugseeker
bugseeker-demo
classpath BROKEN on 5.x: Configure fails 2004-09-18 07:52:32 +00:00
collections
cos
cryptix-jce
diablo-jdk13 Change BROKEN to IGNORE since the package builds but does not run 2004-09-29 04:37:50 +00:00
diablo-jre13 Change BROKEN to IGNORE since the package builds but does not run 2004-09-29 04:37:50 +00:00
eclipse o Fix build with KDE WITH_MOTIF. [1] 2004-07-28 17:56:31 +00:00
eclipse-cdt Fix typo. 2004-08-22 09:08:22 +00:00
eclipse-checkstyle Add eclipse-checkstyle 3.4.1.0, integrates the Checkstyle Java 2004-09-03 20:54:27 +00:00
eclipse-clay-core Clarify the legal status of java/eclipse-clay-core: you must read and 2004-09-10 02:25:07 +00:00
eclipse-emf Update to 1.0M2. 2004-08-28 02:05:02 +00:00
eclipse-examples Update to 3.0. 2004-07-25 08:01:28 +00:00
eclipse-gef Update to 3.0. 2004-07-25 08:02:29 +00:00
eclipse-gef-examples Update to 3.0. 2004-07-25 08:02:29 +00:00
eclipse-langpack Mark BROKEN. 2004-07-25 08:01:43 +00:00
eclipse-log4e Add eclipse-log4e 0.7.6, eclipse plugin to use logger easily 2004-09-03 21:06:27 +00:00
eclipse-lomboz o Fix PORTNAME. 2004-08-05 17:05:27 +00:00
eclipse-pmd Upgrade eclipse pmd plugin to support eclipse3. 2004-09-03 20:29:33 +00:00
eclipse-quantum Add eclipse-quantum 2.4.1, database access and SQL editor 2004-09-03 20:49:39 +00:00
eclipse-sqlexplorer Add eclipse-sqlexplorer 2.2.2, a visual database query 2004-09-03 21:01:46 +00:00
eclipse-sysdeo-tomcat Add eclipse-sysdeo-tomcat 3, sysdeo Tomcat Launcher plugin for Eclipse. 2004-08-07 01:15:40 +00:00
eclipse-vep Update to 1.0M2. While here, parameterize common parts of plist. 2004-08-28 02:00:14 +00:00
eclipse-vep-examples Update to 1.0M2. While here, parameterize plist. 2004-08-28 01:26:38 +00:00
eclipseme Fix typo. 2004-08-28 18:02:13 +00:00
forte
gj - Use bsd.java.mk-2.0 (reminded by hq@) 2004-08-11 14:56:52 +00:00
gj-jdk11 - Use bsd.java.mk-2.0 (reminded by hq@) 2004-08-11 14:56:52 +00:00
gnu-regexp
guavac
infobus
j2sdkee13
jad
jaf Fix DOWNLOAD_URL. 2004-09-09 18:38:25 +00:00
jai
jai-imageio
jakarta-bcel
jakarta-commons-beanutils
jakarta-commons-cli
jakarta-commons-collections - Update to 3.1 2004-08-14 16:09:15 +00:00
jakarta-commons-dbcp . Update to 1.2.1 [1] 2004-07-26 05:35:16 +00:00
jakarta-commons-discovery
jakarta-commons-httpclient Add jakarta-commons-httpclient 2.0.2, a package implementing the client 2004-10-17 13:32:16 +00:00
jakarta-commons-lang
jakarta-commons-logging
jakarta-commons-pool . Update to 1.2 [1] 2004-07-26 05:37:19 +00:00
jakarta-commons-primitives - Build from source 2004-09-01 13:32:57 +00:00
jakarta-log4j - Fixed MASTER_SITE_SUBDIR (binary and source releases are the same so this is 2004-09-01 13:40:11 +00:00
jakarta-oro
jakarta-regexp
jakarta-struts Upgrade to 1.2.4. 2004-10-19 22:26:07 +00:00
janosvm
jasmin
java3d
java-checkstyle
java-cup
java-getopt - Upgrade to 1.0.10 2004-10-20 12:03:41 +00:00
java-tutorial
javamail Fix DOWNLOAD_URL. 2004-09-09 18:38:25 +00:00
javavmwrapper . JAVALIBDIR is more appropriate than JAVAJARDIR now we have it. 2004-09-03 16:23:01 +00:00
javel
jaxen - Now bsd.java.mk 2.0 compliant 2004-09-01 13:41:33 +00:00
jboss2
jboss3
jboss4
jboss5
jc Use ${MASTER_SITE_GNU}. 2004-07-28 02:09:05 +00:00
jcalendar
jcckit BROKEN: Size mismatch 2004-09-18 18:13:49 +00:00
jce-aba
jcommon
jdbcpool
jde
jde-emacs20
jdk11 . Teach the packing list that we don't care if we can't remove 2004-09-01 02:47:05 +00:00
jdk11-doc
jdk12 . Assume (un)registervm is in LOCALBASE _not_ PREFIX. 2004-09-01 05:52:27 +00:00
jdk12-doc
jdk13 . Fix the plugin build for gcc 3.4. 2004-08-31 19:52:25 +00:00
jdk13-doc
jdk14 The BSD patchset for the Sun JDK modeled its thread behavior mostly after 2004-10-20 23:22:56 +00:00
jdk14-doc
jdk15 The BSD patchset for the Sun JDK modeled its thread behavior mostly after 2004-10-20 23:22:56 +00:00
jdk15-doc
jdk16 The BSD patchset for the Sun JDK modeled its thread behavior mostly after 2004-10-20 23:22:56 +00:00
jdom - Update to 1.0 Final (bumped PORTEPOCH in this extend) 2004-10-20 11:56:32 +00:00
jfc
jflex
jfreechart
jgraph
jgrapht
jikes
jlex
jlint BROKEN on 5.x: Does not compile 2004-09-18 18:47:46 +00:00
jmf
jmp - Update to 0.43 2004-08-27 12:06:50 +00:00
jode
jomp . Add a port of jomp: 2004-07-20 17:41:09 +00:00
jre . Assume (un)registervm is in LOCALBASE _not_ PREFIX. 2004-09-01 21:12:40 +00:00
jsdk
jump
junit
kaffe
kaffe-devel
langspec Add langspec 2.0, the Java Language Specification. 2004-10-18 21:57:27 +00:00
linux-blackdown-jdk12 . Add missing calls to registervm and unregistervm. 2004-09-01 16:13:36 +00:00
linux-blackdown-jdk13 . Add a missing call to registervm. 2004-09-01 16:08:32 +00:00
linux-blackdown-jdk14 . Assume (un)registervm is in LOCALBASE _not_ PREFIX. 2004-09-01 16:43:48 +00:00
linux-blackdown-jre11 . Assume (un)registervm is in LOCALBASE _not_ PREFIX. 2004-09-01 21:43:57 +00:00
linux-ibm-jdk13 . Consistently prefix the comment in the call to registervm with "Linux-" 2004-09-01 18:06:07 +00:00
linux-ibm-jdk14 . Update to 1.4.2 GA. 2004-09-01 19:13:43 +00:00
linux-sun-jdk12 . Assume (un)registervm is in LOCALBASE _not_ PREFIX. 2004-09-01 19:36:11 +00:00
linux-sun-jdk13 . Assume (un)registervm is in LOCALBASE _not_ PREFIX. 2004-09-01 19:55:48 +00:00
linux-sun-jdk14 . Assume (un)registervm is in LOCALBASE _not_ PREFIX. 2004-09-01 20:54:42 +00:00
linux-sun-jdk15 . Update to 1.5.0 release. 2004-10-14 22:24:49 +00:00
linux-sun-jdk16 . Update to 1.5.0 release. 2004-10-14 22:24:49 +00:00
mmake
netbeans Remove extra file from pkg-plist. 2004-10-12 08:58:15 +00:00
netbeans3 Remove extra file from pkg-plist. 2004-10-12 08:58:15 +00:00
netbeans4 Remove extra file from pkg-plist. 2004-10-12 08:58:15 +00:00
netbeans5 Remove extra file from pkg-plist. 2004-10-12 08:58:15 +00:00
netbeans55 Remove extra file from pkg-plist. 2004-10-12 08:58:15 +00:00
netbeans61 Remove extra file from pkg-plist. 2004-10-12 08:58:15 +00:00
netcomponents
netrexx
openjit
phpeclipse Mark BROKEN. 2004-07-25 08:03:08 +00:00
phpeclipse_phphelp Mark BROKEN. 2004-07-25 08:03:08 +00:00
phpeclipse_sql Mark BROKEN. 2004-07-25 08:03:08 +00:00
phpeclipse_tidy Mark BROKEN. 2004-07-25 08:03:08 +00:00
poseidon Update to 2.5.0. 2004-08-22 05:59:04 +00:00
proguard
sablevm Add build fix for FreeBSD 4.x. 2004-07-27 00:10:49 +00:00
shujit I haven't used this in ages, and have no interest in maintaining it any 2004-10-15 18:20:43 +00:00
simplicity
sun-wtk
trove4j
tya
xdoclet
Makefile Add langspec 2.0, the Java Language Specification. 2004-10-18 21:57:27 +00:00