From owner-freebsd-java@FreeBSD.ORG Mon Feb 1 11:08:23 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 318DD10656D2 for ; Mon, 1 Feb 2010 11:08:23 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.freebsd.org (Postfix) with ESMTP id A85448FC25 for ; Mon, 1 Feb 2010 11:08:22 +0000 (UTC) Received: from nox-laptop.student.utwente.nl (nox-laptop.student.utwente.nl [130.89.160.140]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o11B7vED031221; Mon, 1 Feb 2010 12:07:58 +0100 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Mon, 1 Feb 2010 12:07:56 +0100 User-Agent: KMail/1.9.10 References: <8B6860326495B2438DCBEA74AA981C7A78B220E0@MBX01.exg5.exghost.com> <201002010144.41376.pieter@degoeje.nl> <8B6860326495B2438DCBEA74AA981C7A78B220EE@MBX01.exg5.exghost.com> In-Reply-To: <8B6860326495B2438DCBEA74AA981C7A78B220EE@MBX01.exg5.exghost.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201002011207.57163.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact icts.servicedesk@utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Joe Lin Subject: Re: DatagramCahnnel scatter/gather problem on diablo 1.6.0_07-b02 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 11:08:23 -0000 On Monday 01 February 2010 02:08:55 Joe Lin wrote: > Thanks for the reply. I looked at JDK source code and it appears that the > JNI call should be in > > J2se/src/solaris/native/sun/nio/ch/DatagramDispatcher.c:write0(): > > > There's only linux and solaris #ifdef but not for BSD. I wonder how/what > BSD is calling. Since I'm getting a "IOException:Invalid argument" so I > guess this should correspond to a EINVAL. And a sendmsg() in FreeBSD does > not return an EINVAL. So the Diablo port must be calling a writev(). But I > could not locate the source code. Wish I can find out what went wrong with > dialblo VM. You could use ktrace/kdump to find out what it (not?) calls and why it dies. - Pieter