This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: fix java.nio.DirectByteBufferImpl memory ownership bug
- From: Tom Tromey <tromey at redhat dot com>
- To: Anthony Green <green at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: 03 Apr 2005 00:22:25 -0700
- Subject: Re: Patch: fix java.nio.DirectByteBufferImpl memory ownership bug
- References: <1112512176.5223.7.camel@localhost.localdomain>
- Reply-to: tromey at redhat dot com
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> If DirectByteBufferImpl is created with a raw buffer pointer,
Anthony> via JNI say, then we need to set "owner" to null. If we
Anthony> don't do this, then our finalizer will try to free() this
Anthony> memory resulting in badness. This is explained in the
Anthony> comments at the top of the source file.
Anthony> Ok for HEAD and 4.0 branch?
Yes, thanks.
Please mention "PR libgcj/20727" in the ChangeLog entry.
Tom