# HG changeset patch # User Gilles Duboscq # Date 1355753918 -3600 # Node ID 4979267ab8573bd33c1ceaf296a47959a39af98f # Parent 80b278b69b5e6a7beb8c8c4b0406eb59d1f230f5 Fix warning, Fix overly strong assert (the value of the 'abstract' modifier for array types is unspecified) diff -r 80b278b69b5e -r 4979267ab857 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/snippets/ThreadSnippets.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/snippets/ThreadSnippets.java Mon Dec 17 14:36:30 2012 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/snippets/ThreadSnippets.java Mon Dec 17 15:18:38 2012 +0100 @@ -38,7 +38,6 @@ } @MethodSubstitution(isStatic = false) - @SuppressWarnings("unused") private static boolean isInterrupted(final Thread thisObject, boolean clearInterrupted) { Word rawThread = HotSpotCurrentRawThreadNode.get(); Thread thread = (Thread) loadObjectFromWord(rawThread, threadObjectOffset()); diff -r 80b278b69b5e -r 4979267ab857 graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningUtil.java --- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningUtil.java Mon Dec 17 14:36:30 2012 +0100 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/InliningUtil.java Mon Dec 17 15:18:38 2012 +0100 @@ -798,7 +798,7 @@ for (int i = 0; i < types.length; i++) { ProfiledType ptype = types[i]; ResolvedJavaType type = ptype.getType(); - assert !type.isInterface() && !Modifier.isAbstract(type.getModifiers()); + assert !type.isInterface() && (type.isArray() || !Modifier.isAbstract(type.getModifiers())) : type; if (holder.isAssignableFrom(type)) { result.add(ptype); }