Java Code Examples for java.io.ObjectOutputStream#reset()
The following examples show how to use
java.io.ObjectOutputStream#reset() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: TencentKona-8 File: CustomObjTrees.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with each batch containing * the given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Node[] trees, int nbatches) throws Exception { int ncycles = trees.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(trees[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 2
Source Project: jdk8u-jdk File: CustomDefaultObjTrees.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with each batch containing * the given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Node[] trees, int nbatches) throws Exception { int ncycles = trees.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(trees[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 3
Source Project: TencentKona-8 File: Strings.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, String[] strs, int nbatches, int ncycles) throws Exception { for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(strs[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 4
Source Project: jdk8u-jdk File: CharArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, char[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 5
Source Project: openjdk-jdk9 File: LongArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, long[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 6
Source Project: jdk8u-jdk File: ShortArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, short[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 7
Source Project: dragonwell8_jdk File: DoubleArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, double[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 8
Source Project: jdk8u-dev-jdk File: ShortArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, short[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 9
Source Project: openjdk-8-source File: LongArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, long[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 10
Source Project: openjdk-8 File: ProxyArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Proxy[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 11
Source Project: jdk8u60 File: ObjArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Node[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 12
Source Project: jdk8u-dev-jdk File: GetPutFieldTrees.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with each batch containing * the given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Node[] trees, int nbatches) throws Exception { int ncycles = trees.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(trees[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 13
Source Project: jdk8u-dev-jdk File: ObjTrees.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with each batch containing * the given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Node[] trees, int nbatches) throws Exception { int ncycles = trees.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(trees[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 14
Source Project: jdk8u-dev-jdk File: LongArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, long[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 15
Source Project: openjdk-jdk8u File: GetPutFieldTrees.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with each batch containing * the given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Node[] trees, int nbatches) throws Exception { int ncycles = trees.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(trees[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 16
Source Project: openjdk-8 File: CustomDefaultObjTrees.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with each batch containing * the given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Node[] trees, int nbatches) throws Exception { int ncycles = trees.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(trees[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 17
Source Project: jdk8u_jdk File: CharArrays.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with given number of cycles * for each batch. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, char[][] arrays, int nbatches) throws Exception { int ncycles = arrays.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(arrays[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 18
Source Project: jdk8u_jdk File: ExternObjTrees.java License: GNU General Public License v2.0 | 6 votes |
/** * Run benchmark for given number of batches, with each batch containing * the given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, Node[] trees, int nbatches) throws Exception { int ncycles = trees.length; for (int i = 0; i < nbatches; i++) { sbuf.reset(); oout.reset(); for (int j = 0; j < ncycles; j++) { oout.writeObject(trees[j]); } oout.flush(); for (int j = 0; j < ncycles; j++) { oin.readObject(); } } }
Example 19
Source Project: openjdk-jdk8u File: ClassDesc.java License: GNU General Public License v2.0 | 5 votes |
/** * Run benchmark for given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, ObjectStreamClass desc, int ncycles) throws Exception { for (int i = 0; i < ncycles; i++) { sbuf.reset(); oout.reset(); oout.writeObject(desc); oout.flush(); oin.readObject(); } }
Example 20
Source Project: openjdk-8 File: ClassDesc.java License: GNU General Public License v2.0 | 5 votes |
/** * Run benchmark for given number of cycles. */ void doReps(ObjectOutputStream oout, ObjectInputStream oin, StreamBuffer sbuf, ObjectStreamClass desc, int ncycles) throws Exception { for (int i = 0; i < ncycles; i++) { sbuf.reset(); oout.reset(); oout.writeObject(desc); oout.flush(); oin.readObject(); } }