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 . Add another MASTER_SITE. 2004-07-13 20:32:32 +00:00
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 . Use %%JAVAJARDIR%% in the packing list now that bsd.java.mk sets it. 2004-07-12 22:21:51 +00:00
guavac
infobus
j2sdkee13
jad
jaf Fix DOWNLOAD_URL. 2004-09-09 18:38:25 +00:00
jai
jai-imageio
jakarta-bcel Upgrade to 5.1. 2004-06-01 10:39:25 +00:00
jakarta-commons-beanutils . Unbreak the build by setting ANT_INCLUDE_SHARED_JARS. Found during 2004-04-20 19:38:19 +00:00
jakarta-commons-cli - Removed pkg-plist (missed in last commit) 2004-04-20 19:50:07 +00:00
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 Add a port of jakarta-commons-discovery. 2004-04-18 06:18:19 +00:00
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 Update to 2.0.8, remove pkg-plist, update to latest bsd.java.mk. 2004-05-18 01:28:19 +00:00
jakarta-regexp Update to latest bsd.java.mk; remove pkg-plist; pacify portlint (including 2004-05-18 01:37:03 +00:00
jakarta-struts Upgrade to 1.2.4. 2004-10-19 22:26:07 +00:00
janosvm
jasmin Add jasmin 1.06, java Assembler Interface. 2004-05-28 15:19:03 +00:00
java3d
java-checkstyle Update to 3.4 2004-05-02 17:13:53 +00:00
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 Unbreak: USE_GCC=2.95 2004-07-06 14:52:45 +00:00
jaxen - Now bsd.java.mk 2.0 compliant 2004-09-01 13:41:33 +00:00
jboss2
jboss3 Update to 3.2.5 2004-06-30 15:54:18 +00:00
jboss4 Update to 3.2.5 2004-06-30 15:54:18 +00:00
jboss5 Update to 3.2.5 2004-06-30 15:54:18 +00:00
jc Use ${MASTER_SITE_GNU}. 2004-07-28 02:09:05 +00:00
jcalendar . Use %%JAVAJARDIR%% in the packing list now that bsd.java.mk sets it. 2004-07-12 22:21:51 +00:00
jcckit BROKEN: Size mismatch 2004-09-18 18:13:49 +00:00
jce-aba
jcommon . Add to PLIST_SUB, don't set it. Mea culpa. 2004-06-22 05:11:59 +00:00
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 Slightly improved phrasing of RESTRICTED. 2004-04-15 23:16:48 +00:00
jdk13 . Fix the plugin build for gcc 3.4. 2004-08-31 19:52:25 +00:00
jdk13-doc Using PORTDOCS macro. 2004-04-15 23:27:41 +00:00
jdk14 The BSD patchset for the Sun JDK modeled its thread behavior mostly after 2004-10-20 23:22:56 +00:00
jdk14-doc Using PORTDOCS macro. 2004-04-15 23:43:26 +00:00
jdk15 The BSD patchset for the Sun JDK modeled its thread behavior mostly after 2004-10-20 23:22:56 +00:00
jdk15-doc Add jdk15-doc: 2004-04-15 23:46:28 +00:00
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 Update to 1.4. 2004-05-10 18:38:26 +00:00
jfreechart . Update to 0.9.20. [1] 2004-06-22 05:23:03 +00:00
jgraph upgrade to 5.0 2004-07-12 00:54:06 +00:00
jgrapht add jgrapht 0.5.3 2004-07-09 03:36:01 +00:00
jikes Upgrade to version 1.21. 2004-05-16 19:06:40 +00:00
jlex . No need to add JAVAJARDIR to PLIST_SUB anymore as bsd.java.mk does it. 2004-07-12 22:18:01 +00:00
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 Change BROKEN to IGNORE when no configuration option is set. Should 2004-05-16 20:57:11 +00:00
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 BROKEN: Configure fails with diablo-jdk13 (default). See 2004-05-23 09:48:53 +00:00
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 - Fix plist 2004-04-17 15:42:09 +00:00
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 Add sun-wtk 2.1, Sun J2ME Wireless Toolkit. 2004-06-08 08:26:12 +00:00
trove4j
tya
xdoclet
Makefile Add langspec 2.0, the Java Language Specification. 2004-10-18 21:57:27 +00:00