/art/openjdkjvmti/ |
D | art_jvmti.h | 179 using JvmtiUniquePtr = std::unique_ptr<T, JvmtiDeleter<T>>; variable 183 static inline JvmtiUniquePtr<T> MakeJvmtiUniquePtr(jvmtiEnv* env, T* mem) { in MakeJvmtiUniquePtr() 184 return JvmtiUniquePtr<T>(mem, JvmtiDeleter<T>(env)); in MakeJvmtiUniquePtr() 189 static inline JvmtiUniquePtr<T> MakeJvmtiUniquePtr(jvmtiEnv* env, unsigned char* mem) { in MakeJvmtiUniquePtr() 190 return JvmtiUniquePtr<T>(reinterpret_cast<T*>(mem), JvmtiDeleter<T>(env)); in MakeJvmtiUniquePtr() 195 static inline JvmtiUniquePtr<T> AllocJvmtiUniquePtr(jvmtiEnv* env, jvmtiError* error) { in AllocJvmtiUniquePtr() 199 return JvmtiUniquePtr<T>(); in AllocJvmtiUniquePtr() 201 return JvmtiUniquePtr<T>(tmp, JvmtiDeleter<T>(env)); in AllocJvmtiUniquePtr() 206 static inline JvmtiUniquePtr<T> AllocJvmtiUniquePtr(jvmtiEnv* env, in AllocJvmtiUniquePtr() 212 return JvmtiUniquePtr<T>(); in AllocJvmtiUniquePtr() [all …]
|
D | ti_extension.cc | 57 /*out*/std::vector<JvmtiUniquePtr<char[]>>* char_buffers, in ToParamInfo() 59 JvmtiUniquePtr<char[]> param_name = CopyString(env, name, err); in ToParamInfo() 76 std::vector<JvmtiUniquePtr<char[]>> char_buffers; in GetExtensionFunctions() 77 std::vector<JvmtiUniquePtr<jvmtiParamInfo[]>> param_buffers; in GetExtensionFunctions() 78 std::vector<JvmtiUniquePtr<jvmtiError[]>> error_buffers; in GetExtensionFunctions() 90 JvmtiUniquePtr<char[]> id_ptr = CopyString(env, id, &error); in GetExtensionFunctions() 97 JvmtiUniquePtr<char[]> descr = CopyString(env, short_description, &error); in GetExtensionFunctions() 106 JvmtiUniquePtr<jvmtiParamInfo[]> params_ptr = in GetExtensionFunctions() 126 JvmtiUniquePtr<jvmtiError[]> errors_ptr = in GetExtensionFunctions() 333 JvmtiUniquePtr<jvmtiExtensionFunctionInfo[]> out_data = in GetExtensionFunctions() [all …]
|
D | ti_properties.cc | 99 JvmtiUniquePtr<char*[]> array_data_ptr = AllocJvmtiUniquePtr<char*[]>(env, in GetSystemProperties() 106 std::vector<JvmtiUniquePtr<char[]>> property_copies; in GetSystemProperties() 110 JvmtiUniquePtr<char[]> libpath_data = CopyString(env, kPropertyLibraryPath, &libpath_result); in GetSystemProperties() 120 JvmtiUniquePtr<char[]> classpath_data = CopyString(env, kPropertyClassPath, &classpath_result); in GetSystemProperties() 130 JvmtiUniquePtr<char[]> data = CopyString(env, kProperties[i][0], &data_result); in GetSystemProperties() 150 JvmtiUniquePtr<char[]> data = CopyString(env, in, &result); in Copy()
|
D | ti_field.cc | 66 JvmtiUniquePtr<char[]> name_copy; in GetFieldName() 80 JvmtiUniquePtr<char[]> signature_copy; in GetFieldName() 103 JvmtiUniquePtr<char[]> copy = CopyString(env, output_string.c_str(), &ret); in GetFieldName()
|
D | ti_ddms.cc | 78 JvmtiUniquePtr<jbyte[]> ret = AllocJvmtiUniquePtr<jbyte[]>(env, out_data.size(), &error); in HandleChunk()
|
D | ti_threadgroup.cc | 120 JvmtiUniquePtr<char[]> copy = CopyString(env, tmp_cstr, &result); in GetThreadGroupInfo() 243 JvmtiUniquePtr<jthread[]> peers_uptr; in GetThreadGroupChildren() 252 JvmtiUniquePtr<jthreadGroup[]> group_uptr; in GetThreadGroupChildren()
|
D | ti_dump.cc | 88 JvmtiUniquePtr<char[]> res = CopyString(jvmti, ss.str().c_str(), &err); in DumpInternalState()
|
D | ti_method.cc | 237 JvmtiUniquePtr<char[]> name_str = CopyString(env, entry.name_, &err); in GetLocalVariableTable() 241 JvmtiUniquePtr<char[]> sig_str = CopyString(env, entry.descriptor_, &err); in GetLocalVariableTable() 245 JvmtiUniquePtr<char[]> generic_sig_str = CopyString(env, entry.signature_, &err); in GetLocalVariableTable() 306 JvmtiUniquePtr<char[]> name_copy; in GetMethodName() 320 JvmtiUniquePtr<char[]> signature_copy; in GetMethodName() 344 JvmtiUniquePtr<char[]> generic_copy = CopyString(env, output_string.c_str(), &ret); in GetMethodName()
|
D | ti_class.cc | 702 JvmtiUniquePtr<char[]> sig_copy; in GetClassSignature() 729 JvmtiUniquePtr<char[]> copy = CopyString(env, output_string.c_str(), &ret); in GetClassSignature() 1091 JvmtiUniquePtr<char[]> source_copy; in GetSourceFileName() 1121 JvmtiUniquePtr<char[]> ext_copy; in GetSourceDebugExtension()
|
D | ti_heap.cc | 71 JvmtiUniquePtr<uint16_t[]> data; in ReportString() 153 JvmtiUniquePtr<char[]> data = AllocJvmtiUniquePtr<char[]>(env, in ReportPrimitiveArray() 1527 JvmtiUniquePtr<char[]> param_name = CopyString(env, in, &error); in CopyStringAndReturn()
|
D | ti_redefine.cc | 480 JvmtiUniquePtr<char> generic_unique_ptr(MakeJvmtiUniquePtr(env, generic_ptr_unused)); in AddRedefinition() 481 JvmtiUniquePtr<char> signature_unique_ptr(MakeJvmtiUniquePtr(env, signature_ptr)); in AddRedefinition()
|
D | ti_thread.cc | 276 JvmtiUniquePtr<char[]> name_uptr; in GetThreadInfo()
|
D | OpenjdkJvmTi.cc | 1338 JvmtiUniquePtr<char[]> copy = CopyString(env, name_cstr, &res); in GetErrorName()
|
/art/test/ti-agent/ |
D | jvmti_helper.h | 67 using JvmtiUniquePtr = std::unique_ptr<unsigned char, JvmtiDeleter>; variable 70 static inline JvmtiUniquePtr MakeJvmtiUniquePtr(jvmtiEnv* env, T* mem) { in MakeJvmtiUniquePtr() 71 return JvmtiUniquePtr(reinterpret_cast<unsigned char*>(mem), JvmtiDeleter(env)); in MakeJvmtiUniquePtr()
|
D | jni_binder.cc | 200 JvmtiUniquePtr threads_uptr = MakeJvmtiUniquePtr(jvmti_env, threads); in GetClass()
|