Skip to content

Commit

Permalink
Merge pull request #18240 from keithc-ca/boolean
Browse files Browse the repository at this point in the history
Remove redundant comparisons with FALSE
  • Loading branch information
tajila committed Oct 6, 2023
2 parents 7e24d9a + fb8f145 commit 8134561
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime/jit_vm/cthelpers.cpp
Expand Up @@ -223,7 +223,7 @@ jitIsFieldStable(J9VMThread *currentThread, J9Class *clazz, UDATA cpIndex)
BOOLEAN
jitIsMethodTaggedWithForceInline(J9VMThread *currentThread, J9Method *method)
{
return FALSE != methodContainsRuntimeAnnotation(currentThread, method, (J9UTF8 *)&ojdk_forceInline);
return methodContainsRuntimeAnnotation(currentThread, method, (J9UTF8 *)&ojdk_forceInline);
}

/**
Expand All @@ -236,7 +236,7 @@ jitIsMethodTaggedWithForceInline(J9VMThread *currentThread, J9Method *method)
BOOLEAN
jitIsMethodTaggedWithDontInline(J9VMThread *currentThread, J9Method *method)
{
return FALSE != methodContainsRuntimeAnnotation(currentThread, method, (J9UTF8 *)&ojdk_dontInline);
return methodContainsRuntimeAnnotation(currentThread, method, (J9UTF8 *)&ojdk_dontInline);
}

/**
Expand All @@ -250,7 +250,7 @@ BOOLEAN
jitIsMethodTaggedWithIntrinsicCandidate(J9VMThread *currentThread, J9Method *method)
{
#if JAVA_SPEC_VERSION >= 16
return FALSE != methodContainsRuntimeAnnotation(currentThread, method, (J9UTF8 *)&ojdk_intrinsicCandidate);
return methodContainsRuntimeAnnotation(currentThread, method, (J9UTF8 *)&ojdk_intrinsicCandidate);
#else /* JAVA_SPEC_VERSION >= 16 */
return FALSE;
#endif /* JAVA_SPEC_VERSION >= 16 */
Expand All @@ -267,10 +267,10 @@ BOOLEAN
jitIsMethodTaggedWithChangesCurrentThread(J9VMThread *currentThread, J9Method *method)
{
#if JAVA_SPEC_VERSION >= 21
return FALSE != methodContainsRuntimeAnnotation(currentThread, method, (J9UTF8 *)&ojdk_changesCurrentThread);
return methodContainsRuntimeAnnotation(currentThread, method, (J9UTF8 *)&ojdk_changesCurrentThread);
#else /* JAVA_SPEC_VERSION >= 21 */
return FALSE;
#endif /* JAVA_SPEC_VERSION >= 21 */
}

}
} /* extern "C" */

0 comments on commit 8134561

Please sign in to comment.