File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
runtime/compiler/optimizer Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2533,6 +2533,14 @@ TR_J9InlinerPolicy::willBeInlinedInCodeGen(TR::RecognizedMethod method)
2533
2533
bool
2534
2534
TR_J9InlinerPolicy::skipHCRGuardForCallee (TR_ResolvedMethod *callee)
2535
2535
{
2536
+ // Skip HCR guards for callees annotated with @IntrinsicCandidate, and ignore any
2537
+ // later redefinition as these methods are meant to have special handling for
2538
+ // performance reasons. @IntrinsicCandidate annotation is only used in the JCL.
2539
+ // We would only be inlining @IntrinsicCandidate methods because we do not
2540
+ // have any special handling for them yet.
2541
+ if (comp ()->fej9 ()->isIntrinsicCandidate (callee))
2542
+ return true ;
2543
+
2536
2544
// TODO: This is a very hacky way of avoiding HCR guards on sensitive String Compression methods which allows idiom
2537
2545
// recognition to work. It also avoids unnecessary block splitting in performance sensitive methods for String
2538
2546
// operations that are quite common. Can we do something better?
You can’t perform that action at this time.
0 commit comments