Skip to content

Commit 39713b4

Browse files
committedAug 18, 2020
Remove Fuzz from problem list
1 parent b71b642 commit 39713b4

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed
 

‎test/jdk/ProblemList.txt

-2
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,6 @@ java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java 8151492 generic-
573573
java/lang/invoke/LFCaching/LFGarbageCollectedTest.java 8078602 generic-all
574574
java/lang/invoke/lambda/LambdaFileEncodingSerialization.java 8249079 linux-x64
575575

576-
java/lang/Continuation/Fuzz.java 0000000 generic-all
577-
578576
############################################################################
579577

580578
# jdk_instrument

‎test/jdk/java/lang/Continuation/Fuzz.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
import sun.hotspot.WhiteBox;
8181

8282
public class Fuzz implements Runnable {
83-
static final boolean RANDOM = true;
84-
static final boolean VERIFY_STACK = false; // could add significant time
83+
static final boolean VERIFY_STACK = true; // could add significant time
84+
static final boolean RANDOM = false;
8585
static final boolean VERBOSE = false;
8686

8787
public static void main(String[] args) {
@@ -195,16 +195,18 @@ public Op[] generate() {
195195
if (percent(3)) lowProb.addAll(Op.PIN);
196196
if (percent(3)) lowProb.addAll(Op.MH);
197197
if (percent(0)) lowProb.addAll(Op.REFLECTED);
198-
if (percent(90)) {
198+
if (percent(50)) {
199199
highProb.removeAll(Op.INTERPRETED);
200200
lowProb.removeAll(Op.INTERPRETED);
201201
}
202202
Op[] highProb0 = highProb.toArray(Op.ARRAY);
203203
Op[] lowProb0 = lowProb.toArray(Op.ARRAY);
204204

205+
int loops = 7;
205206
Op[] trace = new Op[length];
206207
for (int i=0; i < trace.length; i++) {
207208
trace[i] = pick((lowProb.isEmpty() || percent(90)) ? highProb0 : lowProb0);
209+
if (trace[i] == Op.LOOP && (loops--) <= 0) i--;
208210
}
209211
return trace;
210212
}

‎test/jdk/java/lang/Continuation/fuzz.dat

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
CALL_I_INT, CALL_C_MANY, YIELD, CALL_I_INT, CALL_C_MANY, YIELD
1010
CALL_C_CTCH, LOOP, YIELD, CALL_C_CTCH, CALL_I_MANY, CALL_I_CTCH, CALL_I_INT, CALL_C_INT, YIELD
1111
CALL_C_MANY, CALL_C_MANY, CALL_C_DBL, CALL_C_INT, CALL_C_CTCH, CALL_C_INT, CALL_C_DBL, YIELD, CALL_C_MANY, CALL_C_DBL, CALL_C_MANY, CALL_C_CTCH, CALL_C_CTCH, YIELD, YIELD
12-
CALL_C_INT, CALL_C_CTCH, YIELD, CALL_C_CTCH, CALL_C_CTCH, CALL_C_INT, YIELD, CALL_C_CTCH, CALL_C_CTCH, CALL_C_INT, CALL_C_MANY, CALL_C_MANY, CALL_C_DBL, YIELD, CALL_C_INT
12+
CALL_C_INT, CALL_C_CTCH, YIELD, CALL_C_CTCH, CALL_C_CTCH, CALL_C_INT, YIELD, CALL_C_CTCH, CALL_C_CTCH, CALL_C_INT, CALL_C_MANY, CALL_C_MANY, CALL_C_DBL, YIELD, CALL_C_INT
13+
14+
# CALL_C_DBL, CALL_C_INT, CALL_C_MANY, YIELD, CALL_C_MANY, CALL_C_MANY, CALL_C_CTCH, CALL_C_INT, YIELD, CALL_C_MANY, YIELD, CALL_C_DBL, YIELD, CALL_C_INT, CALL_C_MANY, CALL_C_INT, YIELD, YIELD, CALL_C_CTCH, CALL_C_INT, CALL_C_DBL, CALL_C_MANY, CALL_C_CTCH, CALL_C_CTCH, YIELD, CALL_C_INT, CALL_C_CTCH, YIELD, LOOP, CALL_C_INT, CALL_C_CTCH, CALL_C_DBL, CALL_C_CTCH, CALL_C_INT, CALL_C_DBL, LOOP, CALL_C_MANY, CALL_C_INT, LOOP, LOOP, CALL_C_DBL, LOOP, CALL_C_INT, CALL_C_MANY, CALL_C_DBL, CALL_C_INT, CALL_C_MANY, CALL_C_CTCH, CALL_C_MANY, YIELD, LOOP, YIELD

0 commit comments

Comments
 (0)
Please sign in to comment.