Mercurial > hg > graal-jvmci-8
changeset 19153:28b07d300f57
Add comment.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 05 Feb 2015 14:11:59 +0100 |
parents | 5fce692f65c8 |
children | 2d67f0540543 |
files | graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/GraalDirectivesSubstitutions.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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();