Lines Matching refs:JvmtiDeleter
138 class JvmtiDeleter {
140 JvmtiDeleter() : env_(nullptr) {} in JvmtiDeleter() function
141 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() function
143 JvmtiDeleter(JvmtiDeleter&) = default;
144 JvmtiDeleter(JvmtiDeleter&&) = default;
145 JvmtiDeleter& operator=(const JvmtiDeleter&) = default;
158 class JvmtiDeleter<T[]> {
160 JvmtiDeleter() : env_(nullptr) {} in JvmtiDeleter() function
161 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() function
163 JvmtiDeleter(JvmtiDeleter&) = default;
164 JvmtiDeleter(JvmtiDeleter&&) = default;
165 JvmtiDeleter& operator=(const JvmtiDeleter&) = default;
179 using JvmtiUniquePtr = std::unique_ptr<T, JvmtiDeleter<T>>;
184 return JvmtiUniquePtr<T>(mem, JvmtiDeleter<T>(env)); in MakeJvmtiUniquePtr()
190 return JvmtiUniquePtr<T>(reinterpret_cast<T*>(mem), JvmtiDeleter<T>(env)); in MakeJvmtiUniquePtr()
201 return JvmtiUniquePtr<T>(tmp, JvmtiDeleter<T>(env)); in AllocJvmtiUniquePtr()
215 JvmtiDeleter<T>(env)); in AllocJvmtiUniquePtr()