Skip to content

Commit

Permalink
[fix] DerivedOopTest: Do not allow code pattern to be CF optimized.
Browse files Browse the repository at this point in the history
  • Loading branch information
davleopo committed Jun 19, 2017
1 parent bedddcc commit 23e385e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public static Result fieldOffsetMergeSnippet01(Result objResult, long offsetA, l
internalPointer = getRawPointer(o2) + offsetB;
SideEffect2 = internalPointer;
}
GraalDirectives.controlFlowAnchor();
// make sure the internal pointer is computed before the safepoint
GraalDirectives.blackhole(internalPointer);
objResult.beforeGC.basePointer = getRawPointer(objResult);
Expand All @@ -215,6 +216,7 @@ public static Result fieldOffsetMergeSnippet02(Result objResult, long offsetA, l
internalPointer = getRawPointer(o2) + offsetB;
SideEffect2 = internalPointer;
}
GraalDirectives.controlFlowAnchor();
// make sure the internal pointer is computed before the safepoint
GraalDirectives.blackhole(internalPointer);
objResult.beforeGC.basePointer = getRawPointer(objResult);
Expand All @@ -233,6 +235,7 @@ public static Result fieldOffsetMergeSnippet03(Result objResult, Result a, Resul
internalPointer = getRawPointer(b) + offsetB;
SideEffect2 = internalPointer;
}
GraalDirectives.controlFlowAnchor();
// make sure the internal pointer is computed before the safepoint
GraalDirectives.blackhole(internalPointer);
objResult.beforeGC.basePointer = getRawPointer(objResult);
Expand Down

0 comments on commit 23e385e

Please sign in to comment.