/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 | 62 /*out*/std::vector<JvmtiUniquePtr<char[]>>* char_buffers, in ToParamInfo() 64 JvmtiUniquePtr<char[]> param_name = CopyString(env, name, err); in ToParamInfo() 81 std::vector<JvmtiUniquePtr<char[]>> char_buffers; in GetExtensionFunctions() 82 std::vector<JvmtiUniquePtr<jvmtiParamInfo[]>> param_buffers; in GetExtensionFunctions() 83 std::vector<JvmtiUniquePtr<jvmtiError[]>> error_buffers; in GetExtensionFunctions() 95 JvmtiUniquePtr<char[]> id_ptr = CopyString(env, id, &error); in GetExtensionFunctions() 102 JvmtiUniquePtr<char[]> descr = CopyString(env, short_description, &error); in GetExtensionFunctions() 111 JvmtiUniquePtr<jvmtiParamInfo[]> params_ptr = in GetExtensionFunctions() 131 JvmtiUniquePtr<jvmtiError[]> errors_ptr = in GetExtensionFunctions() 495 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_ddms.cc | 78 JvmtiUniquePtr<jbyte[]> ret = AllocJvmtiUniquePtr<jbyte[]>(env, out_data.size(), &error); in HandleChunk()
|
D | ti_threadgroup.cc | 123 JvmtiUniquePtr<char[]> copy = CopyString(env, tmp_cstr, &result); in GetThreadGroupInfo() 245 JvmtiUniquePtr<jthread[]> peers_uptr; in GetThreadGroupChildren() 254 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_field.cc | 147 JvmtiUniquePtr<char[]> name_copy; in GetFieldName() 161 JvmtiUniquePtr<char[]> signature_copy; in GetFieldName() 184 JvmtiUniquePtr<char[]> copy = CopyString(env, output_string.c_str(), &ret); in GetFieldName()
|
D | ti_method.cc | 255 JvmtiUniquePtr<char[]> name_str = CopyString(env, entry.name_, &err); in GetLocalVariableTable() 259 JvmtiUniquePtr<char[]> sig_str = CopyString(env, entry.descriptor_, &err); in GetLocalVariableTable() 263 JvmtiUniquePtr<char[]> generic_sig_str = CopyString(env, entry.signature_, &err); in GetLocalVariableTable() 324 JvmtiUniquePtr<char[]> name_copy; in GetMethodName() 338 JvmtiUniquePtr<char[]> signature_copy; in GetMethodName() 362 JvmtiUniquePtr<char[]> generic_copy = CopyString(env, output_string.c_str(), &ret); in GetMethodName()
|
D | ti_class.cc | 707 JvmtiUniquePtr<char[]> sig_copy; in GetClassSignature() 734 JvmtiUniquePtr<char[]> copy = CopyString(env, output_string.c_str(), &ret); in GetClassSignature() 1096 JvmtiUniquePtr<char[]> source_copy; in GetSourceFileName() 1126 JvmtiUniquePtr<char[]> ext_copy; in GetSourceDebugExtension()
|
D | ti_heap.cc | 102 JvmtiUniquePtr<uint16_t[]> data; in ReportString() 184 JvmtiUniquePtr<char[]> data = AllocJvmtiUniquePtr<char[]>(env, in ReportPrimitiveArray() 1554 JvmtiUniquePtr<char[]> param_name = CopyString(env, in, &error); in CopyStringAndReturn()
|
D | ti_thread.cc | 279 JvmtiUniquePtr<char[]> name_uptr; in GetThreadInfo()
|
D | OpenjdkJvmTi.cc | 1308 JvmtiUniquePtr<char[]> copy = CopyString(env, name_cstr, &res); in GetErrorName()
|
D | ti_redefine.cc | 698 JvmtiUniquePtr<char> generic_unique_ptr(MakeJvmtiUniquePtr(env, generic_ptr_unused)); in AddRedefinition() 699 JvmtiUniquePtr<char> signature_unique_ptr(MakeJvmtiUniquePtr(env, signature_ptr)); in AddRedefinition()
|
/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()
|