public static class VMLockSupport.DumpVMMutexes extends SubstrateDiagnostics.DiagnosticThunk
| Constructor and Description |
|---|
DumpVMMutexes() |
| Modifier and Type | Method and Description |
|---|---|
int |
maxInvocationCount() |
void |
printDiagnostics(Log log,
SubstrateDiagnostics.ErrorContext context,
int maxDiagnosticLevel,
int invocationCount)
Prints diagnostic information.
|
public int maxInvocationCount()
maxInvocationCount in class SubstrateDiagnostics.DiagnosticThunkpublic void printDiagnostics(Log log, SubstrateDiagnostics.ErrorContext context, int maxDiagnosticLevel, int invocationCount)
SubstrateDiagnostics.DiagnosticThunkinvocationCount 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.printDiagnostics in class SubstrateDiagnostics.DiagnosticThunklog - 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()).