Date: Thu, 27 Oct 2005 00:00:39 +0300 From: Panagiotis Astithas <past@ebs.gr> To: Landon Fuller <landonf@threerings.net> Cc: freebsd-java@freebsd.org Subject: Re: [PATCH] Sun Bug #4879883: Allocating direct buffers causes OutOfMemoryError Message-ID: <435FEE77.1000606@ebs.gr> In-Reply-To: <b9facca8733dd904d555aa7845420cbf@threerings.net>
index | next in thread | previous in thread | raw e-mail
Landon Fuller wrote: > From http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4879883 > A DESCRIPTION OF THE PROBLEM : > Allocating a direct byte buffer may give an OutOfMemoryError, even when > plenty of memory is available. Although not used in the test case > below, in my application this occurs when reading a socket channel > > ---- > > We ran into this bug with jdk1.4.2; A simple reproduction case is > included in the referenced Sun bug report. > This bug was fixed in 1.5.0 and 1.4.2_05. > > I've back-ported Sun's changes from the 1.5.0 source. The patch (for > 1.4.2-p7) is attached below. > > Please let me know if you have any questions, > -landonf FYI, it works as advertised here. It fixes the reported bug and doesn't seem to break anything in my testing so far. Thanks, Panagiotishome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?435FEE77.1000606>
