-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 17.0.17
-
Component/s: hotspot
-
x86_64
-
linux_ubuntu
ADDITIONAL SYSTEM INFORMATION :
- Operating system: Linux
- Compiler/toolchain: GCC 9.4
- Source commit: 86a5a83bef9fea1e00ba4cbc9878c02e20097bec (tag: jdk-17.0.18+7, branch: master)
- Build type: fastdebug
- Coverage: enabled (built with --enable-coverage)
- Build environment: Linux, compiled from source with GCC 9.4
A DESCRIPTION OF THE PROBLEM :
Based on the jtreg test case “TestChurnNotifications.java”, we generated a new test case and discovered a bug causing inconsistent results.
If you comment out the println statement on line 201 and run the Java program, it will report:
java.lang.ArrayIndexOutOfBoundsException: Index -731211386 out of bounds for length 100
If the `println` statement on line 201 is added, the Java program will terminate normally.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1: linux-x86_64-server-fastdebug/jdk/bin/javac -J-Xms2g -J-Xmx4g -J-XX:MaxMetaspaceSize=256m -J-XX:MaxDirectMemorySize=64m -J-Xss256k -J-XX:ParallelGCThreads=1 -J-XX:ReservedCodeCacheSize=64m -J-Xss256k -J-XX:+UseSerialGC -J-XX:ActiveProcessorCount=1 -J-XX:+ExitOnOutOfMemoryError -d . -implicit:class --add-modules jdk.incubator.vector TestChurnNotifications.java
2. java -Xcomp -XX:+UnlockDiagnosticVMOptions --add-modules jdk.incubator.vector -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+ShenandoahDegeneratedGC -Dprecise=true -XX:+LogCompilation -XX:LogFile=./jit.optimization.log -Dtest.jdk=./jdk17u/build/linux-x86_64-server-fastdebug/jdk TestChurnNotifications
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Whether or not the `println` statement on line 201 is added, the Java program should produce consistent results.
ACTUAL -
comment out the println statement on line 201,it will report: java.lang.ArrayIndexOutOfBoundsException:
---------- BEGIN SOURCE ----------
// Auto-generated by AllFuzzer at 2025-12-30T22:58:47.184346921
// run_args: -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+ShenandoahDegeneratedGC -Dprecise=true
import javax.management.*;
import jdk.incubator.vector.*;
import java.util.*;
import java.lang.management.*;
import com.sun.management.GarbageCollectionNotificationInfo;
import java.util.Arrays;
import java.util.concurrent.atomic.*;
import javax.management.openmbean.*;
import jdk.test.lib.Utils;
public class TestChurnNotifications {
static final long HEAP_MB = 128;
// adjust for test configuration above
static final long TARGET_MB = java.lang.Long.getLong("target", 2000);// 2 Gb allocation
// Should we track the churn precisely?
// Precise tracking is only reliable when GC is fully stop-the-world. Otherwise,
// we cannot tell, looking at heap used before/after, what was the GC churn.
static final boolean PRECISE = java.lang.Boolean.getBoolean("precise");
static final long M = 1024 * 1024;
static volatile java.lang.Object sink;
public static void main(java.lang.String[] args) {
try {
AllFuzzer_FakeMain_1767106727143_6312(args);
} catch (java.lang.OutOfMemoryError ex) {
ex.printStackTrace(System.err);
System.exit(1);
} catch (java.lang.Exception ex) {
ex.printStackTrace(System.err);
System.out.println(ex.getClass().getCanonicalName());
} catch (java.lang.Throwable ex) {
ex.printStackTrace(System.err);
System.out.println(ex.getClass().getCanonicalName());
}
}
public static void AllFuzzer_FakeMain_1767106727143_6312(java.lang.String[] args) throws java.lang.Exception {
ShortVector lv_ShortVector_1767106727072_91541742539948920 = null;
ShortVector lv_ShortVector_1767106727080_91541742619373782 = null;
ShortVector lv_ShortVector_1767106727080_91541742619053621 = null;
ShortVector lv_ShortVector_1767106727097_91541742795338863 = null;
IntVector lv_IntVector_1767106727079_91541742615970903 = null;
IntVector lv_IntVector_1767106727076_91541742585283290 = null;
IntVector lv_IntVector_1767106727078_91541742599435782 = null;
IntVector lv_IntVector_1767106727097_91541742791679364 = null;
IntVector lv_IntVector_1767106727076_91541742585738331 = null;
long[] lv_long_arr_1767106727095_91541742768787480 = new long[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
double lv_double_1767106727071_91541742536094610 = 2679.079418167553;
double lv_double_1767106727075_91541742572705661 = 2679.079418167553;
byte lv_byte_1767106727077_91541742594742450 = (byte)77;
short[] lv_short_arr_1767106727072_91541742540345070 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
short[] lv_short_arr_1767106727080_91541742619707562 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
short[] lv_short_arr_1767106727096_91541742780908694 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
short[] lv_short_arr_1767106727096_91541742780760443 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
short[] lv_short_arr_1767106727072_91541742540470901 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727076_91541742585892011 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727078_91541742599927243 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727079_91541742613792604 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727074_91541742562717510 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727076_91541742586027802 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
String lv_String_1767106727074_91541742563964121 = new String("");
String lv_String_1767106727074_91541742563776770 = new String("asdfasf123123");
String lv_String_1767106727093_91541742757094772 = new String("");
float lv_float_1767106727071_91541742538189920 = 683.1836f;
float lv_float_1767106727097_91541742790022841 = 683.1836f;
int lv_int_1767106727069_91541742510869711 = 840;
int lv_int_1767106727081_91541742629766373 = 840;
int lv_int_1767106727060_91541742426465380 = 840;
int lv_int_1767106727092_91541742740938854 = 840;
int lv_int_1767106727074_91541742562385142 = 840;
long lv_long_1767106727093_91541742753049481 = 47747L;
long lv_long_1767106727074_91541742564584310 = 47747L;
ByteVector lv_ByteVector_1767106727078_91541742603335880 = null;
ByteVector lv_ByteVector_1767106727078_91541742603546141 = null;
ByteVector lv_ByteVector_1767106727078_91541742604828532 = null;
byte[] lv_byte_arr_1767106727078_91541742605964480 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
byte[] lv_byte_arr_1767106727078_91541742606099011 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
byte[] lv_byte_arr_1767106727097_91541742793952714 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
byte[] lv_byte_arr_1767106727096_91541742784590343 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
byte[] lv_byte_arr_1767106727078_91541742606206532 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
char lv_char_1767106727093_91541742754995030 = (char)1;
short lv_short_1767106727094_91541742759953260 = (short)40;
Object lv_Object_1767106727094_91541742763711060 = new Object();
for (int TmpVar_9154174318844550_1767106727136 = 0; TmpVar_9154174318844550_1767106727136 < lv_long_arr_1767106727095_91541742768787480.length; TmpVar_9154174318844550_1767106727136++) {
lv_long_arr_1767106727095_91541742768787480[TmpVar_9154174318844550_1767106727136] = (((long) (TmpVar_9154174318844550_1767106727136)) * 100) + 12L;
}
for (int TmpVar_9154174319282100_1767106727137 = 0; TmpVar_9154174319282100_1767106727137 < lv_short_arr_1767106727072_91541742540345070.length; TmpVar_9154174319282100_1767106727137++) {
lv_short_arr_1767106727072_91541742540345070[TmpVar_9154174319282100_1767106727137] = ((short) ((((short) (TmpVar_9154174319282100_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319302598_1767106727137 = 0; TmpVar_9154174319302598_1767106727137 < lv_short_arr_1767106727080_91541742619707562.length; TmpVar_9154174319302598_1767106727137++) {
lv_short_arr_1767106727080_91541742619707562[TmpVar_9154174319302598_1767106727137] = ((short) ((((short) (TmpVar_9154174319302598_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319320634_1767106727137 = 0; TmpVar_9154174319320634_1767106727137 < lv_short_arr_1767106727096_91541742780908694.length; TmpVar_9154174319320634_1767106727137++) {
lv_short_arr_1767106727096_91541742780908694[TmpVar_9154174319320634_1767106727137] = ((short) ((((short) (TmpVar_9154174319320634_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319336426_1767106727137 = 0; TmpVar_9154174319336426_1767106727137 < lv_short_arr_1767106727096_91541742780760443.length; TmpVar_9154174319336426_1767106727137++) {
lv_short_arr_1767106727096_91541742780760443[TmpVar_9154174319336426_1767106727137] = ((short) ((((short) (TmpVar_9154174319336426_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319363296_1767106727137 = 0; TmpVar_9154174319363296_1767106727137 < lv_short_arr_1767106727072_91541742540470901.length; TmpVar_9154174319363296_1767106727137++) {
lv_short_arr_1767106727072_91541742540470901[TmpVar_9154174319363296_1767106727137] = ((short) ((((short) (TmpVar_9154174319363296_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319381021_1767106727137 = 0; TmpVar_9154174319381021_1767106727137 < lv_int_arr_1767106727076_91541742585892011.length; TmpVar_9154174319381021_1767106727137++) {
lv_int_arr_1767106727076_91541742585892011[TmpVar_9154174319381021_1767106727137] = (((int) (TmpVar_9154174319381021_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319398588_1767106727137 = 0; TmpVar_9154174319398588_1767106727137 < lv_int_arr_1767106727078_91541742599927243.length; TmpVar_9154174319398588_1767106727137++) {
lv_int_arr_1767106727078_91541742599927243[TmpVar_9154174319398588_1767106727137] = (((int) (TmpVar_9154174319398588_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319414547_1767106727137 = 0; TmpVar_9154174319414547_1767106727137 < lv_int_arr_1767106727079_91541742613792604.length; TmpVar_9154174319414547_1767106727137++) {
lv_int_arr_1767106727079_91541742613792604[TmpVar_9154174319414547_1767106727137] = (((int) (TmpVar_9154174319414547_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319433193_1767106727137 = 0; TmpVar_9154174319433193_1767106727137 < lv_int_arr_1767106727074_91541742562717510.length; TmpVar_9154174319433193_1767106727137++) {
lv_int_arr_1767106727074_91541742562717510[TmpVar_9154174319433193_1767106727137] = (((int) (TmpVar_9154174319433193_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319451899_1767106727137 = 0; TmpVar_9154174319451899_1767106727137 < lv_int_arr_1767106727076_91541742586027802.length; TmpVar_9154174319451899_1767106727137++) {
lv_int_arr_1767106727076_91541742586027802[TmpVar_9154174319451899_1767106727137] = (((int) (TmpVar_9154174319451899_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319971116_1767106727138 = 0; TmpVar_9154174319971116_1767106727138 < lv_byte_arr_1767106727078_91541742605964480.length; TmpVar_9154174319971116_1767106727138++) {
lv_byte_arr_1767106727078_91541742605964480[TmpVar_9154174319971116_1767106727138] = ((byte) ((((byte) (TmpVar_9154174319971116_1767106727138)) * 5) + 12));
}
for (int TmpVar_9154174320033532_1767106727138 = 0; TmpVar_9154174320033532_1767106727138 < lv_byte_arr_1767106727078_91541742606099011.length; TmpVar_9154174320033532_1767106727138++) {
lv_byte_arr_1767106727078_91541742606099011[TmpVar_9154174320033532_1767106727138] = ((byte) ((((byte) (TmpVar_9154174320033532_1767106727138)) * 5) + 12));
}
for (int TmpVar_9154174320052925_1767106727138 = 0; TmpVar_9154174320052925_1767106727138 < lv_byte_arr_1767106727097_91541742793952714.length; TmpVar_9154174320052925_1767106727138++) {
lv_byte_arr_1767106727097_91541742793952714[TmpVar_9154174320052925_1767106727138] = ((byte) ((((byte) (TmpVar_9154174320052925_1767106727138)) * 5) + 12));
}
for (int TmpVar_9154174320076715_1767106727138 = 0; TmpVar_9154174320076715_1767106727138 < lv_byte_arr_1767106727096_91541742784590343.length; TmpVar_9154174320076715_1767106727138++) {
lv_byte_arr_1767106727096_91541742784590343[TmpVar_9154174320076715_1767106727138] = ((byte) ((((byte) (TmpVar_9154174320076715_1767106727138)) * 5) + 12));
}
for (int TmpVar_9154174320093989_1767106727138 = 0; TmpVar_9154174320093989_1767106727138 < lv_byte_arr_1767106727078_91541742606206532.length; TmpVar_9154174320093989_1767106727138++) {
lv_byte_arr_1767106727078_91541742606206532[TmpVar_9154174320093989_1767106727138] = ((byte) ((((byte) (TmpVar_9154174320093989_1767106727138)) * 5) + 12));
}
final long startTime = jdk.test.lib.JtregTime.currentTimeMillis();
final java.util.concurrent.atomic.AtomicLong churnBytes = new java.util.concurrent.atomic.AtomicLong();
javax.management.NotificationListener listener = new javax.management.NotificationListener() {
@java.lang.Override
public void handleNotification(javax.management.Notification n, java.lang.Object o) {
if (n.getType().equals(com.sun.management.GarbageCollectionNotificationInfo.GARBAGE_COLLECTION_NOTIFICATION)) {
com.sun.management.GarbageCollectionNotificationInfo info = com.sun.management.GarbageCollectionNotificationInfo.from(((javax.management.openmbean.CompositeData) (n.getUserData())));
java.util.Map<java.lang.String, java.lang.management.MemoryUsage> mapBefore = info.getGcInfo().getMemoryUsageBeforeGc();
java.util.Map<java.lang.String, java.lang.management.MemoryUsage> mapAfter = info.getGcInfo().getMemoryUsageAfterGc();
java.lang.management.MemoryUsage before = mapBefore.get("Shenandoah");
java.lang.management.MemoryUsage after = mapAfter.get("Shenandoah");
if ((before != null) && (after != null)) {
long diff = before.getUsed() - after.getUsed();
if (diff > 0) {
churnBytes.addAndGet(diff);
}
}
}
}
};// HelloHHHHHHHHHHHHH
for (java.lang.management.GarbageCollectorMXBean bean : java.lang.management.ManagementFactory.getGarbageCollectorMXBeans()) {
((javax.management.NotificationEmitter) (bean)).addNotificationListener(listener, null, null);
}
final int size = 100000;
long count = ((TestChurnNotifications.TARGET_MB * 1024) * 1024) / (16 + (4 * size));
long mem = count * (16 + (4 * size));
for (int c = 0; c < count; c++) {
TestChurnNotifications.sink = new int[size];
}
java.lang.System.gc();
long minExpected = (TestChurnNotifications.PRECISE) ? mem - ((TestChurnNotifications.HEAP_MB * 1024) * 1024) : 1;
long maxExpected = mem + ((TestChurnNotifications.HEAP_MB * 1024) * 1024);
long actual = 0;
// Look at test timeout to figure out how long we can wait without breaking into timeout.
// Default to 1/4 of the remaining time in 1s steps.
final long STEP_MS = 1000;
long spentTime = jdk.test.lib.JtregTime.currentTimeMillis() - startTime;
long maxTries = ((jdk.test.lib.Utils.adjustTimeout(jdk.test.lib.Utils.DEFAULT_TEST_TIMEOUT) - spentTime) / STEP_MS) / 4;
// Wait until enough notifications are accrued to match minimum boundary.
long tries = 0;
while ((tries++) < maxTries) {
System.out.println("tmp\n");
actual = churnBytes.get();
if (minExpected <= actual) {
lv_int_1767106727060_91541742426465380 = lv_int_1767106727069_91541742510869711 / lv_int_1767106727060_91541742426465380;
if (lv_int_1767106727060_91541742426465380 != 0) {
lv_int_1767106727060_91541742426465380 = lv_int_1767106727060_91541742426465380 + lv_int_1767106727060_91541742426465380;
// Wait some more to test if we are breaking the maximum boundary.
java.lang.Thread.sleep(5000);
actual = churnBytes.get();
if ((((int) (lv_short_arr_1767106727072_91541742540345070[0])) % 3) < 1) {
lv_ShortVector_1767106727072_91541742539948920 = ((ShortVector) (VectorShuffle.iota(ShortVector.SPECIES_PREFERRED, 0, 11, true).toVector()));
} else {
lv_ShortVector_1767106727072_91541742539948920 = ShortVector.fromArray(ShortVector.SPECIES_PREFERRED, lv_short_arr_1767106727072_91541742540345070, 11);
}
lv_ShortVector_1767106727072_91541742539948920 = ShortVector.fromArray(ShortVector.SPECIES_PREFERRED, lv_short_arr_1767106727072_91541742540470901, 11);
lv_ShortVector_1767106727072_91541742539948920 = lv_ShortVector_1767106727072_91541742539948920.div(lv_ShortVector_1767106727072_91541742539948920);
lv_ShortVector_1767106727072_91541742539948920.intoArray(lv_short_arr_1767106727072_91541742540345070, 11);
if ((((lv_short_arr_1767106727072_91541742540345070 == null) || (lv_short_arr_1767106727072_91541742540470901 == null)) || (lv_short_arr_1767106727072_91541742540345070 == null)) && ((11 % 5) <= 3)) {
lv_short_arr_1767106727072_91541742540345070[1] = ((short) (1 + lv_ShortVector_1767106727072_91541742539948920.reduceLanes(VectorOperators.ADD)));
lv_short_arr_1767106727072_91541742540345070[2] = ((short) (1 + lv_ShortVector_1767106727072_91541742539948920.reduceLanes(VectorOperators.XOR)));
lv_short_arr_1767106727072_91541742540345070[3] = ((short) (1 + lv_ShortVector_1767106727072_91541742539948920.reduceLanes(VectorOperators.MAX)));
}
lv_int_1767106727069_91541742510869711 = (374);
lv_int_1767106727074_91541742562385142 = 0;
for (lv_int_1767106727069_91541742510869711 = 0; lv_int_1767106727069_91541742510869711 < lv_int_arr_1767106727074_91541742562717510.length; lv_int_1767106727069_91541742510869711++) {
// System.out.println("lv_int_1767106727069_91541742510869711: " + lv_int_1767106727069_91541742510869711);
lv_int_1767106727074_91541742562385142 = lv_int_arr_1767106727074_91541742562717510[lv_int_1767106727069_91541742510869711] * lv_int_1767106727069_91541742510869711;
if (false) { System.out.println("Ciallo~(∠·ω< )⌒★"); }
lv_String_1767106727074_91541742563776770 = lv_String_1767106727074_91541742563964121;
lv_long_1767106727074_91541742564584310 /= 2;
lv_long_1767106727074_91541742564584310 /= 2;
lv_long_1767106727074_91541742564584310 = Math.subtractExact(lv_long_1767106727074_91541742564584310, lv_long_1767106727074_91541742564584310);
for (lv_int_1767106727060_91541742426465380 = 1; lv_int_1767106727060_91541742426465380 < 333; lv_int_1767106727060_91541742426465380++) {
lv_int_1767106727069_91541742510869711 += AllFuzzerDefs_1767106725330_72775.$func_zeroOffsetElimination_deoptimize_9154174035679811(lv_int_1767106727074_91541742562385142, lv_int_1767106727060_91541742426465380);
if (false) { System.out.println("Ciallo~(∠·ω< )⌒★"); }
lv_int_1767106727074_91541742562385142 = lv_int_arr_1767106727074_91541742562717510.hashCode();
AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727075_91541742578076251 = (((((byte)18) == ((byte)19)) && AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727075_91541742578076251) || (((321.08636f) < (324.61328f)) && AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727075_91541742578076251)) || ((((byte)18) == ((byte)19)) && ((321.08636f) < (324.61328f)));
lv_double_1767106727071_91541742536094610 = 4284.506821185117;
lv_double_1767106727075_91541742572705661 = AllFuzzerDefs_1767106725330_72775.gb_double_1767106727075_91541742572896850;
}
lv_int_1767106727074_91541742562385142 = 0;
lv_int_1767106727069_91541742510869711 += AllFuzzerDefs_1767106725330_72775.$func_zeroOffsetElimination_deoptimize_9154174035679811(lv_int_1767106727074_91541742562385142, lv_int_1767106727060_91541742426465380);
if ((((int) (lv_int_arr_1767106727076_91541742585892011[0])) % 3) < 1) {
lv_IntVector_1767106727076_91541742585738331 = ((IntVector) (VectorShuffle.iota(IntVector.SPECIES_PREFERRED, 0, 28, true).toVector()));
} else {
lv_IntVector_1767106727076_91541742585738331 = IntVector.fromArray(IntVector.SPECIES_PREFERRED, lv_int_arr_1767106727076_91541742586027802, 28);
}
lv_IntVector_1767106727076_91541742585283290 = lv_IntVector_1767106727076_91541742585738331.abs();
lv_IntVector_1767106727076_91541742585283290.intoArray(lv_int_arr_1767106727076_91541742585892011, 28);
if (((lv_int_arr_1767106727076_91541742586027802 == null) || (lv_int_arr_1767106727076_91541742585892011 == null)) && ((28 % 5) <= 3)) {
lv_int_arr_1767106727076_91541742586027802[1] = ((int) (1 + lv_IntVector_1767106727076_91541742585283290.reduceLanes(VectorOperators.ADD)));
lv_int_arr_1767106727076_91541742586027802[2] = ((int) (1 + lv_IntVector_1767106727076_91541742585283290.reduceLanes(VectorOperators.XOR)));
lv_int_arr_1767106727076_91541742586027802[3] = ((int) (1 + lv_IntVector_1767106727076_91541742585283290.reduceLanes(VectorOperators.MAX)));
}
lv_long_1767106727074_91541742564584310 = -23873L;
}
AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727077_91541742597199572 = ((lv_byte_1767106727077_91541742594742450) == ((byte)31)) || AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727077_91541742597199572;
lv_double_1767106727071_91541742536094610 = 6120.019636432637;
lv_float_1767106727071_91541742538189920 = 157.73763f;
}
break;
}
java.lang.Thread.sleep(STEP_MS);
}
}
}
class AllFuzzerDefs_1767106725330_72775 {
public static int ARRAY_SIZE = 100;
public static int $func_zeroOffsetElimination_deoptimize_9154174035679811(int zeroOffsetElimination_deoptimize_a, int zeroOffsetElimination_deoptimize_b) {
int zeroOffsetElimination_deoptimize_result = 0;
zeroOffsetElimination_deoptimize_result = zeroOffsetElimination_deoptimize_a / zeroOffsetElimination_deoptimize_b;
if (zeroOffsetElimination_deoptimize_b != 0) {
zeroOffsetElimination_deoptimize_result = zeroOffsetElimination_deoptimize_result + zeroOffsetElimination_deoptimize_b;
} else {
zeroOffsetElimination_deoptimize_result = zeroOffsetElimination_deoptimize_result - zeroOffsetElimination_deoptimize_b;
}
return zeroOffsetElimination_deoptimize_result;
}
public static boolean gb_boolean_1767106727077_91541742597199572 = false;
public static boolean gb_boolean_1767106727094_91541742759658884 = false;
public static boolean gb_boolean_1767106727093_91541742758037393 = false;
public static boolean gb_boolean_1767106727075_91541742576047450 = false;
public static boolean gb_boolean_1767106727075_91541742578076251 = false;
public static double gb_double_1767106727075_91541742572896850 = 2679.079418167553;
public static byte gb_byte_1767106727097_91541742796503470 = (byte)77;
public static char gb_char_1767106727093_91541742755067270 = (char)1;
public static short gb_short_1767106727094_91541742759840620 = (short)40;
public static String gb_String_1767106727093_91541742757203210 = new String("");
public static float gb_float_1767106727097_91541742790144750 = 683.1836f;
public static long gb_long_1767106727095_91541742768951731 = 47747L;
public static long gb_long_1767106727074_91541742565985700 = 47747L;
public static int gb_int_1767106727080_91541742625946700 = 840;
}
---------- END SOURCE ----------
- Operating system: Linux
- Compiler/toolchain: GCC 9.4
- Source commit: 86a5a83bef9fea1e00ba4cbc9878c02e20097bec (tag: jdk-17.0.18+7, branch: master)
- Build type: fastdebug
- Coverage: enabled (built with --enable-coverage)
- Build environment: Linux, compiled from source with GCC 9.4
A DESCRIPTION OF THE PROBLEM :
Based on the jtreg test case “TestChurnNotifications.java”, we generated a new test case and discovered a bug causing inconsistent results.
If you comment out the println statement on line 201 and run the Java program, it will report:
java.lang.ArrayIndexOutOfBoundsException: Index -731211386 out of bounds for length 100
If the `println` statement on line 201 is added, the Java program will terminate normally.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1: linux-x86_64-server-fastdebug/jdk/bin/javac -J-Xms2g -J-Xmx4g -J-XX:MaxMetaspaceSize=256m -J-XX:MaxDirectMemorySize=64m -J-Xss256k -J-XX:ParallelGCThreads=1 -J-XX:ReservedCodeCacheSize=64m -J-Xss256k -J-XX:+UseSerialGC -J-XX:ActiveProcessorCount=1 -J-XX:+ExitOnOutOfMemoryError -d . -implicit:class --add-modules jdk.incubator.vector TestChurnNotifications.java
2. java -Xcomp -XX:+UnlockDiagnosticVMOptions --add-modules jdk.incubator.vector -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+ShenandoahDegeneratedGC -Dprecise=true -XX:+LogCompilation -XX:LogFile=./jit.optimization.log -Dtest.jdk=./jdk17u/build/linux-x86_64-server-fastdebug/jdk TestChurnNotifications
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Whether or not the `println` statement on line 201 is added, the Java program should produce consistent results.
ACTUAL -
comment out the println statement on line 201,it will report: java.lang.ArrayIndexOutOfBoundsException:
---------- BEGIN SOURCE ----------
// Auto-generated by AllFuzzer at 2025-12-30T22:58:47.184346921
// run_args: -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+ShenandoahDegeneratedGC -Dprecise=true
import javax.management.*;
import jdk.incubator.vector.*;
import java.util.*;
import java.lang.management.*;
import com.sun.management.GarbageCollectionNotificationInfo;
import java.util.Arrays;
import java.util.concurrent.atomic.*;
import javax.management.openmbean.*;
import jdk.test.lib.Utils;
public class TestChurnNotifications {
static final long HEAP_MB = 128;
// adjust for test configuration above
static final long TARGET_MB = java.lang.Long.getLong("target", 2000);// 2 Gb allocation
// Should we track the churn precisely?
// Precise tracking is only reliable when GC is fully stop-the-world. Otherwise,
// we cannot tell, looking at heap used before/after, what was the GC churn.
static final boolean PRECISE = java.lang.Boolean.getBoolean("precise");
static final long M = 1024 * 1024;
static volatile java.lang.Object sink;
public static void main(java.lang.String[] args) {
try {
AllFuzzer_FakeMain_1767106727143_6312(args);
} catch (java.lang.OutOfMemoryError ex) {
ex.printStackTrace(System.err);
System.exit(1);
} catch (java.lang.Exception ex) {
ex.printStackTrace(System.err);
System.out.println(ex.getClass().getCanonicalName());
} catch (java.lang.Throwable ex) {
ex.printStackTrace(System.err);
System.out.println(ex.getClass().getCanonicalName());
}
}
public static void AllFuzzer_FakeMain_1767106727143_6312(java.lang.String[] args) throws java.lang.Exception {
ShortVector lv_ShortVector_1767106727072_91541742539948920 = null;
ShortVector lv_ShortVector_1767106727080_91541742619373782 = null;
ShortVector lv_ShortVector_1767106727080_91541742619053621 = null;
ShortVector lv_ShortVector_1767106727097_91541742795338863 = null;
IntVector lv_IntVector_1767106727079_91541742615970903 = null;
IntVector lv_IntVector_1767106727076_91541742585283290 = null;
IntVector lv_IntVector_1767106727078_91541742599435782 = null;
IntVector lv_IntVector_1767106727097_91541742791679364 = null;
IntVector lv_IntVector_1767106727076_91541742585738331 = null;
long[] lv_long_arr_1767106727095_91541742768787480 = new long[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
double lv_double_1767106727071_91541742536094610 = 2679.079418167553;
double lv_double_1767106727075_91541742572705661 = 2679.079418167553;
byte lv_byte_1767106727077_91541742594742450 = (byte)77;
short[] lv_short_arr_1767106727072_91541742540345070 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
short[] lv_short_arr_1767106727080_91541742619707562 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
short[] lv_short_arr_1767106727096_91541742780908694 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
short[] lv_short_arr_1767106727096_91541742780760443 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
short[] lv_short_arr_1767106727072_91541742540470901 = new short[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727076_91541742585892011 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727078_91541742599927243 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727079_91541742613792604 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727074_91541742562717510 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
int[] lv_int_arr_1767106727076_91541742586027802 = new int[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
String lv_String_1767106727074_91541742563964121 = new String("");
String lv_String_1767106727074_91541742563776770 = new String("asdfasf123123");
String lv_String_1767106727093_91541742757094772 = new String("");
float lv_float_1767106727071_91541742538189920 = 683.1836f;
float lv_float_1767106727097_91541742790022841 = 683.1836f;
int lv_int_1767106727069_91541742510869711 = 840;
int lv_int_1767106727081_91541742629766373 = 840;
int lv_int_1767106727060_91541742426465380 = 840;
int lv_int_1767106727092_91541742740938854 = 840;
int lv_int_1767106727074_91541742562385142 = 840;
long lv_long_1767106727093_91541742753049481 = 47747L;
long lv_long_1767106727074_91541742564584310 = 47747L;
ByteVector lv_ByteVector_1767106727078_91541742603335880 = null;
ByteVector lv_ByteVector_1767106727078_91541742603546141 = null;
ByteVector lv_ByteVector_1767106727078_91541742604828532 = null;
byte[] lv_byte_arr_1767106727078_91541742605964480 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
byte[] lv_byte_arr_1767106727078_91541742606099011 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
byte[] lv_byte_arr_1767106727097_91541742793952714 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
byte[] lv_byte_arr_1767106727096_91541742784590343 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
byte[] lv_byte_arr_1767106727078_91541742606206532 = new byte[AllFuzzerDefs_1767106725330_72775.ARRAY_SIZE];
char lv_char_1767106727093_91541742754995030 = (char)1;
short lv_short_1767106727094_91541742759953260 = (short)40;
Object lv_Object_1767106727094_91541742763711060 = new Object();
for (int TmpVar_9154174318844550_1767106727136 = 0; TmpVar_9154174318844550_1767106727136 < lv_long_arr_1767106727095_91541742768787480.length; TmpVar_9154174318844550_1767106727136++) {
lv_long_arr_1767106727095_91541742768787480[TmpVar_9154174318844550_1767106727136] = (((long) (TmpVar_9154174318844550_1767106727136)) * 100) + 12L;
}
for (int TmpVar_9154174319282100_1767106727137 = 0; TmpVar_9154174319282100_1767106727137 < lv_short_arr_1767106727072_91541742540345070.length; TmpVar_9154174319282100_1767106727137++) {
lv_short_arr_1767106727072_91541742540345070[TmpVar_9154174319282100_1767106727137] = ((short) ((((short) (TmpVar_9154174319282100_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319302598_1767106727137 = 0; TmpVar_9154174319302598_1767106727137 < lv_short_arr_1767106727080_91541742619707562.length; TmpVar_9154174319302598_1767106727137++) {
lv_short_arr_1767106727080_91541742619707562[TmpVar_9154174319302598_1767106727137] = ((short) ((((short) (TmpVar_9154174319302598_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319320634_1767106727137 = 0; TmpVar_9154174319320634_1767106727137 < lv_short_arr_1767106727096_91541742780908694.length; TmpVar_9154174319320634_1767106727137++) {
lv_short_arr_1767106727096_91541742780908694[TmpVar_9154174319320634_1767106727137] = ((short) ((((short) (TmpVar_9154174319320634_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319336426_1767106727137 = 0; TmpVar_9154174319336426_1767106727137 < lv_short_arr_1767106727096_91541742780760443.length; TmpVar_9154174319336426_1767106727137++) {
lv_short_arr_1767106727096_91541742780760443[TmpVar_9154174319336426_1767106727137] = ((short) ((((short) (TmpVar_9154174319336426_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319363296_1767106727137 = 0; TmpVar_9154174319363296_1767106727137 < lv_short_arr_1767106727072_91541742540470901.length; TmpVar_9154174319363296_1767106727137++) {
lv_short_arr_1767106727072_91541742540470901[TmpVar_9154174319363296_1767106727137] = ((short) ((((short) (TmpVar_9154174319363296_1767106727137)) * 10) + 34));
}
for (int TmpVar_9154174319381021_1767106727137 = 0; TmpVar_9154174319381021_1767106727137 < lv_int_arr_1767106727076_91541742585892011.length; TmpVar_9154174319381021_1767106727137++) {
lv_int_arr_1767106727076_91541742585892011[TmpVar_9154174319381021_1767106727137] = (((int) (TmpVar_9154174319381021_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319398588_1767106727137 = 0; TmpVar_9154174319398588_1767106727137 < lv_int_arr_1767106727078_91541742599927243.length; TmpVar_9154174319398588_1767106727137++) {
lv_int_arr_1767106727078_91541742599927243[TmpVar_9154174319398588_1767106727137] = (((int) (TmpVar_9154174319398588_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319414547_1767106727137 = 0; TmpVar_9154174319414547_1767106727137 < lv_int_arr_1767106727079_91541742613792604.length; TmpVar_9154174319414547_1767106727137++) {
lv_int_arr_1767106727079_91541742613792604[TmpVar_9154174319414547_1767106727137] = (((int) (TmpVar_9154174319414547_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319433193_1767106727137 = 0; TmpVar_9154174319433193_1767106727137 < lv_int_arr_1767106727074_91541742562717510.length; TmpVar_9154174319433193_1767106727137++) {
lv_int_arr_1767106727074_91541742562717510[TmpVar_9154174319433193_1767106727137] = (((int) (TmpVar_9154174319433193_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319451899_1767106727137 = 0; TmpVar_9154174319451899_1767106727137 < lv_int_arr_1767106727076_91541742586027802.length; TmpVar_9154174319451899_1767106727137++) {
lv_int_arr_1767106727076_91541742586027802[TmpVar_9154174319451899_1767106727137] = (((int) (TmpVar_9154174319451899_1767106727137)) * 100) + 12;
}
for (int TmpVar_9154174319971116_1767106727138 = 0; TmpVar_9154174319971116_1767106727138 < lv_byte_arr_1767106727078_91541742605964480.length; TmpVar_9154174319971116_1767106727138++) {
lv_byte_arr_1767106727078_91541742605964480[TmpVar_9154174319971116_1767106727138] = ((byte) ((((byte) (TmpVar_9154174319971116_1767106727138)) * 5) + 12));
}
for (int TmpVar_9154174320033532_1767106727138 = 0; TmpVar_9154174320033532_1767106727138 < lv_byte_arr_1767106727078_91541742606099011.length; TmpVar_9154174320033532_1767106727138++) {
lv_byte_arr_1767106727078_91541742606099011[TmpVar_9154174320033532_1767106727138] = ((byte) ((((byte) (TmpVar_9154174320033532_1767106727138)) * 5) + 12));
}
for (int TmpVar_9154174320052925_1767106727138 = 0; TmpVar_9154174320052925_1767106727138 < lv_byte_arr_1767106727097_91541742793952714.length; TmpVar_9154174320052925_1767106727138++) {
lv_byte_arr_1767106727097_91541742793952714[TmpVar_9154174320052925_1767106727138] = ((byte) ((((byte) (TmpVar_9154174320052925_1767106727138)) * 5) + 12));
}
for (int TmpVar_9154174320076715_1767106727138 = 0; TmpVar_9154174320076715_1767106727138 < lv_byte_arr_1767106727096_91541742784590343.length; TmpVar_9154174320076715_1767106727138++) {
lv_byte_arr_1767106727096_91541742784590343[TmpVar_9154174320076715_1767106727138] = ((byte) ((((byte) (TmpVar_9154174320076715_1767106727138)) * 5) + 12));
}
for (int TmpVar_9154174320093989_1767106727138 = 0; TmpVar_9154174320093989_1767106727138 < lv_byte_arr_1767106727078_91541742606206532.length; TmpVar_9154174320093989_1767106727138++) {
lv_byte_arr_1767106727078_91541742606206532[TmpVar_9154174320093989_1767106727138] = ((byte) ((((byte) (TmpVar_9154174320093989_1767106727138)) * 5) + 12));
}
final long startTime = jdk.test.lib.JtregTime.currentTimeMillis();
final java.util.concurrent.atomic.AtomicLong churnBytes = new java.util.concurrent.atomic.AtomicLong();
javax.management.NotificationListener listener = new javax.management.NotificationListener() {
@java.lang.Override
public void handleNotification(javax.management.Notification n, java.lang.Object o) {
if (n.getType().equals(com.sun.management.GarbageCollectionNotificationInfo.GARBAGE_COLLECTION_NOTIFICATION)) {
com.sun.management.GarbageCollectionNotificationInfo info = com.sun.management.GarbageCollectionNotificationInfo.from(((javax.management.openmbean.CompositeData) (n.getUserData())));
java.util.Map<java.lang.String, java.lang.management.MemoryUsage> mapBefore = info.getGcInfo().getMemoryUsageBeforeGc();
java.util.Map<java.lang.String, java.lang.management.MemoryUsage> mapAfter = info.getGcInfo().getMemoryUsageAfterGc();
java.lang.management.MemoryUsage before = mapBefore.get("Shenandoah");
java.lang.management.MemoryUsage after = mapAfter.get("Shenandoah");
if ((before != null) && (after != null)) {
long diff = before.getUsed() - after.getUsed();
if (diff > 0) {
churnBytes.addAndGet(diff);
}
}
}
}
};// HelloHHHHHHHHHHHHH
for (java.lang.management.GarbageCollectorMXBean bean : java.lang.management.ManagementFactory.getGarbageCollectorMXBeans()) {
((javax.management.NotificationEmitter) (bean)).addNotificationListener(listener, null, null);
}
final int size = 100000;
long count = ((TestChurnNotifications.TARGET_MB * 1024) * 1024) / (16 + (4 * size));
long mem = count * (16 + (4 * size));
for (int c = 0; c < count; c++) {
TestChurnNotifications.sink = new int[size];
}
java.lang.System.gc();
long minExpected = (TestChurnNotifications.PRECISE) ? mem - ((TestChurnNotifications.HEAP_MB * 1024) * 1024) : 1;
long maxExpected = mem + ((TestChurnNotifications.HEAP_MB * 1024) * 1024);
long actual = 0;
// Look at test timeout to figure out how long we can wait without breaking into timeout.
// Default to 1/4 of the remaining time in 1s steps.
final long STEP_MS = 1000;
long spentTime = jdk.test.lib.JtregTime.currentTimeMillis() - startTime;
long maxTries = ((jdk.test.lib.Utils.adjustTimeout(jdk.test.lib.Utils.DEFAULT_TEST_TIMEOUT) - spentTime) / STEP_MS) / 4;
// Wait until enough notifications are accrued to match minimum boundary.
long tries = 0;
while ((tries++) < maxTries) {
System.out.println("tmp\n");
actual = churnBytes.get();
if (minExpected <= actual) {
lv_int_1767106727060_91541742426465380 = lv_int_1767106727069_91541742510869711 / lv_int_1767106727060_91541742426465380;
if (lv_int_1767106727060_91541742426465380 != 0) {
lv_int_1767106727060_91541742426465380 = lv_int_1767106727060_91541742426465380 + lv_int_1767106727060_91541742426465380;
// Wait some more to test if we are breaking the maximum boundary.
java.lang.Thread.sleep(5000);
actual = churnBytes.get();
if ((((int) (lv_short_arr_1767106727072_91541742540345070[0])) % 3) < 1) {
lv_ShortVector_1767106727072_91541742539948920 = ((ShortVector) (VectorShuffle.iota(ShortVector.SPECIES_PREFERRED, 0, 11, true).toVector()));
} else {
lv_ShortVector_1767106727072_91541742539948920 = ShortVector.fromArray(ShortVector.SPECIES_PREFERRED, lv_short_arr_1767106727072_91541742540345070, 11);
}
lv_ShortVector_1767106727072_91541742539948920 = ShortVector.fromArray(ShortVector.SPECIES_PREFERRED, lv_short_arr_1767106727072_91541742540470901, 11);
lv_ShortVector_1767106727072_91541742539948920 = lv_ShortVector_1767106727072_91541742539948920.div(lv_ShortVector_1767106727072_91541742539948920);
lv_ShortVector_1767106727072_91541742539948920.intoArray(lv_short_arr_1767106727072_91541742540345070, 11);
if ((((lv_short_arr_1767106727072_91541742540345070 == null) || (lv_short_arr_1767106727072_91541742540470901 == null)) || (lv_short_arr_1767106727072_91541742540345070 == null)) && ((11 % 5) <= 3)) {
lv_short_arr_1767106727072_91541742540345070[1] = ((short) (1 + lv_ShortVector_1767106727072_91541742539948920.reduceLanes(VectorOperators.ADD)));
lv_short_arr_1767106727072_91541742540345070[2] = ((short) (1 + lv_ShortVector_1767106727072_91541742539948920.reduceLanes(VectorOperators.XOR)));
lv_short_arr_1767106727072_91541742540345070[3] = ((short) (1 + lv_ShortVector_1767106727072_91541742539948920.reduceLanes(VectorOperators.MAX)));
}
lv_int_1767106727069_91541742510869711 = (374);
lv_int_1767106727074_91541742562385142 = 0;
for (lv_int_1767106727069_91541742510869711 = 0; lv_int_1767106727069_91541742510869711 < lv_int_arr_1767106727074_91541742562717510.length; lv_int_1767106727069_91541742510869711++) {
// System.out.println("lv_int_1767106727069_91541742510869711: " + lv_int_1767106727069_91541742510869711);
lv_int_1767106727074_91541742562385142 = lv_int_arr_1767106727074_91541742562717510[lv_int_1767106727069_91541742510869711] * lv_int_1767106727069_91541742510869711;
if (false) { System.out.println("Ciallo~(∠·ω< )⌒★"); }
lv_String_1767106727074_91541742563776770 = lv_String_1767106727074_91541742563964121;
lv_long_1767106727074_91541742564584310 /= 2;
lv_long_1767106727074_91541742564584310 /= 2;
lv_long_1767106727074_91541742564584310 = Math.subtractExact(lv_long_1767106727074_91541742564584310, lv_long_1767106727074_91541742564584310);
for (lv_int_1767106727060_91541742426465380 = 1; lv_int_1767106727060_91541742426465380 < 333; lv_int_1767106727060_91541742426465380++) {
lv_int_1767106727069_91541742510869711 += AllFuzzerDefs_1767106725330_72775.$func_zeroOffsetElimination_deoptimize_9154174035679811(lv_int_1767106727074_91541742562385142, lv_int_1767106727060_91541742426465380);
if (false) { System.out.println("Ciallo~(∠·ω< )⌒★"); }
lv_int_1767106727074_91541742562385142 = lv_int_arr_1767106727074_91541742562717510.hashCode();
AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727075_91541742578076251 = (((((byte)18) == ((byte)19)) && AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727075_91541742578076251) || (((321.08636f) < (324.61328f)) && AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727075_91541742578076251)) || ((((byte)18) == ((byte)19)) && ((321.08636f) < (324.61328f)));
lv_double_1767106727071_91541742536094610 = 4284.506821185117;
lv_double_1767106727075_91541742572705661 = AllFuzzerDefs_1767106725330_72775.gb_double_1767106727075_91541742572896850;
}
lv_int_1767106727074_91541742562385142 = 0;
lv_int_1767106727069_91541742510869711 += AllFuzzerDefs_1767106725330_72775.$func_zeroOffsetElimination_deoptimize_9154174035679811(lv_int_1767106727074_91541742562385142, lv_int_1767106727060_91541742426465380);
if ((((int) (lv_int_arr_1767106727076_91541742585892011[0])) % 3) < 1) {
lv_IntVector_1767106727076_91541742585738331 = ((IntVector) (VectorShuffle.iota(IntVector.SPECIES_PREFERRED, 0, 28, true).toVector()));
} else {
lv_IntVector_1767106727076_91541742585738331 = IntVector.fromArray(IntVector.SPECIES_PREFERRED, lv_int_arr_1767106727076_91541742586027802, 28);
}
lv_IntVector_1767106727076_91541742585283290 = lv_IntVector_1767106727076_91541742585738331.abs();
lv_IntVector_1767106727076_91541742585283290.intoArray(lv_int_arr_1767106727076_91541742585892011, 28);
if (((lv_int_arr_1767106727076_91541742586027802 == null) || (lv_int_arr_1767106727076_91541742585892011 == null)) && ((28 % 5) <= 3)) {
lv_int_arr_1767106727076_91541742586027802[1] = ((int) (1 + lv_IntVector_1767106727076_91541742585283290.reduceLanes(VectorOperators.ADD)));
lv_int_arr_1767106727076_91541742586027802[2] = ((int) (1 + lv_IntVector_1767106727076_91541742585283290.reduceLanes(VectorOperators.XOR)));
lv_int_arr_1767106727076_91541742586027802[3] = ((int) (1 + lv_IntVector_1767106727076_91541742585283290.reduceLanes(VectorOperators.MAX)));
}
lv_long_1767106727074_91541742564584310 = -23873L;
}
AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727077_91541742597199572 = ((lv_byte_1767106727077_91541742594742450) == ((byte)31)) || AllFuzzerDefs_1767106725330_72775.gb_boolean_1767106727077_91541742597199572;
lv_double_1767106727071_91541742536094610 = 6120.019636432637;
lv_float_1767106727071_91541742538189920 = 157.73763f;
}
break;
}
java.lang.Thread.sleep(STEP_MS);
}
}
}
class AllFuzzerDefs_1767106725330_72775 {
public static int ARRAY_SIZE = 100;
public static int $func_zeroOffsetElimination_deoptimize_9154174035679811(int zeroOffsetElimination_deoptimize_a, int zeroOffsetElimination_deoptimize_b) {
int zeroOffsetElimination_deoptimize_result = 0;
zeroOffsetElimination_deoptimize_result = zeroOffsetElimination_deoptimize_a / zeroOffsetElimination_deoptimize_b;
if (zeroOffsetElimination_deoptimize_b != 0) {
zeroOffsetElimination_deoptimize_result = zeroOffsetElimination_deoptimize_result + zeroOffsetElimination_deoptimize_b;
} else {
zeroOffsetElimination_deoptimize_result = zeroOffsetElimination_deoptimize_result - zeroOffsetElimination_deoptimize_b;
}
return zeroOffsetElimination_deoptimize_result;
}
public static boolean gb_boolean_1767106727077_91541742597199572 = false;
public static boolean gb_boolean_1767106727094_91541742759658884 = false;
public static boolean gb_boolean_1767106727093_91541742758037393 = false;
public static boolean gb_boolean_1767106727075_91541742576047450 = false;
public static boolean gb_boolean_1767106727075_91541742578076251 = false;
public static double gb_double_1767106727075_91541742572896850 = 2679.079418167553;
public static byte gb_byte_1767106727097_91541742796503470 = (byte)77;
public static char gb_char_1767106727093_91541742755067270 = (char)1;
public static short gb_short_1767106727094_91541742759840620 = (short)40;
public static String gb_String_1767106727093_91541742757203210 = new String("");
public static float gb_float_1767106727097_91541742790144750 = 683.1836f;
public static long gb_long_1767106727095_91541742768951731 = 47747L;
public static long gb_long_1767106727074_91541742565985700 = 47747L;
public static int gb_int_1767106727080_91541742625946700 = 840;
}
---------- END SOURCE ----------