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
fun ensureClassHierarchyIsTransformed(canonicalClassName: String)

Ensures that the specified class and all its superclasses are transformed.

Link copied to clipboard

Ensures that the given object and all its referenced objects are transformed for Lincheck analysis. If the INSTRUMENT_ALL_CLASSES_IN_MODEL_CHECKING_MODE flag is set to true, no transformation is performed.

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.