Lines Matching refs:JvmtiUniquePtr
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()
214 return JvmtiUniquePtr<T>(reinterpret_cast<typename std::remove_extent<T>::type*>(tmp), in AllocJvmtiUniquePtr()
234 static inline JvmtiUniquePtr<char[]> CopyString(jvmtiEnv* env, const char* src, jvmtiError* error) { in CopyString()
236 JvmtiUniquePtr<char[]> ret = AllocJvmtiUniquePtr<char[]>(env, 0, error); in CopyString()
240 JvmtiUniquePtr<char[]> ret = AllocJvmtiUniquePtr<char[]>(env, len, error); in CopyString()