Add VMRuntime.isJavaDebuggable().
This is needed by ART tests to find out if the runtime is running in java
debuggable mode.
Bug: 79914966
Test: $ art/test.py -b --debuggable --host -t 674-hiddenapi
(cherry picked from commit ba1992dbe6a50cd53d070a1dfc5fb6cd391a3c8d)
Merged-In: I93279bcb9b73d60dbee386f33f8821132bd74a51
Change-Id: Iede6c8df27783c23683d6522055534f221c1cede
diff --git a/libart/src/main/java/dalvik/system/VMRuntime.java b/libart/src/main/java/dalvik/system/VMRuntime.java
index 4e28c26..78001fa 100644
--- a/libart/src/main/java/dalvik/system/VMRuntime.java
+++ b/libart/src/main/java/dalvik/system/VMRuntime.java
@@ -333,6 +333,11 @@
public native boolean isNativeDebuggable();
/**
+ * Returns true if Java debugging is enabled.
+ */
+ public native boolean isJavaDebuggable();
+
+ /**
* Registers a native allocation so that the heap knows about it and performs GC as required.
* If the number of native allocated bytes exceeds the native allocation watermark, the
* function requests a concurrent GC. If the native bytes allocated exceeds a second higher