# HG changeset patch # User Roland Schatz # Date 1423141919 -3600 # Node ID 28b07d300f573aca9b6caf5e630baff18bc1451a # Parent 5fce692f65c8273dd43f3eec17dc54d09725dbf4 Add comment. diff -r 5fce692f65c8 -r 28b07d300f57 graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/GraalDirectivesSubstitutions.java --- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/GraalDirectivesSubstitutions.java Thu Feb 05 11:10:38 2015 +0100 +++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/GraalDirectivesSubstitutions.java Thu Feb 05 14:11:59 2015 +0100 @@ -48,6 +48,11 @@ return true; } + /* + * This needs to be a @MacroSubstitution, not a @MethodSubstitution, because we want to get a + * unique ControlFlowAnchorNode for each occurrence of this call. With @MethodSubstitution, we + * would get a clone of a single cached node. + */ @MacroSubstitution(forced = true, macro = ControlFlowAnchorNode.class) public static native void controlFlowAnchor();