LincheckJavaAgent

LincheckJavaAgent represents the Lincheck Java agent responsible for instrumenting bytecode.

Properties

Link copied to clipboard

The Instrumentation instance is used to perform bytecode transformations during runtime.

Link copied to clipboard
Link copied to clipboard

Names (canonical) of the classes that were instrumented since the last agent installation.

Functions

Link copied to clipboard

Ensures that the whole hierarchy of the given class is transformed for Lincheck analysis. See the description above.

This function ensures that the whole hierarchy of the given class is transformed for Lincheck analysis.

Link copied to clipboard

Ensures that the given object and all objects reachable from it are transformed for Lincheck analysis. The function is called upon a test instance creation to ensure that all the classes related to it are transformed.

Link copied to clipboard
fun install(instrumentationMode: InstrumentationMode)

Adds LincheckClassFileTransformer to this JVM instance. Also, retransforms already loaded classes.

Link copied to clipboard
fun uninstall()

Detaches LincheckClassFileTransformer from this JVM instance and re-transforms the transformed classes to remove the Lincheck injections.