rows
IOException {
> + ByteBuffer bf = ByteBuffer.allocateDirect(headerBlockSize +
dataBlockSize);
> + bf.put(header);
> + bf.put(data);
> + bf.flip();
> + storeFC.write(bf, (headerBlockSize + dataBlockSize) * entry);
> + }
> + private void fcReadStore(long entry,byte[] header, byte[] data ) throws
IOException {
> + ByteBuffer bf = ByteBuffer.allocateDirect(headerBlockSize +
dataBlockSize);
> + int dataRead = storeFC.read(bf, (headerBlockSize +
> dataBlockSize) *
entry);
> +
> + if (dataRead != headerBlockSize + dataBlockSize)
> + throw new EOFException();
> +
> + bf.flip();
> + bf.get(header);
> + bf.get(data);
> + }
> +
> public void handleOOM() throws Exception {
> if (storeRAF != null)
> storeRAF.getFD().sync();
>
> ___
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
>
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080425/4092c8f6/attachment.pgp>
id you tag trunk and not trunk/freenet/ ???
>
> To include contrib?
> >
> > That's not what we did for previous releases.
>
> Is it better?
I'm not sure but consitency is good in any case.
-- next part --
A non-text attachment was scrubbed...
it better?
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080425/793af693/attachment.pgp>
//emu.freenetproject.org/pipermail/devl/attachments/20080425/ca811cf8/attachment.pgp>
part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080425/7e89b30b/attachment.pgp>
On Fri, Apr 25, 2008 at 7:03 AM, Matthew Toseland
wrote:
> On Thursday 24 April 2008 17:19, nextgens at freenetproject.org wrote:
> > Author: nextgens
> > Date: 2008-04-24 16:19:07 + (Thu, 24 Apr 2008)
> > New Revision: 19544
> >
> > Modified:
> >
ealBuffer, i
> * STRIPE_SIZE, STRIPE_SIZE);
> + Closer.close(os);
> + }
> + }
> }
>
> - }
> - finally {
> - for(int i = 0; i < k; i++)
> - Closer.close(readers[i]);
> - for(int i = 0; i < n - k; i++)
> - Closer.close(writers[i]);
> - }
> // Set new buckets only after have a successful decode.
> for(int i = 0; i < checkBlockStatus.length; i++) {
> Bucket data = buckets[i + k];
>
> ___
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
>
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20080425/035de1ef/attachment.pgp>
* Matthew Toseland [EMAIL PROTECTED] [2008-04-25 00:03:17]:
On Thursday 24 April 2008 17:19, [EMAIL PROTECTED] wrote:
Author: nextgens
Date: 2008-04-24 16:19:07 + (Thu, 24 Apr 2008)
New Revision: 19544
Modified:
trunk/freenet/src/freenet/client/FECCodec.java
Log:
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2008-04-24 18:00:12]:
Author: toad
Date: 2008-04-24 18:00:12 + (Thu, 24 Apr 2008)
New Revision: 19547
Added:
tags/freenet-0.7.0-rc2/
Log:
Tag 0.7.0-rc2
Copied: tags/freenet-0.7.0-rc2 (from rev 19539, trunk)
Heh! Why did you tag trunk
* Matthew Toseland [EMAIL PROTECTED] [2008-04-25 13:44:37]:
On Friday 25 April 2008 11:03, Florent Daignière wrote:
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2008-04-24 18:00:12]:
Author: toad
Date: 2008-04-24 18:00:12 + (Thu, 24 Apr 2008)
New Revision: 19547
Added:
On Friday 25 April 2008 11:03, Florent Daignière wrote:
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2008-04-24 18:00:12]:
Author: toad
Date: 2008-04-24 18:00:12 + (Thu, 24 Apr 2008)
New Revision: 19547
Added:
tags/freenet-0.7.0-rc2/
Log:
Tag 0.7.0-rc2
Copied:
According to a comment filed by sdiz on bug #2301:
FileChannel.read()/write() on windows do serialized read/write.
Better nio for windows is on java 7 todo list. But I don't think they can
finish it on schedule.
So do we need to have multiple cache files to workaround this win-specific
bug?
...please remove stun.fwd.org from JSTUN.java. Does'nt look like a functioning
site.
// Sven-Ola
___
Devl mailing list
Devl@freenetproject.org
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
You may be interested in AOT-compiled profiling outcome - attached the first
couple of lines from gprof.
// Sven-Ola
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds secondscalls Ts/call Ts/call name
I'm reverting this before releasing 1144. You can put it back afterwards, but
it needs to be rewritten a bit: FileChannel.read() is not guaranteed to
complete the operation (unlike RandomAccessFile.readFully()). Also there are
a few RuntimeException's that you might want to catch explicitly.
Freenet 0.7 build 1144 is now available. Please upgrade. Please let me know if
auto-update doesn't work for you. This build will be mandatory on Monday, and
the main change is a couple of major bugfixes to the load limiting code which
will hopefully result in nodes accepting fewer SSKs and more
On Sat, Apr 26, 2008 at 7:04 AM, Matthew Toseland
[EMAIL PROTECTED] wrote:
I'm reverting this before releasing 1144. You can put it back afterwards, but
it needs to be rewritten a bit: FileChannel.read() is not guaranteed to
complete the operation (unlike RandomAccessFile.readFully()). Also
17 matches
Mail list logo