From owner-freebsd-java@FreeBSD.ORG  Thu Jul 23 10:47:08 2009
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
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 543FE1065672
	for <freebsd-java@freebsd.org>; Thu, 23 Jul 2009 10:47:08 +0000 (UTC)
	(envelope-from artemciy@gmail.com)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153])
	by mx1.freebsd.org (Postfix) with ESMTP id D3FD48FC13
	for <freebsd-java@freebsd.org>; Thu, 23 Jul 2009 10:47:07 +0000 (UTC)
	(envelope-from artemciy@gmail.com)
Received: by fg-out-1718.google.com with SMTP id 13so229639fge.12
	for <freebsd-java@freebsd.org>; Thu, 23 Jul 2009 03:47:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from
	:user-agent:mime-version:to:subject:references:in-reply-to
	:content-type:content-transfer-encoding;
	bh=JV9uoKDT8e9pUidQoEuC1eVWCIVtvoDb6Jw/x4SRX4o=;
	b=KNahH4QeiFiObQ3fnumJSMM5Da/QzPvmSsz6jIStNUwONZspjDVy+L6WLSg5P+B64R
	s8wSqb9wOMNep882Gd6QfxhwcI139PKRKlG976DEOba3gcX+QrXcKF0Nkmhxuok98vjX
	YQe7zXyOV4i9uAcOju2xjQLNtw/EMHMmnm39s=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	b=SRjpl7kskX3fLBVixbtiC1vVjC6yR4PrqKtRK19vAq90Bf3eUE/YMcc2nIMFnX0Wp8
	T6LXrKCrR9kXzP4tgj3GGE5uXn5LxagZ8Ja4po32JxMKtFTtZOxJfDxlmzbivuY/zJj+
	ND7cwOj7g/uIe9h8mGUDeiuKvRNQQxQ4c+CT0=
Received: by 10.86.89.6 with SMTP id m6mr1748277fgb.1.1248346026916;
	Thu, 23 Jul 2009 03:47:06 -0700 (PDT)
Received: from ?192.168.1.4? ([77.232.13.65])
	by mx.google.com with ESMTPS id l19sm3892490fgb.6.2009.07.23.03.47.06
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Thu, 23 Jul 2009 03:47:06 -0700 (PDT)
Message-ID: <4A683FA8.2080902@gmail.com>
Date: Thu, 23 Jul 2009 14:47:04 +0400
From: ArtemGr <artemciy@gmail.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090721)
MIME-Version: 1.0
To: freebsd-java@freebsd.org
References: <4A683C8F.3030608@gmail.com>
In-Reply-To: <4A683C8F.3030608@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: file size growth on FileChannel.map
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Jul 2009 10:47:08 -0000

ArtemGr wrote:
> When I use a FileChannel.map several times to map a large region into 
> memory, the file size suddenly increase.
> The mapped region is always withing the file, e.g. always less than 
> FileChannel.position!
Sorry, my bad!
Gave position instead of length for the third argument of "map"...