runtime.h revision ccdd4a5be1db2588767ed230b7064e5fe802ce8d
1/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ART_RUNTIME_RUNTIME_H_
18#define ART_RUNTIME_RUNTIME_H_
19
20#include <jni.h>
21#include <stdio.h>
22
23#include <iosfwd>
24#include <set>
25#include <string>
26#include <utility>
27#include <vector>
28
29#include "compiler_callbacks.h"
30#include "gc_root.h"
31#include "instrumentation.h"
32#include "instruction_set.h"
33#include "jobject_comparator.h"
34#include "nativebridge/native_bridge.h"
35#include "object_callbacks.h"
36#include "offsets.h"
37#include "profiler_options.h"
38#include "quick/quick_method_frame_info.h"
39#include "runtime_stats.h"
40#include "safe_map.h"
41
42namespace art {
43
44namespace gc {
45  class Heap;
46}  // namespace gc
47namespace mirror {
48  class ArtMethod;
49  class ClassLoader;
50  class Array;
51  template<class T> class ObjectArray;
52  template<class T> class PrimitiveArray;
53  typedef PrimitiveArray<int8_t> ByteArray;
54  class String;
55  class Throwable;
56}  // namespace mirror
57namespace verifier {
58class MethodVerifier;
59}
60class ClassLinker;
61class DexFile;
62class InternTable;
63class JavaVMExt;
64class MonitorList;
65class MonitorPool;
66class NullPointerHandler;
67class SignalCatcher;
68class StackOverflowHandler;
69class SuspensionHandler;
70class ThreadList;
71class Trace;
72class Transaction;
73
74typedef std::vector<std::pair<std::string, const void*>> RuntimeOptions;
75
76// Not all combinations of flags are valid. You may not visit all roots as well as the new roots
77// (no logical reason to do this). You also may not start logging new roots and stop logging new
78// roots (also no logical reason to do this).
79enum VisitRootFlags : uint8_t {
80  kVisitRootFlagAllRoots = 0x1,
81  kVisitRootFlagNewRoots = 0x2,
82  kVisitRootFlagStartLoggingNewRoots = 0x4,
83  kVisitRootFlagStopLoggingNewRoots = 0x8,
84  kVisitRootFlagClearRootLog = 0x10,
85};
86
87class Runtime {
88 public:
89  // Creates and initializes a new runtime.
90  static bool Create(const RuntimeOptions& options, bool ignore_unrecognized)
91      SHARED_TRYLOCK_FUNCTION(true, Locks::mutator_lock_);
92
93  bool IsCompiler() const {
94    return compiler_callbacks_ != nullptr;
95  }
96
97  bool CanRelocate() const {
98    return !IsCompiler() || compiler_callbacks_->IsRelocationPossible();
99  }
100
101  bool ShouldRelocate() const {
102    return must_relocate_ && CanRelocate();
103  }
104
105  bool MustRelocateIfPossible() const {
106    return must_relocate_;
107  }
108
109  bool IsDex2OatEnabled() const {
110    return dex2oat_enabled_;
111  }
112
113  CompilerCallbacks* GetCompilerCallbacks() {
114    return compiler_callbacks_;
115  }
116
117  bool IsZygote() const {
118    return is_zygote_;
119  }
120
121  bool IsExplicitGcDisabled() const {
122    return is_explicit_gc_disabled_;
123  }
124
125  std::string GetCompilerExecutable() const;
126  std::string GetPatchoatExecutable() const;
127
128  const std::vector<std::string>& GetCompilerOptions() const {
129    return compiler_options_;
130  }
131
132  const std::vector<std::string>& GetImageCompilerOptions() const {
133    return image_compiler_options_;
134  }
135
136  const ProfilerOptions& GetProfilerOptions() const {
137    return profiler_options_;
138  }
139
140  // Starts a runtime, which may cause threads to be started and code to run.
141  bool Start() UNLOCK_FUNCTION(Locks::mutator_lock_);
142
143  bool IsShuttingDown(Thread* self);
144  bool IsShuttingDownLocked() const EXCLUSIVE_LOCKS_REQUIRED(Locks::runtime_shutdown_lock_) {
145    return shutting_down_;
146  }
147
148  size_t NumberOfThreadsBeingBorn() const EXCLUSIVE_LOCKS_REQUIRED(Locks::runtime_shutdown_lock_) {
149    return threads_being_born_;
150  }
151
152  void StartThreadBirth() EXCLUSIVE_LOCKS_REQUIRED(Locks::runtime_shutdown_lock_) {
153    threads_being_born_++;
154  }
155
156  void EndThreadBirth() EXCLUSIVE_LOCKS_REQUIRED(Locks::runtime_shutdown_lock_);
157
158  bool IsStarted() const {
159    return started_;
160  }
161
162  bool IsFinishedStarting() const {
163    return finished_starting_;
164  }
165
166  static Runtime* Current() {
167    return instance_;
168  }
169
170  // Aborts semi-cleanly. Used in the implementation of LOG(FATAL), which most
171  // callers should prefer.
172  // This isn't marked ((noreturn)) because then gcc will merge multiple calls
173  // in a single function together. This reduces code size slightly, but means
174  // that the native stack trace we get may point at the wrong call site.
175  static void Abort() LOCKS_EXCLUDED(Locks::abort_lock_);
176
177  // Returns the "main" ThreadGroup, used when attaching user threads.
178  jobject GetMainThreadGroup() const;
179
180  // Returns the "system" ThreadGroup, used when attaching our internal threads.
181  jobject GetSystemThreadGroup() const;
182
183  // Returns the system ClassLoader which represents the CLASSPATH.
184  jobject GetSystemClassLoader() const;
185
186  // Attaches the calling native thread to the runtime.
187  bool AttachCurrentThread(const char* thread_name, bool as_daemon, jobject thread_group,
188                           bool create_peer);
189
190  void CallExitHook(jint status);
191
192  // Detaches the current native thread from the runtime.
193  void DetachCurrentThread() LOCKS_EXCLUDED(Locks::mutator_lock_);
194
195  void DumpForSigQuit(std::ostream& os)
196      EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_);
197  void DumpLockHolders(std::ostream& os);
198
199  ~Runtime();
200
201  const std::string& GetBootClassPathString() const {
202    return boot_class_path_string_;
203  }
204
205  const std::string& GetClassPathString() const {
206    return class_path_string_;
207  }
208
209  ClassLinker* GetClassLinker() const {
210    return class_linker_;
211  }
212
213  size_t GetDefaultStackSize() const {
214    return default_stack_size_;
215  }
216
217  gc::Heap* GetHeap() const {
218    return heap_;
219  }
220
221  InternTable* GetInternTable() const {
222    DCHECK(intern_table_ != NULL);
223    return intern_table_;
224  }
225
226  JavaVMExt* GetJavaVM() const {
227    return java_vm_;
228  }
229
230  size_t GetMaxSpinsBeforeThinkLockInflation() const {
231    return max_spins_before_thin_lock_inflation_;
232  }
233
234  MonitorList* GetMonitorList() const {
235    return monitor_list_;
236  }
237
238  MonitorPool* GetMonitorPool() const {
239    return monitor_pool_;
240  }
241
242  mirror::Throwable* GetPreAllocatedOutOfMemoryError() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
243
244  const std::vector<std::string>& GetProperties() const {
245    return properties_;
246  }
247
248  ThreadList* GetThreadList() const {
249    return thread_list_;
250  }
251
252  static const char* GetVersion() {
253    return "2.1.0";
254  }
255
256  void DisallowNewSystemWeaks() EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_);
257  void AllowNewSystemWeaks() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
258
259  // Visit all the roots. If only_dirty is true then non-dirty roots won't be visited. If
260  // clean_dirty is true then dirty roots will be marked as non-dirty after visiting.
261  void VisitRoots(RootCallback* visitor, void* arg, VisitRootFlags flags = kVisitRootFlagAllRoots)
262      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
263
264  // Visit all of the roots we can do safely do concurrently.
265  void VisitConcurrentRoots(RootCallback* visitor, void* arg,
266                            VisitRootFlags flags = kVisitRootFlagAllRoots)
267      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
268
269  // Visit all of the non thread roots, we can do this with mutators unpaused.
270  void VisitNonThreadRoots(RootCallback* visitor, void* arg)
271      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
272
273  // Visit all other roots which must be done with mutators suspended.
274  void VisitNonConcurrentRoots(RootCallback* visitor, void* arg)
275      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
276
277  // Sweep system weaks, the system weak is deleted if the visitor return nullptr. Otherwise, the
278  // system weak is updated to be the visitor's returned value.
279  void SweepSystemWeaks(IsMarkedCallback* visitor, void* arg)
280      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
281
282  // Constant roots are the roots which never change after the runtime is initialized, they only
283  // need to be visited once per GC cycle.
284  void VisitConstantRoots(RootCallback* callback, void* arg)
285      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
286
287  // Returns a special method that calls into a trampoline for runtime method resolution
288  mirror::ArtMethod* GetResolutionMethod() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
289
290  bool HasResolutionMethod() const {
291    return !resolution_method_.IsNull();
292  }
293
294  void SetResolutionMethod(mirror::ArtMethod* method) {
295    resolution_method_ = GcRoot<mirror::ArtMethod>(method);
296  }
297
298  mirror::ArtMethod* CreateResolutionMethod() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
299
300  // Returns a special method that calls into a trampoline for runtime imt conflicts.
301  mirror::ArtMethod* GetImtConflictMethod() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
302
303  bool HasImtConflictMethod() const {
304    return !imt_conflict_method_.IsNull();
305  }
306
307  void SetImtConflictMethod(mirror::ArtMethod* method) {
308    imt_conflict_method_ = GcRoot<mirror::ArtMethod>(method);
309  }
310
311  mirror::ArtMethod* CreateImtConflictMethod() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
312
313  // Returns an imt with every entry set to conflict, used as default imt for all classes.
314  mirror::ObjectArray<mirror::ArtMethod>* GetDefaultImt()
315      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
316
317  bool HasDefaultImt() const {
318    return !default_imt_.IsNull();
319  }
320
321  void SetDefaultImt(mirror::ObjectArray<mirror::ArtMethod>* imt) {
322    default_imt_ = GcRoot<mirror::ObjectArray<mirror::ArtMethod>>(imt);
323  }
324
325  mirror::ObjectArray<mirror::ArtMethod>* CreateDefaultImt(ClassLinker* cl)
326      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
327
328  // Returns a special method that describes all callee saves being spilled to the stack.
329  enum CalleeSaveType {
330    kSaveAll,
331    kRefsOnly,
332    kRefsAndArgs,
333    kLastCalleeSaveType  // Value used for iteration
334  };
335
336  bool HasCalleeSaveMethod(CalleeSaveType type) const {
337    return !callee_save_methods_[type].IsNull();
338  }
339
340  mirror::ArtMethod* GetCalleeSaveMethod(CalleeSaveType type)
341      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
342
343  mirror::ArtMethod* GetCalleeSaveMethodUnchecked(CalleeSaveType type)
344      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
345
346  QuickMethodFrameInfo GetCalleeSaveMethodFrameInfo(CalleeSaveType type) const {
347    return callee_save_method_frame_infos_[type];
348  }
349
350  QuickMethodFrameInfo GetRuntimeMethodFrameInfo(mirror::ArtMethod* method)
351      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
352
353  static size_t GetCalleeSaveMethodOffset(CalleeSaveType type) {
354    return OFFSETOF_MEMBER(Runtime, callee_save_methods_[type]);
355  }
356
357  InstructionSet GetInstructionSet() const {
358    return instruction_set_;
359  }
360
361  void SetInstructionSet(InstructionSet instruction_set);
362
363  void SetCalleeSaveMethod(mirror::ArtMethod* method, CalleeSaveType type);
364
365  mirror::ArtMethod* CreateCalleeSaveMethod(CalleeSaveType type)
366      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
367
368  int32_t GetStat(int kind);
369
370  RuntimeStats* GetStats() {
371    return &stats_;
372  }
373
374  bool HasStatsEnabled() const {
375    return stats_enabled_;
376  }
377
378  void ResetStats(int kinds);
379
380  void SetStatsEnabled(bool new_state);
381
382  void PreZygoteFork();
383  bool InitZygote();
384  void DidForkFromZygote();
385
386  const instrumentation::Instrumentation* GetInstrumentation() const {
387    return &instrumentation_;
388  }
389
390  instrumentation::Instrumentation* GetInstrumentation() {
391    return &instrumentation_;
392  }
393
394  bool UseCompileTimeClassPath() const {
395    return use_compile_time_class_path_;
396  }
397
398  void AddMethodVerifier(verifier::MethodVerifier* verifier) LOCKS_EXCLUDED(method_verifier_lock_);
399  void RemoveMethodVerifier(verifier::MethodVerifier* verifier)
400      LOCKS_EXCLUDED(method_verifier_lock_);
401
402  const std::vector<const DexFile*>& GetCompileTimeClassPath(jobject class_loader);
403  void SetCompileTimeClassPath(jobject class_loader, std::vector<const DexFile*>& class_path);
404
405  void StartProfiler(const char* profile_output_filename);
406  void UpdateProfilerState(int state);
407
408  // Transaction support.
409  bool IsActiveTransaction() const {
410    return preinitialization_transaction_ != nullptr;
411  }
412  void EnterTransactionMode(Transaction* transaction);
413  void ExitTransactionMode();
414  void RecordWriteField32(mirror::Object* obj, MemberOffset field_offset, uint32_t value,
415                          bool is_volatile) const;
416  void RecordWriteField64(mirror::Object* obj, MemberOffset field_offset, uint64_t value,
417                          bool is_volatile) const;
418  void RecordWriteFieldReference(mirror::Object* obj, MemberOffset field_offset,
419                                 mirror::Object* value, bool is_volatile) const;
420  void RecordWriteArray(mirror::Array* array, size_t index, uint64_t value) const
421      SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
422  void RecordStrongStringInsertion(mirror::String* s, uint32_t hash_code) const
423      EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);
424  void RecordWeakStringInsertion(mirror::String* s, uint32_t hash_code) const
425      EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);
426  void RecordStrongStringRemoval(mirror::String* s, uint32_t hash_code) const
427      EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);
428  void RecordWeakStringRemoval(mirror::String* s, uint32_t hash_code) const
429      EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);
430
431  void SetFaultMessage(const std::string& message);
432  // Only read by the signal handler, NO_THREAD_SAFETY_ANALYSIS to prevent lock order violations
433  // with the unexpected_signal_lock_.
434  const std::string& GetFaultMessage() NO_THREAD_SAFETY_ANALYSIS {
435    return fault_message_;
436  }
437
438  void AddCurrentRuntimeFeaturesAsDex2OatArguments(std::vector<std::string>* arg_vector) const;
439
440  bool ExplicitNullChecks() const {
441    return null_pointer_handler_ == nullptr;
442  }
443
444  bool ExplicitSuspendChecks() const {
445    return suspend_handler_ == nullptr;
446  }
447
448  bool ExplicitStackOverflowChecks() const {
449    return stack_overflow_handler_ == nullptr;
450  }
451
452  bool IsVerificationEnabled() const {
453    return verify_;
454  }
455
456  bool RunningOnValgrind() const {
457    return running_on_valgrind_;
458  }
459
460  void SetTargetSdkVersion(int32_t version) {
461    target_sdk_version_ = version;
462  }
463
464  int32_t GetTargetSdkVersion() const {
465    return target_sdk_version_;
466  }
467
468  static const char* GetDefaultInstructionSetFeatures() {
469    return kDefaultInstructionSetFeatures;
470  }
471
472 private:
473  static void InitPlatformSignalHandlers();
474
475  Runtime();
476
477  void BlockSignals();
478
479  bool Init(const RuntimeOptions& options, bool ignore_unrecognized)
480      SHARED_TRYLOCK_FUNCTION(true, Locks::mutator_lock_);
481  void InitNativeMethods() LOCKS_EXCLUDED(Locks::mutator_lock_);
482  void InitThreadGroups(Thread* self);
483  void RegisterRuntimeNativeMethods(JNIEnv* env);
484
485  void StartDaemonThreads();
486  void StartSignalCatcher();
487
488  // A pointer to the active runtime or NULL.
489  static Runtime* instance_;
490
491  static const char* kDefaultInstructionSetFeatures;
492
493  // NOTE: these must match the gc::ProcessState values as they come directly from the framework.
494  static constexpr int kProfileForground = 0;
495  static constexpr int kProfileBackgrouud = 1;
496
497  GcRoot<mirror::ArtMethod> callee_save_methods_[kLastCalleeSaveType];
498  GcRoot<mirror::Throwable> pre_allocated_OutOfMemoryError_;
499  GcRoot<mirror::ArtMethod> resolution_method_;
500  GcRoot<mirror::ArtMethod> imt_conflict_method_;
501  GcRoot<mirror::ObjectArray<mirror::ArtMethod>> default_imt_;
502
503  InstructionSet instruction_set_;
504  QuickMethodFrameInfo callee_save_method_frame_infos_[kLastCalleeSaveType];
505
506  CompilerCallbacks* compiler_callbacks_;
507  bool is_zygote_;
508  bool must_relocate_;
509  bool is_concurrent_gc_enabled_;
510  bool is_explicit_gc_disabled_;
511  bool dex2oat_enabled_;
512
513  std::string compiler_executable_;
514  std::string patchoat_executable_;
515  std::vector<std::string> compiler_options_;
516  std::vector<std::string> image_compiler_options_;
517
518  std::string boot_class_path_string_;
519  std::string class_path_string_;
520  std::vector<std::string> properties_;
521
522  // The default stack size for managed threads created by the runtime.
523  size_t default_stack_size_;
524
525  gc::Heap* heap_;
526
527  // The number of spins that are done before thread suspension is used to forcibly inflate.
528  size_t max_spins_before_thin_lock_inflation_;
529  MonitorList* monitor_list_;
530  MonitorPool* monitor_pool_;
531
532  ThreadList* thread_list_;
533
534  InternTable* intern_table_;
535
536  ClassLinker* class_linker_;
537
538  SignalCatcher* signal_catcher_;
539  std::string stack_trace_file_;
540
541  JavaVMExt* java_vm_;
542
543  // Fault message, printed when we get a SIGSEGV.
544  Mutex fault_message_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;
545  std::string fault_message_ GUARDED_BY(fault_message_lock_);
546
547  // Method verifier set, used so that we can update their GC roots.
548  Mutex method_verifier_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;
549  std::set<verifier::MethodVerifier*> method_verifiers_;
550
551  // A non-zero value indicates that a thread has been created but not yet initialized. Guarded by
552  // the shutdown lock so that threads aren't born while we're shutting down.
553  size_t threads_being_born_ GUARDED_BY(Locks::runtime_shutdown_lock_);
554
555  // Waited upon until no threads are being born.
556  std::unique_ptr<ConditionVariable> shutdown_cond_ GUARDED_BY(Locks::runtime_shutdown_lock_);
557
558  // Set when runtime shutdown is past the point that new threads may attach.
559  bool shutting_down_ GUARDED_BY(Locks::runtime_shutdown_lock_);
560
561  // The runtime is starting to shutdown but is blocked waiting on shutdown_cond_.
562  bool shutting_down_started_ GUARDED_BY(Locks::runtime_shutdown_lock_);
563
564  bool started_;
565
566  // New flag added which tells us if the runtime has finished starting. If
567  // this flag is set then the Daemon threads are created and the class loader
568  // is created. This flag is needed for knowing if its safe to request CMS.
569  bool finished_starting_;
570
571  // Hooks supported by JNI_CreateJavaVM
572  jint (*vfprintf_)(FILE* stream, const char* format, va_list ap);
573  void (*exit_)(jint status);
574  void (*abort_)();
575
576  bool stats_enabled_;
577  RuntimeStats stats_;
578
579  const bool running_on_valgrind_;
580
581  std::string profile_output_filename_;
582  ProfilerOptions profiler_options_;
583  bool profiler_started_;
584
585  bool method_trace_;
586  std::string method_trace_file_;
587  size_t method_trace_file_size_;
588  instrumentation::Instrumentation instrumentation_;
589
590  typedef SafeMap<jobject, std::vector<const DexFile*>, JobjectComparator> CompileTimeClassPaths;
591  CompileTimeClassPaths compile_time_class_paths_;
592  bool use_compile_time_class_path_;
593
594  jobject main_thread_group_;
595  jobject system_thread_group_;
596
597  // As returned by ClassLoader.getSystemClassLoader().
598  jobject system_class_loader_;
599
600  // If true, then we dump the GC cumulative timings on shutdown.
601  bool dump_gc_performance_on_shutdown_;
602
603  // Transaction used for pre-initializing classes at compilation time.
604  Transaction* preinitialization_transaction_;
605  NullPointerHandler* null_pointer_handler_;
606  SuspensionHandler* suspend_handler_;
607  StackOverflowHandler* stack_overflow_handler_;
608
609  // If false, verification is disabled. True by default.
610  bool verify_;
611
612  // Specifies target SDK version to allow workarounds for certain API levels.
613  int32_t target_sdk_version_;
614
615  // Implicit checks flags.
616  bool implicit_null_checks_;       // NullPointer checks are implicit.
617  bool implicit_so_checks_;         // StackOverflow checks are implicit.
618  bool implicit_suspend_checks_;    // Thread suspension checks are implicit.
619
620  // The filename to the native bridge library. If this is not empty the native bridge will be
621  // initialized and loaded from the given file (initialized and available). An empty value means
622  // that there's no native bridge (initialized but not available).
623  //
624  // The native bridge allows running native code compiled for a foreign ISA. The way it works is,
625  // if standard dlopen fails to load native library associated with native activity, it calls to
626  // the native bridge to load it and then gets the trampoline for the entry to native activity.
627  std::string native_bridge_library_filename_;
628
629  // Native bridge library runtime callbacks. They represent the runtime interface to native bridge.
630  //
631  // The interface is expected to expose the following methods:
632  // getMethodShorty(): in the case of native method calling JNI native function CallXXXXMethodY(),
633  //   native bridge calls back to VM for the shorty of the method so that it can prepare based on
634  //   host calling convention.
635  // getNativeMethodCount() and getNativeMethods(): in case of JNI function UnregisterNatives(),
636  //   native bridge can call back to get all native methods of specified class so that all
637  //   corresponding trampolines can be destroyed.
638  android::NativeBridgeRuntimeCallbacks native_bridge_art_callbacks_;
639
640  DISALLOW_COPY_AND_ASSIGN(Runtime);
641};
642
643}  // namespace art
644
645#endif  // ART_RUNTIME_RUNTIME_H_
646