Skip to content

Commit

Permalink
v1.40
Browse files Browse the repository at this point in the history
wrong "fix" in 1.39 passed tests but crashed large middleware app
  • Loading branch information
Rüdiger Möller committed Mar 6, 2014
1 parent 1b6bb3c commit 25151b9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 28 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import java.util.zip.ZipFile

apply plugin: 'java'
apply plugin: 'maven'
version="1.39"
version="1.40"


jar.baseName='fst'
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>1.39</version>
<version>1.40</version>

<description>a fast java serialization drop in-replacement + some serialization based utils (Structs, OffHeap Memory)</description>
<url>https://code.google.com/p/fast-serialization/</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public FSTFieldInfo(Class[] possibleClasses, Field fi, boolean ignoreAnnotations
try {
memOffset = (int)FSTUtil.unFlaggedUnsafe.objectFieldOffset(fi);
} catch ( Throwable th ) {
throw FSTUtil.rethrow(th);
//throw FSTUtil.rethrow(th);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,6 @@ public FSTInputStream(InputStream in) {
public void initFromStream(InputStream in) {
try {
this.in = in;
if ( in instanceof ByteArrayInputStream ) {
int available = in.available();
buf = cachedBuffer.get();
if ( buf == null || buf.length < available) {
buf = new byte[available];
cachedBuffer.set(buf);
}
in.read(buf,0,available);
count = available;
return;
}
if (buf==null) {
buf = cachedBuffer.get();
if ( buf == null ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,21 @@ public static void main( String[] arg ) throws Exception {
runner.charter.text("<i>intel i7 3770K 3,4 ghz, 4 core, 8 threads</i>");
runner.charter.text("<i>"+System.getProperty("java.runtime.version")+","+System.getProperty("java.vm.name")+","+System.getProperty("os.name")+"</i>");

SerTest.WarmUP = 20000; SerTest.Run = SerTest.WarmUP*1+1;
// SerTest.WarmUP = 2000; SerTest.Run = 3000;
// runner.runAll(FrequentPrimitives.getArray(200));
// runner.runAll(FrequentPrimitivesExternalizable.getArray(200));
// runner.runAll(new FrequentCollections());
// runner.runAll(new LargeNativeArrays());
// SerTest.WarmUP = 20000; SerTest.Run = SerTest.WarmUP*1+1;
SerTest.WarmUP = 200; SerTest.Run = 3000;
runner.runAll(FrequentPrimitives.getArray(200));
runner.runAll(FrequentPrimitivesExternalizable.getArray(200));
runner.runAll(new FrequentCollections());
runner.runAll(new LargeNativeArrays());
runner.runAll(new StringPerformance(0));
// runner.runAll(new Primitives(0).createPrimArray());
// runner.runAll(new PrimitiveArrays().createPrimArray());
// runner.runAll(new CommonCollections());
// runner.runAll(Trader.generateTrader(101, true));
// runner.runAll(ManyClasses.getArray() );
// runner.runAll(new ExternalizableTest());
// runner.runAll(new BigObject("dummy"));
// runner.runAll(HeavyNesting.createNestedObject(1000));
runner.runAll(new Primitives(0).createPrimArray());
runner.runAll(new PrimitiveArrays().createPrimArray());
runner.runAll(new CommonCollections());
runner.runAll(Trader.generateTrader(101, true));
runner.runAll(ManyClasses.getArray() );
runner.runAll(new ExternalizableTest());
runner.runAll(new BigObject("dummy"));
runner.runAll(HeavyNesting.createNestedObject(1000));
runner.charter.closeDoc();
FSTTestApp.main(new String[0]);
}
Expand Down

0 comments on commit 25151b9

Please sign in to comment.