From owner-cvs-all@FreeBSD.ORG Thu Sep 20 03:35:30 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A59C16A420; Thu, 20 Sep 2007 03:35:30 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6DCE913C459; Thu, 20 Sep 2007 03:35:30 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l8K3ZU1F063178; Thu, 20 Sep 2007 03:35:30 GMT (envelope-from glewis@repoman.freebsd.org) Received: (from glewis@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8K3ZUtt063176; Thu, 20 Sep 2007 03:35:30 GMT (envelope-from glewis) Message-Id: <200709200335.l8K3ZUtt063176@repoman.freebsd.org> From: Greg Lewis Date: Thu, 20 Sep 2007 03:35:30 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/java/jdk15 Makefile ports/java/jdk15/files patch-vm::globals.hpp patch-vm::os_bsd.cpp X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2007 03:35:30 -0000 glewis 2007-09-20 03:35:30 UTC FreeBSD ports repository Modified files: java/jdk15 Makefile java/jdk15/files patch-vm::os_bsd.cpp Added files: java/jdk15/files patch-vm::globals.hpp Log: . Default UseThreadPriorities to false on BSD. This can be toggled by passing -XX:+UseThreadPriorities. . Remove the os_sleep hack which was used on FreeBSD to make sure lower priority threads got time slices. Instead, just call pthread_yield(). On FreeBSD 7.x with libthr, this will still give lower priority threads some time (with the above flag turned on), although such behaviour is not guaranteed by POSIX. This boosts FreeBSD performance by 7-fold on an 8 core system, putting it on a par with Solaris (benchmarks by kris@). The Java standard and the JCK tests are somewhat contradictory on thread priority being guaranteed to work, and in this case the performance benefits appear to outweigh any possible side effects. . Pick up DEFAULT_LD_LIBRARY_PATH from the build environment rather than patching it into a file at build time. This simplifies the Makefile. Submitted by: Kurt Miller Revision Changes Path 1.136 +2 -6 ports/java/jdk15/Makefile 1.1 +26 -0 ports/java/jdk15/files/patch-vm::globals.hpp (new) 1.8 +30 -11 ports/java/jdk15/files/patch-vm::os_bsd.cpp