Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 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 | |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 17 | #include <string.h> |
| 18 | #include <unistd.h> |
| 19 | |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 20 | #include "class_linker.h" |
| 21 | #include "debugger.h" |
| 22 | #include "hprof/hprof.h" |
| 23 | #include "jni_internal.h" |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame^] | 24 | #include "mirror/class.h" |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 25 | #include "ScopedUtfChars.h" |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 26 | #include "scoped_thread_state_change.h" |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 27 | #include "toStringArray.h" |
| 28 | #include "trace.h" |
| 29 | |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 30 | namespace art { |
| 31 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 32 | static jobjectArray VMDebug_getVmFeatureList(JNIEnv* env, jclass) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 33 | std::vector<std::string> features; |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 34 | features.push_back("method-trace-profiling"); |
| 35 | features.push_back("method-trace-profiling-streaming"); |
Elliott Hughes | 767a147 | 2011-10-26 18:49:02 -0700 | [diff] [blame] | 36 | features.push_back("hprof-heap-dump"); |
| 37 | features.push_back("hprof-heap-dump-streaming"); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 38 | return toStringArray(env, features); |
| 39 | } |
| 40 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 41 | static void VMDebug_startAllocCounting(JNIEnv*, jclass) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 42 | Runtime::Current()->SetStatsEnabled(true); |
| 43 | } |
| 44 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 45 | static void VMDebug_stopAllocCounting(JNIEnv*, jclass) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 46 | Runtime::Current()->SetStatsEnabled(false); |
| 47 | } |
| 48 | |
Elliott Hughes | 1bac54f | 2012-03-16 12:48:31 -0700 | [diff] [blame] | 49 | static jint VMDebug_getAllocCount(JNIEnv*, jclass, jint kind) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 50 | return Runtime::Current()->GetStat(kind); |
| 51 | } |
| 52 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 53 | static void VMDebug_resetAllocCount(JNIEnv*, jclass, jint kinds) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 54 | Runtime::Current()->ResetStats(kinds); |
| 55 | } |
| 56 | |
Elliott Hughes | 1bac54f | 2012-03-16 12:48:31 -0700 | [diff] [blame] | 57 | static void VMDebug_startMethodTracingDdmsImpl(JNIEnv*, jclass, jint bufferSize, jint flags) { |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 58 | Trace::Start("[DDMS]", -1, bufferSize, flags, true); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 59 | } |
| 60 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 61 | static void VMDebug_startMethodTracingFd(JNIEnv* env, jclass, jstring javaTraceFilename, |
| 62 | jobject javaFd, jint bufferSize, jint flags) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 63 | int originalFd = jniGetFDFromFileDescriptor(env, javaFd); |
| 64 | if (originalFd < 0) { |
| 65 | return; |
| 66 | } |
| 67 | |
| 68 | int fd = dup(originalFd); |
| 69 | if (fd < 0) { |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 70 | ScopedObjectAccess soa(env); |
| 71 | Thread::Current()->ThrowNewExceptionF("Ljava/lang/RuntimeException;", |
| 72 | "dup(%d) failed: %s", originalFd, strerror(errno)); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 73 | return; |
| 74 | } |
| 75 | |
| 76 | ScopedUtfChars traceFilename(env, javaTraceFilename); |
| 77 | if (traceFilename.c_str() == NULL) { |
| 78 | return; |
| 79 | } |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 80 | Trace::Start(traceFilename.c_str(), fd, bufferSize, flags, false); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 81 | } |
| 82 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 83 | static void VMDebug_startMethodTracingFilename(JNIEnv* env, jclass, jstring javaTraceFilename, |
| 84 | jint bufferSize, jint flags) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 85 | ScopedUtfChars traceFilename(env, javaTraceFilename); |
| 86 | if (traceFilename.c_str() == NULL) { |
| 87 | return; |
| 88 | } |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 89 | Trace::Start(traceFilename.c_str(), -1, bufferSize, flags, false); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 90 | } |
| 91 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 92 | static jboolean VMDebug_isMethodTracingActive(JNIEnv*, jclass) { |
jeffhao | 2692b57 | 2011-12-16 15:42:28 -0800 | [diff] [blame] | 93 | return Runtime::Current()->IsMethodTracingActive(); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 94 | } |
| 95 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 96 | static void VMDebug_stopMethodTracing(JNIEnv*, jclass) { |
jeffhao | e343b76 | 2011-12-05 16:36:44 -0800 | [diff] [blame] | 97 | Trace::Stop(); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 98 | } |
| 99 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 100 | static void VMDebug_startEmulatorTracing(JNIEnv*, jclass) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 101 | UNIMPLEMENTED(WARNING); |
| 102 | //dvmEmulatorTraceStart(); |
| 103 | } |
| 104 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 105 | static void VMDebug_stopEmulatorTracing(JNIEnv*, jclass) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 106 | UNIMPLEMENTED(WARNING); |
| 107 | //dvmEmulatorTraceStop(); |
| 108 | } |
| 109 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 110 | static jboolean VMDebug_isDebuggerConnected(JNIEnv*, jclass) { |
Elliott Hughes | c0f0933 | 2012-03-26 13:27:06 -0700 | [diff] [blame] | 111 | return Dbg::IsDebuggerActive(); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 112 | } |
| 113 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 114 | static jboolean VMDebug_isDebuggingEnabled(JNIEnv*, jclass) { |
Elliott Hughes | c0f0933 | 2012-03-26 13:27:06 -0700 | [diff] [blame] | 115 | return Dbg::IsJdwpConfigured(); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 116 | } |
| 117 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 118 | static jlong VMDebug_lastDebuggerActivity(JNIEnv*, jclass) { |
Elliott Hughes | 872d4ec | 2011-10-21 17:07:15 -0700 | [diff] [blame] | 119 | return Dbg::LastDebuggerActivity(); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 120 | } |
| 121 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 122 | static void VMDebug_startInstructionCounting(JNIEnv* env, jclass) { |
| 123 | ScopedObjectAccess soa(env); |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 124 | Thread::Current()->ThrowNewException("Ljava/lang/UnsupportedOperationException;", ""); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 125 | } |
| 126 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 127 | static void VMDebug_stopInstructionCounting(JNIEnv* env, jclass) { |
| 128 | ScopedObjectAccess soa(env); |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 129 | Thread::Current()->ThrowNewException("Ljava/lang/UnsupportedOperationException;", ""); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 130 | } |
| 131 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 132 | static void VMDebug_getInstructionCount(JNIEnv* env, jclass, jintArray /*javaCounts*/) { |
| 133 | ScopedObjectAccess soa(env); |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 134 | Thread::Current()->ThrowNewException("Ljava/lang/UnsupportedOperationException;", ""); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 135 | } |
| 136 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 137 | static void VMDebug_resetInstructionCount(JNIEnv* env, jclass) { |
| 138 | ScopedObjectAccess soa(env); |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 139 | Thread::Current()->ThrowNewException("Ljava/lang/UnsupportedOperationException;", ""); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 140 | } |
| 141 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 142 | static void VMDebug_printLoadedClasses(JNIEnv* env, jclass, jint flags) { |
| 143 | ScopedObjectAccess soa(env); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 144 | return Runtime::Current()->GetClassLinker()->DumpAllClasses(flags); |
| 145 | } |
| 146 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 147 | static jint VMDebug_getLoadedClassCount(JNIEnv*, jclass) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 148 | return Runtime::Current()->GetClassLinker()->NumLoadedClasses(); |
| 149 | } |
| 150 | |
| 151 | /* |
| 152 | * Returns the thread-specific CPU-time clock value for the current thread, |
| 153 | * or -1 if the feature isn't supported. |
| 154 | */ |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 155 | static jlong VMDebug_threadCpuTimeNanos(JNIEnv*, jclass) { |
| 156 | return ThreadCpuNanoTime(); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | /* |
| 160 | * static void dumpHprofData(String fileName, FileDescriptor fd) |
| 161 | * |
| 162 | * Cause "hprof" data to be dumped. We can throw an IOException if an |
| 163 | * error occurs during file handling. |
| 164 | */ |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 165 | static void VMDebug_dumpHprofData(JNIEnv* env, jclass, jstring javaFilename, jobject javaFd) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 166 | // Only one of these may be NULL. |
| 167 | if (javaFilename == NULL && javaFd == NULL) { |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 168 | ScopedObjectAccess soa(env); |
| 169 | Thread::Current()->ThrowNewException("Ljava/lang/NullPointerException;", |
| 170 | "fileName == null && fd == null"); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 171 | return; |
| 172 | } |
| 173 | |
| 174 | std::string filename; |
| 175 | if (javaFilename != NULL) { |
| 176 | ScopedUtfChars chars(env, javaFilename); |
| 177 | if (env->ExceptionCheck()) { |
| 178 | return; |
| 179 | } |
| 180 | filename = chars.c_str(); |
| 181 | } else { |
| 182 | filename = "[fd]"; |
| 183 | } |
| 184 | |
| 185 | int fd = -1; |
| 186 | if (javaFd != NULL) { |
| 187 | fd = jniGetFDFromFileDescriptor(env, javaFd); |
| 188 | if (fd < 0) { |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 189 | ScopedObjectAccess soa(env); |
| 190 | Thread::Current()->ThrowNewException("Ljava/lang/RuntimeException;", |
| 191 | "Invalid file descriptor"); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 192 | return; |
| 193 | } |
| 194 | } |
| 195 | |
Elliott Hughes | 622a698 | 2012-06-08 17:58:54 -0700 | [diff] [blame] | 196 | hprof::DumpHeap(filename.c_str(), fd, false); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 197 | } |
| 198 | |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 199 | static void VMDebug_dumpHprofDataDdms(JNIEnv*, jclass) { |
Elliott Hughes | 622a698 | 2012-06-08 17:58:54 -0700 | [diff] [blame] | 200 | hprof::DumpHeap("[DDMS]", -1, true); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 201 | } |
| 202 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 203 | static void VMDebug_dumpReferenceTables(JNIEnv* env, jclass) { |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 204 | ScopedObjectAccess soa(env); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 205 | LOG(INFO) << "--- reference table dump ---"; |
| 206 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 207 | soa.Env()->DumpReferenceTables(LOG(INFO)); |
| 208 | soa.Vm()->DumpReferenceTables(LOG(INFO)); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 209 | |
| 210 | LOG(INFO) << "---"; |
| 211 | } |
| 212 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 213 | static void VMDebug_crash(JNIEnv*, jclass) { |
Elliott Hughes | 81ff318 | 2012-03-23 20:35:56 -0700 | [diff] [blame] | 214 | LOG(FATAL) << "Crashing runtime on request"; |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 215 | } |
| 216 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 217 | static void VMDebug_infopoint(JNIEnv*, jclass, jint id) { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 218 | LOG(INFO) << "VMDebug infopoint " << id << " hit"; |
| 219 | } |
| 220 | |
Ian Rogers | 00f7d0e | 2012-07-19 15:28:27 -0700 | [diff] [blame] | 221 | static jlong VMDebug_countInstancesOfClass(JNIEnv* env, jclass, jclass javaClass, |
| 222 | jboolean countAssignable) { |
| 223 | ScopedObjectAccess soa(env); |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame^] | 224 | mirror::Class* c = soa.Decode<mirror::Class*>(javaClass); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 225 | if (c == NULL) { |
| 226 | return 0; |
| 227 | } |
Ian Rogers | 2dd0e2c | 2013-01-24 12:42:14 -0800 | [diff] [blame^] | 228 | std::vector<mirror::Class*> classes; |
Elliott Hughes | ec0f83d | 2013-01-15 16:54:08 -0800 | [diff] [blame] | 229 | classes.push_back(c); |
| 230 | uint64_t count = 0; |
| 231 | Runtime::Current()->GetHeap()->CountInstances(classes, countAssignable, &count); |
| 232 | return count; |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 233 | } |
| 234 | |
Elliott Hughes | 0512f02 | 2012-03-15 22:10:52 -0700 | [diff] [blame] | 235 | static JNINativeMethod gMethods[] = { |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 236 | NATIVE_METHOD(VMDebug, countInstancesOfClass, "(Ljava/lang/Class;Z)J"), |
| 237 | NATIVE_METHOD(VMDebug, crash, "()V"), |
| 238 | NATIVE_METHOD(VMDebug, dumpHprofData, "(Ljava/lang/String;Ljava/io/FileDescriptor;)V"), |
| 239 | NATIVE_METHOD(VMDebug, dumpHprofDataDdms, "()V"), |
| 240 | NATIVE_METHOD(VMDebug, dumpReferenceTables, "()V"), |
| 241 | NATIVE_METHOD(VMDebug, getAllocCount, "(I)I"), |
| 242 | NATIVE_METHOD(VMDebug, getInstructionCount, "([I)V"), |
| 243 | NATIVE_METHOD(VMDebug, getLoadedClassCount, "()I"), |
| 244 | NATIVE_METHOD(VMDebug, getVmFeatureList, "()[Ljava/lang/String;"), |
| 245 | NATIVE_METHOD(VMDebug, infopoint, "(I)V"), |
| 246 | NATIVE_METHOD(VMDebug, isDebuggerConnected, "()Z"), |
| 247 | NATIVE_METHOD(VMDebug, isDebuggingEnabled, "()Z"), |
| 248 | NATIVE_METHOD(VMDebug, isMethodTracingActive, "()Z"), |
| 249 | NATIVE_METHOD(VMDebug, lastDebuggerActivity, "()J"), |
| 250 | NATIVE_METHOD(VMDebug, printLoadedClasses, "(I)V"), |
| 251 | NATIVE_METHOD(VMDebug, resetAllocCount, "(I)V"), |
| 252 | NATIVE_METHOD(VMDebug, resetInstructionCount, "()V"), |
| 253 | NATIVE_METHOD(VMDebug, startAllocCounting, "()V"), |
| 254 | NATIVE_METHOD(VMDebug, startEmulatorTracing, "()V"), |
| 255 | NATIVE_METHOD(VMDebug, startInstructionCounting, "()V"), |
| 256 | NATIVE_METHOD(VMDebug, startMethodTracingDdmsImpl, "(II)V"), |
| 257 | NATIVE_METHOD(VMDebug, startMethodTracingFd, "(Ljava/lang/String;Ljava/io/FileDescriptor;II)V"), |
| 258 | NATIVE_METHOD(VMDebug, startMethodTracingFilename, "(Ljava/lang/String;II)V"), |
| 259 | NATIVE_METHOD(VMDebug, stopAllocCounting, "()V"), |
| 260 | NATIVE_METHOD(VMDebug, stopEmulatorTracing, "()V"), |
| 261 | NATIVE_METHOD(VMDebug, stopInstructionCounting, "()V"), |
| 262 | NATIVE_METHOD(VMDebug, stopMethodTracing, "()V"), |
| 263 | NATIVE_METHOD(VMDebug, threadCpuTimeNanos, "()J"), |
| 264 | }; |
| 265 | |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 266 | void register_dalvik_system_VMDebug(JNIEnv* env) { |
Elliott Hughes | eac7667 | 2012-05-24 21:56:51 -0700 | [diff] [blame] | 267 | REGISTER_NATIVE_METHODS("dalvik/system/VMDebug"); |
Elliott Hughes | 9d5ccec | 2011-09-19 13:19:50 -0700 | [diff] [blame] | 268 | } |
| 269 | |
| 270 | } // namespace art |