public abstract static class SubstrateDiagnostics.DiagnosticThunk extends Object
| Constructor and Description |
|---|
DiagnosticThunk() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
maxInvocationCount() |
abstract void |
printDiagnostics(Log log,
SubstrateDiagnostics.ErrorContext context,
int maxDiagnosticLevel,
int invocationCount)
Prints diagnostic information.
|
public abstract void printDiagnostics(Log log, SubstrateDiagnostics.ErrorContext context, int maxDiagnosticLevel, int invocationCount)
invocationCount is incremented for each sequential invocation. A typical
implementation of SubstrateDiagnostics.DiagnosticThunk.printDiagnostics(com.oracle.svm.core.log.Log, com.oracle.svm.core.SubstrateDiagnostics.ErrorContext, int, int) will reduce the amount of diagnostic output
when the invocationCount increases. This also reduces the risk of errors and
makes it more likely that the method finishes executing successfully.log - the output to which the diagnostics should be printed.context - contextual data for the error, e.g., register information.maxDiagnosticLevel - specifies which kind of operations the diagnostic thunk may
perform, see SubstrateDiagnostics.DiagnosticLevel.invocationCount - this value is >= 1 and <= SubstrateDiagnostics.DiagnosticThunk.maxInvocationCount()).public abstract int maxInvocationCount()