diff options
| author | 2014-12-04 10:21:02 +0000 | |
|---|---|---|
| committer | 2014-12-04 10:21:02 +0000 | |
| commit | baede348efa86600e64fb9db43cec1eef07c86d9 (patch) | |
| tree | 7ab2c2a69c72b7cd2ce1b7bf1ed9d26b07e4fd7e /runtime/mirror/class.h | |
| parent | 989210eb453898bd94bf3527f18f6146b07aa4bb (diff) | |
| parent | 6963e44331258b131bcc0599b868ba15902d6d22 (diff) | |
Merge "JDWP: fix breakpoint for method in the image"
Diffstat (limited to 'runtime/mirror/class.h')
| -rw-r--r-- | runtime/mirror/class.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index 812cfd30b1..bd49754731 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -1048,6 +1048,11 @@ class MANAGED Class FINAL : public Object { DISALLOW_COPY_AND_ASSIGN(InitializeClassVisitor); }; + // Returns true if the class loader is null, ie the class loader is the boot strap class loader. + bool IsBootStrapClassLoaded() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { + return GetClassLoader() == nullptr; + } + private: void SetVerifyErrorClass(Class* klass) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |