[Cost] Comment out non-deterministic test

Summary: This diff comments out a test that introduces non-deterministic analysis result.

Reviewed By: rgrig

Differential Revision: D28440794

fbshipit-source-id: 95e6fbe06
master
Sungkeun Cho 4 years ago committed by Facebook GitHub Bot
parent 6a0f16b463
commit f26573c0ef

@ -31,9 +31,16 @@ public class IteratorTest {
BLUE; BLUE;
// The cost of class initializer should be constant. // The cost of class initializer should be constant.
/* NOTE: Comment out the test because of non-deterministic analysis results. There are mutual
dependencies between `<clinit>` and `Color.values`.
- `<clinit>` calls `Color.values` below.
- `Color.values` reads the global constant `$VALUE` and it is defined inside `<clinit>`. */
/*
static { static {
for (Color c : Color.values()) {} for (Color c : Color.values()) {}
} }
*/
} }
public void enum_iter() { public void enum_iter() {

@ -224,7 +224,7 @@ codetoanalyze/java/performance/Invariant.java, Invariant.formal_not_invariant_FP
codetoanalyze/java/performance/Invariant.java, Invariant.list_size_invariant(java.util.List):void, 4 + 5 ⋅ items.length + 3 ⋅ (items.length + 1), OnUIThread:false, [{items.length + 1},Loop,{items.length},Loop] codetoanalyze/java/performance/Invariant.java, Invariant.list_size_invariant(java.util.List):void, 4 + 5 ⋅ items.length + 3 ⋅ (items.length + 1), OnUIThread:false, [{items.length + 1},Loop,{items.length},Loop]
codetoanalyze/java/performance/Invariant.java, Invariant.local_not_invariant_FP(int):void, 6 + 12 ⋅ (size + 5) + 7 ⋅ (size + 5) × (5+min(1, size)) + 4 ⋅ (5+min(0, size)), OnUIThread:false, [{5+min(0, size)},Loop,{5+min(1, size)},Loop,{size + 5},Loop] codetoanalyze/java/performance/Invariant.java, Invariant.local_not_invariant_FP(int):void, 6 + 12 ⋅ (size + 5) + 7 ⋅ (size + 5) × (5+min(1, size)) + 4 ⋅ (5+min(0, size)), OnUIThread:false, [{5+min(0, size)},Loop,{5+min(1, size)},Loop,{size + 5},Loop]
codetoanalyze/java/performance/Invariant.java, Invariant.x_is_invariant_ok(int):void, 11 + 6 ⋅ (size + 20), OnUIThread:false, [{size + 20},Loop] codetoanalyze/java/performance/Invariant.java, Invariant.x_is_invariant_ok(int):void, 11 + 6 ⋅ (size + 20), OnUIThread:false, [{size + 20},Loop]
codetoanalyze/java/performance/IteratorTest.java, IteratorTest$Color.<clinit>():void, 73, OnUIThread:false, [] codetoanalyze/java/performance/IteratorTest.java, IteratorTest$Color.<clinit>():void, 37, OnUIThread:false, []
codetoanalyze/java/performance/IteratorTest.java, IteratorTest$Color.<init>(java.lang.String,int), 4, OnUIThread:false, [] codetoanalyze/java/performance/IteratorTest.java, IteratorTest$Color.<init>(java.lang.String,int), 4, OnUIThread:false, []
codetoanalyze/java/performance/IteratorTest.java, IteratorTest$Color.valueOf(java.lang.String):IteratorTest$Color, 6, OnUIThread:false, [] codetoanalyze/java/performance/IteratorTest.java, IteratorTest$Color.valueOf(java.lang.String):IteratorTest$Color, 6, OnUIThread:false, []
codetoanalyze/java/performance/IteratorTest.java, IteratorTest$Color.values():IteratorTest$Color[], 6, OnUIThread:false, [] codetoanalyze/java/performance/IteratorTest.java, IteratorTest$Color.values():IteratorTest$Color[], 6, OnUIThread:false, []

Loading…
Cancel
Save