Class AbstractSafePointStrategy
java.lang.Object
org.qbicc.plugin.gc.common.safepoint.AbstractSafePointStrategy
- Direct Known Subclasses:
AbstractMethodBasedSafePointStrategy,NoSafePointStrategy
The base class for safe point polling strategy implementation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidforEachSafePointMethod(Consumer<String> consumer) abstract voidImplement the method which clears a global safepoint request.abstract voidImplement the method which requests a global safepoint.final voidabstract voidImplement theSafePointnode.
-
Field Details
-
ctxt
-
-
Constructor Details
-
AbstractSafePointStrategy
Construct a new instance. The constructor should inject any additional fields or methods needed to implement the strategy.- Parameters:
ctxt- the compilation context
-
-
Method Details
-
registerReachableMethods
-
forEachSafePointMethod
-
safePoint
Implement theSafePointnode. This method is called during lowering to implement the actual action of a safepoint poll.- Parameters:
bbb- the block builder (notnull)
-
implementRequestGlobalSafePoint
Implement the method which requests a global safepoint. The implementation must not throw any exception, poll for a safepoint, or call any method that may do either.- Parameters:
bbb- the block builder (notnull)
-
implementClearGlobalSafePoint
Implement the method which clears a global safepoint request. The implementation must not throw any exception, poll for a safepoint, or call any method that may do either.- Parameters:
bbb- the block builder (notnull)
-