diff options
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 9e63564d58..30f1b4a431 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -314,6 +314,10 @@ class Runtime { return "2.1.0"; } + bool IsMethodHandlesEnabled() const { + return experimental_flags_ & ExperimentalFlags::kMethodHandles; + } + void DisallowNewSystemWeaks() REQUIRES_SHARED(Locks::mutator_lock_); void AllowNewSystemWeaks() REQUIRES_SHARED(Locks::mutator_lock_); void BroadcastForNewSystemWeaks() REQUIRES_SHARED(Locks::mutator_lock_); |