You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertsource.isUnknown() || source.isInjected() : Assertions.errorMessage(originalIf, originalIf.getProfileData(), "Profile should be unknown inside the snippet");
304
+
}
305
+
}
306
+
if (controlFlow == null) {
307
+
return;
308
+
}
309
+
GraalError.guarantee(controlFlow.count() == 1, "Must only have a single control flow element - the branch into the cache but found more %s", controlFlow);
310
+
311
+
ProfileData.BranchProbabilityDatab = null;
312
+
switch (kind) {
313
+
caseByte:
314
+
// cache contains all byte values, should not see any control flow and thus never
315
+
// enter this branch
316
+
throwGraalError.shouldNotReachHere("Byte.valueOf should all go to cache and never contain control flow " + controlFlow);
317
+
caseBoolean:
318
+
// only two cases, truly 50 / 50
319
+
b = ProfileData.BranchProbabilityData.injected(0.5);
320
+
break;
321
+
caseChar:
322
+
caseShort:
323
+
caseInt:
324
+
caseLong:
325
+
b = ProfileData.BranchProbabilityData.injected(BranchProbabilityNode.FREQUENT_PROBABILITY);
326
+
break;
327
+
default:
328
+
throwGraalError.shouldNotReachHere("Unknown control flow in boxing code, did a JDK change trigger this error? Consider adding new logic to set the profile of " + controlFlow);
0 commit comments