public final class MustNotSynchronizeAnnotationChecker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MustNotSynchronizeAnnotationChecker.Options |
static class |
MustNotSynchronizeAnnotationChecker.WarningException |
Modifier and Type | Method and Description |
---|---|
static void |
check(org.graalvm.compiler.debug.DebugContext debug,
Collection<HostedMethod> methods)
Entry point method.
|
protected boolean |
checkMethod(HostedMethod method,
HostedMethod methodImpl)
Check this method for direct synchronizations or calls to methods that synchronize.
|
void |
checkMethods(org.graalvm.compiler.debug.DebugContext debug)
Check methods with the
MustNotSynchronize annotation. |
protected boolean |
synchronizesDirectly(HostedMethod methodImpl)
Does this method synchronize directly?
|
protected boolean |
synchronizesIndirectly(HostedMethod methodImpl)
Does this method call a method that synchronizes?
|
public static void check(org.graalvm.compiler.debug.DebugContext debug, Collection<HostedMethod> methods)
public void checkMethods(org.graalvm.compiler.debug.DebugContext debug)
MustNotSynchronize
annotation.protected boolean checkMethod(HostedMethod method, HostedMethod methodImpl) throws MustNotSynchronizeAnnotationChecker.WarningException
protected boolean synchronizesDirectly(HostedMethod methodImpl) throws MustNotSynchronizeAnnotationChecker.WarningException
protected boolean synchronizesIndirectly(HostedMethod methodImpl) throws MustNotSynchronizeAnnotationChecker.WarningException