diff options
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r-- | runtime/class_linker.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index 4e38e6bce5..f993d17674 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -1456,6 +1456,10 @@ class ClassLoadCallback { public: virtual ~ClassLoadCallback() {} + // Called immediately before beginning class-definition and immediately before returning from it. + virtual void BeginDefineClass() REQUIRES_SHARED(Locks::mutator_lock_) {} + virtual void EndDefineClass() REQUIRES_SHARED(Locks::mutator_lock_) {} + // If set we will replace initial_class_def & initial_dex_file with the final versions. The // callback author is responsible for ensuring these are allocated in such a way they can be // cleaned up if another transformation occurs. Note that both must be set or null/unchanged on |