Summary: Makes sure that topl summaries don't repeat. Previously this happened when two posts led to the same summary when procedure-local variables were killed. Such repeated summaries quickly lead to exponential explosion. (For example, the added test -- `ManyLoops.java` -- didn't finish in any reasonable time.) Reviewed By: jvillard Differential Revision: D25209623 fbshipit-source-id: 04b1a3e12master
parent
59daa1f022
commit
c829db4964
@ -1,5 +1,5 @@
|
||||
codetoanalyze/java/topl/baos/BaosTest.java, BaosTest.FP_dOk(byte[]):byte[], 0, TOPL_PULSE_ERROR, no_bucket, ERROR, [call to ByteArrayOutputStream.<init>(int),call to void FilterOutputStream.write(byte[]),call to byte[] ByteArrayOutputStream.toByteArray()]
|
||||
codetoanalyze/java/topl/baos/BaosTest.java, BaosTest.FP_eOk(byte[]):byte[], 0, TOPL_PULSE_ERROR, no_bucket, ERROR, [call to ByteArrayOutputStream.<init>(int),call to void FilterOutputStream.write(byte[]),call to byte[] ByteArrayOutputStream.toByteArray()]
|
||||
codetoanalyze/java/topl/baos/BaosTest.java, BaosTest.FP_dOk(byte[]):byte[], 0, TOPL_PULSE_ERROR, no_bucket, ERROR, [call to GZIPOutputStream.<init>(OutputStream),call to void FilterOutputStream.write(byte[]),call to byte[] ByteArrayOutputStream.toByteArray()]
|
||||
codetoanalyze/java/topl/baos/BaosTest.java, BaosTest.FP_eOk(byte[]):byte[], 0, TOPL_PULSE_ERROR, no_bucket, ERROR, [call to GZIPOutputStream.<init>(OutputStream),call to void FilterOutputStream.write(byte[]),call to byte[] ByteArrayOutputStream.toByteArray()]
|
||||
codetoanalyze/java/topl/baos/BaosTest.java, BaosTest.aBad():void, 0, TOPL_PULSE_ERROR, no_bucket, ERROR, [call to ObjectOutputStream.<init>(OutputStream),call to void ObjectOutputStream.writeObject(Object),call to byte[] ByteArrayOutputStream.toByteArray()]
|
||||
codetoanalyze/java/topl/baos/BaosTest.java, BaosTest.bBad():void, 0, TOPL_PULSE_ERROR, no_bucket, ERROR, [call to ObjectOutputStream.<init>(OutputStream),call to void ObjectOutputStream.writeObject(Object),call to byte[] ByteArrayOutputStream.toByteArray()]
|
||||
codetoanalyze/java/topl/baos/BaosTest.java, BaosTest.cBad():void, 0, TOPL_PULSE_ERROR, no_bucket, ERROR, [call to DataOutputStream.<init>(OutputStream),call to void DataOutputStream.writeLong(long),call to byte[] ByteArrayOutputStream.toByteArray()]
|
||||
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
import java.util.*;
|
||||
|
||||
class ManyLoops {
|
||||
|
||||
/** Test for performance. */
|
||||
void fOk() {
|
||||
Set<String> xs = new HashSet<String>();
|
||||
go(xs);
|
||||
go(xs);
|
||||
go(xs);
|
||||
go(xs);
|
||||
go(xs);
|
||||
go(xs);
|
||||
go(xs);
|
||||
go(xs);
|
||||
go(xs);
|
||||
go(xs);
|
||||
}
|
||||
|
||||
void go(Set<String> xs) {
|
||||
for (String x : xs) {
|
||||
System.out.println(x);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue