diff options
Diffstat (limited to 'libartbase/base/utils.h')
-rw-r--r-- | libartbase/base/utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libartbase/base/utils.h b/libartbase/base/utils.h index 32f8b87204..4b86651f95 100644 --- a/libartbase/base/utils.h +++ b/libartbase/base/utils.h @@ -129,6 +129,9 @@ bool IsKernelVersionAtLeast(int reqd_major, int reqd_minor); // On some old kernels, a cache operation may segfault. WARN_UNUSED bool CacheOperationsMaySegFault(); +// Is the execution environment on a virtual machine? See ART_TEST_ON_VM. +WARN_UNUSED bool RunningOnVM(); + template <typename Func, typename... Args> static inline void CheckedCall(const Func& function, const char* what, Args... args) { int rc = function(args...); |