From owner-freebsd-java Mon Jul 24 4: 4:13 2000 Delivered-To: freebsd-java@freebsd.org Received: from master.telia.net (master.telia.net [194.237.170.70]) by hub.freebsd.org (Postfix) with ESMTP id CE0A237B6BC for ; Mon, 24 Jul 2000 04:04:09 -0700 (PDT) (envelope-from khaled@w-arts.com) Received: from localhost (elite@localhost) by master.telia.net (8.9.3/8.9.1) with ESMTP id NAA22230 for ; Mon, 24 Jul 2000 13:04:01 +0200 (CEST) (envelope-from khaled@w-arts.com) X-Authentication-Warning: master.telia.net: elite owned process doing -bs Date: Mon, 24 Jul 2000 13:04:01 +0200 (CEST) From: Khaled Daham X-Sender: elite@master.telia.net To: freebsd-java@freebsd.org Subject: Using ORBacus. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! I was just wondering if anyone have been using ORBacus from the ports tree as an ORB together with jdk, what seems to be missing is the org.omg.CORBA classes from the ORBacus port, or have I missed something ? /Khaled Daham, w.arts Mail: khaled@w-arts.com Cell: +46-70-6785492, +966-54491462 FreeBSD: The Power to Serve! http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Jul 24 5: 6:10 2000 Delivered-To: freebsd-java@freebsd.org Received: from kiew.egd.igd.fhg.de (kiew.egd.igd.fhg.de [192.102.170.32]) by hub.freebsd.org (Postfix) with ESMTP id 524B237B82F for ; Mon, 24 Jul 2000 05:06:05 -0700 (PDT) (envelope-from runge@rostock.zgdv.de) Received: from rostock.zgdv.de (penguin.egd.igd.fhg.de [192.102.170.145]) by kiew.egd.igd.fhg.de (Netscape Messaging Server 3.6) with ESMTP id AAA6A99 for ; Mon, 24 Jul 2000 14:05:58 +0200 Message-ID: <397C312E.682E2AAA@rostock.zgdv.de> Date: Mon, 24 Jul 2000 14:06:06 +0200 From: Thomas Runge X-Mailer: Mozilla 4.74 [en] (X11; U; FreeBSD 4.0-STABLE i386) X-Accept-Language: en, de MIME-Version: 1.0 Cc: freebsd-java@FreeBSD.ORG Subject: Re: Using ORBacus. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Khaled Daham wrote: > > Hi! > > I was just wondering if anyone have been using ORBacus from > the ports tree as an ORB together with jdk, what seems to be missing > is the org.omg.CORBA classes from the ORBacus port, or have I missed > something ? /usr/ports/devel/ORBacus installs the C++ version. I guess, you're looking for the Java version. Build that by yourself or get the precompiled jar file from ooc.com. Building it by yourself is quite easy, but you need the C++ version installed before (actually, you need the idl compiler, jidl). -- Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Jul 24 15:12:30 2000 Delivered-To: freebsd-java@freebsd.org Received: from tkh.att.ne.jp (tkh.att.ne.jp [165.76.17.8]) by hub.freebsd.org (Postfix) with ESMTP id 6FBFC37BE4A for ; Mon, 24 Jul 2000 15:12:12 -0700 (PDT) (envelope-from fuyuhik8@is.titech.ac.jp) Received: from tripper.is.titech.ac.jp.is.titech.ac.jp (176.pool27.tokyo.att.ne.jp [165.76.232.191]) by tkh.att.ne.jp (8.8.8+Spin/3.6W-CONS(07/05/00)) id HAA19690; Tue, 25 Jul 2000 07:12:07 +0900 (JST) Date: Tue, 25 Jul 2000 07:14:50 +0900 Message-ID: <55ittv41lx.wl@is.titech.ac.jp> From: Fuyuhiko Maruyama To: freebsd-java@FreeBSD.ORG Subject: Patches to allow timing based profiling. User-Agent: Wanderlust/2.2.18 (Please Forgive Me) on XEmacs/21.2.35 "Nike" MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: multipart/mixed; boundary="Multipart_Tue_Jul_25_07:14:43_2000-1" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --Multipart_Tue_Jul_25_07:14:43_2000-1 Content-Type: text/plain; charset=US-ASCII Hi, all. I made a patches to allow timing based profiling (using hprof) on FreeBSD JDK 1.2.2 (with patchset-9). Patches attached this mail make two contributions: 1. On pentium-platform (not PentiumPro, PentiumII, K6...), there was problem JVM causes Segmentation Fault when profiling is enabled. This is assembler version interpretter's bug (may be in Solaris/Win32 version). The patch for executeJava_p5.inc fix this bug. 2. Patchset-9 doesn't give meaningful value for sysThreadCPUTime() function. On Solaris, the function is implemented using gethrvtime() which doesn't exist on FreeBSD, so patchset-9 used to simply return 0. This is not so serious problem whenever timing based profiling isn't used. The patch for threads_md.c implement the function using getrusage(...). This may be too heavy function, but I don't know any other simple alternatives. The good news is, it will be used *only when* timing based profiling is enabled, so I believe the heavyness of sysThreadCPUTime() doesn't affect the efficiency of non-profiling run. With this patches, you can get timing based profiling data using hprof like: $ java -Xrunhprof:cpu=times Hello Thank you. -- Fuyuhiko Maruyama Matsuoka laboratory, Department of Mathematical and Computing Sciences, Graduate School of Tokyo Institute of Technology. --Multipart_Tue_Jul_25_07:14:43_2000-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="profiling.diffs" Content-Transfer-Encoding: 7bit --- src/share/javavm/runtime/executeJava_p5.inc.orig Tue Jun 29 19:16:43 1999 +++ src/share/javavm/runtime/executeJava_p5.inc Mon Jul 24 12:15:57 2000 @@ -220,6 +220,7 @@ jnz Lb(Profiling_jvmpi_$1) Lb(BackFromProfiling_jvmpi_$1): + xor eax, eax MOV(eax, al, BYTE PTR [esi]) Dispatch0 --- src/freebsd/hpi/green_threads/src/threads_md.c.orig Tue Jun 20 03:01:46 2000 +++ src/freebsd/hpi/green_threads/src/threads_md.c Mon Jul 3 11:41:38 2000 @@ -20,7 +20,9 @@ #include #ifdef __FreeBSD__ +#include #include +#include #else #include #endif @@ -953,12 +955,27 @@ static jlong sliceStartTime = -1; +#ifdef __FreeBSD__ +static inline jlong +ruGethrvtime() +{ + struct rusage rusage; + jlong time; + getrusage(RUSAGE_SELF, &rusage); + return ((jlong)rusage.ru_utime.tv_sec) * (jlong)1000000000 + + ((jlong)rusage.ru_utime.tv_usec * (jlong)1000) + + ((jlong)rusage.ru_stime.tv_sec) * (jlong)1000000000 + + ((jlong)rusage.ru_stime.tv_usec * (jlong)1000); +} +#endif + jlong sysThreadCPUTime() { sys_thread_t * t = greenThreadSelf(); #ifdef __FreeBSD__ - jlong time = 0LL; + /* jlong time = 0LL; */ + jlong time = ruGethrvtime(); #else jlong time = gethrvtime(); #endif @@ -973,7 +990,8 @@ { sys_thread_t * t = greenThreadSelf(); #ifdef __FreeBSD__ - jlong time = 0LL; + /* jlong time = 0LL; */ + jlong time = ruGethrvtime(); #else jlong time = gethrvtime(); #endif --Multipart_Tue_Jul_25_07:14:43_2000-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 25 8:43: 0 2000 Delivered-To: freebsd-java@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 92EDF37B649 for ; Tue, 25 Jul 2000 08:42:54 -0700 (PDT) (envelope-from glewis@ares.trc.adelaide.edu.au) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id BAA22456; Wed, 26 Jul 2000 01:12:38 +0930 (CST) (envelope-from glewis) From: Greg Lewis Message-Id: <200007251542.BAA22456@ares.trc.adelaide.edu.au> Subject: Re: Patches to allow timing based profiling. In-Reply-To: <55ittv41lx.wl@is.titech.ac.jp> from Fuyuhiko Maruyama at "Jul 25, 2000 07:14:50 am" To: Fuyuhiko Maruyama Date: Wed, 26 Jul 2000 01:12:38 +0930 (CST) Cc: freebsd-java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL70 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM964539758-18521-0_ Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --ELM964539758-18521-0_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Fuyuhiko Maruyama wrote: > Hi, all. > > I made a patches to allow timing based profiling (using hprof) > on FreeBSD JDK 1.2.2 (with patchset-9). Arigato Maruyama-san! > Patches attached this mail make two contributions: > 1. On pentium-platform (not PentiumPro, PentiumII, K6...), there > was problem JVM causes Segmentation Fault when profiling is > enabled. This is assembler version interpretter's bug (may be in > Solaris/Win32 version). The patch for executeJava_p5.inc fix > this bug. Good catch :). > 2. Patchset-9 doesn't give meaningful value for sysThreadCPUTime() > function. On Solaris, the function is implemented using > gethrvtime() which doesn't exist on FreeBSD, so patchset-9 used > to simply return 0. This is not so serious problem whenever > timing based profiling isn't used. The patch for threads_md.c > implement the function using getrusage(...). This may be too > heavy function, but I don't know any other simple alternatives. > The good news is, it will be used *only when* timing based > profiling is enabled, so I believe the heavyness of > sysThreadCPUTime() doesn't affect the efficiency of non-profiling > run. I've done this one slightly differently. I just named the function you implemented gethrvtime, which simplified the code a little bit. I don't think this has any adverse affects. I will attach a diff so you can look it over. -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre --ELM964539758-18521-0_ Content-Type: text/plain; charset=US-ASCII Content-Disposition: attachment; filename=threads_md.diff Content-Description: threads_md.diff Content-Transfer-Encoding: 7bit --- threads_md.c.orig Wed Jul 26 00:01:35 2000 +++ threads_md.c Wed Jul 26 00:08:15 2000 @@ -20,7 +20,9 @@ #include #ifdef __FreeBSD__ +#include #include +#include #else #include #endif @@ -953,15 +955,29 @@ static jlong sliceStartTime = -1; +#ifdef __FreeBSD__ +/* + * FreeBSD doesn't have gethrvtime(), so implement it using getrusage(). + */ +static inline jlong +gethrvtime() +{ + struct rusage rusage; + jlong time; + getrusage(RUSAGE_SELF, &rusage); + return ((jlong)rusage.ru_utime.tv_sec) * (jlong)1000000000 + + ((jlong)rusage.ru_utime.tv_usec * (jlong)1000) + + ((jlong)rusage.ru_stime.tv_sec) * (jlong)1000000000 + + ((jlong)rusage.ru_stime.tv_usec * (jlong)1000); +} +#endif + + jlong sysThreadCPUTime() { sys_thread_t * t = greenThreadSelf(); -#ifdef __FreeBSD__ - jlong time = 0LL; -#else jlong time = gethrvtime(); -#endif if (sliceStartTime == -1) sliceStartTime = time; time += t->elapsedCPUTime - sliceStartTime; @@ -972,11 +988,7 @@ updateSliceStart() { sys_thread_t * t = greenThreadSelf(); -#ifdef __FreeBSD__ - jlong time = 0LL; -#else jlong time = gethrvtime(); -#endif if (sliceStartTime == -1) sliceStartTime = time; t->elapsedCPUTime += time - sliceStartTime; --ELM964539758-18521-0_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 25 18:38:57 2000 Delivered-To: freebsd-java@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 4E36937B56C for ; Tue, 25 Jul 2000 18:38:51 -0700 (PDT) (envelope-from glewis@ares.trc.adelaide.edu.au) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id LAA29440 for freebsd-java@freebsd.org; Wed, 26 Jul 2000 11:08:48 +0930 (CST) (envelope-from glewis) From: Greg Lewis Message-Id: <200007260138.LAA29440@ares.trc.adelaide.edu.au> Subject: Heap Analysis Tool To: freebsd-java@freebsd.org Date: Wed, 26 Jul 2000 11:08:48 +0930 (CST) X-Mailer: ELM [version 2.4ME+ PL70 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Ok, this is a general Java question more than one specific to FreeBSD, but hopefully somewhere out there has some information :). I'm trying to track down some memory problems with a largish application at work and the Heap Analysis Tool (HAT) mentioned at http://java.sun.com/people/billf/heap/index.html looks like it would be quite useful. Unfortunately, all the links to it for downloading point to http://developer.java.sun.com/developer/earlyAccess/hat, which gets me a 404 error. I've been unable to find it anywhere else at the JavaSoft site, if somebody knows where they are hiding it or knows of a similar tool (preferably one that runs under FreeBSD :) I'd love to know about it. Thanks! P.S. I know patchset 10 is late in coming. Sorry about that. -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Jul 28 5:39:23 2000 Delivered-To: freebsd-java@freebsd.org Received: from aps.mark-itt.ru (udm.ru [195.161.91.16]) by hub.freebsd.org (Postfix) with ESMTP id F21FA37C1C9 for ; Fri, 28 Jul 2000 05:39:18 -0700 (PDT) (envelope-from oleg@mark-itt.ru) Received: from [195.161.91.15] (HELO mark-itt.ru) by aps.mark-itt.ru (CommuniGate Pro SMTP 3.3) with ESMTP id 3609245 for freebsd-java@freebsd.org; Fri, 28 Jul 2000 17:39:13 +0500 Message-ID: <398180AE.FA0C56C0@mark-itt.ru> Date: Fri, 28 Jul 2000 17:46:38 +0500 From: Oleg Okhotnikov X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: libgcj Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello! Has anybody ported libgcj to FreeBSD 4.x ? Oleg. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message