Skip to content

Commit f5dd5be

Browse files
committed
wip
1 parent cc99d6c commit f5dd5be

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/meta/HostedType.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,11 @@ public ResolvedJavaMethod resolveConcreteMethod(ResolvedJavaMethod m, ResolvedJa
328328
* Check that the SharedType implementation, which is used for JIT compilation, gives the
329329
* same result as the hosted implementation.
330330
*/
331-
assert hResult == null || isWordType() || hResult.equals(SharedType.super.resolveConcreteMethod(method, callerType));
331+
boolean condition = hResult == null || isWordType() || hResult.equals(SharedType.super.resolveConcreteMethod(method, callerType));
332+
if (!condition) {
333+
System.err.println("condition failed for " + m);
334+
}
335+
assert condition;
332336

333337
return hResult;
334338
}

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/meta/TypeCheckBuilder.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,13 @@ public void buildTypeInformation(HostedUniverse hUniverse) {
417417
}
418418

419419
boolean isInstantiated = type.getWrapped().isInstantiated();
420-
assert !isInstantiated ||
420+
boolean condition = !isInstantiated ||
421421
((type.isInstanceClass() &&
422422
!Modifier.isAbstract(type.getModifiers())) || type.isArray());
423+
if (!condition) {
424+
System.err.println("condition broken for " + type);
425+
}
426+
assert condition;
423427

424428
if (subtypeStampType == null) {
425429
/* Type has no instantiated subtypes. */

0 commit comments

Comments
 (0)