MCPcopy Create free account
hub / github.com/apache/thrift / makePersistent

Method makePersistent

lib/cpp/src/thrift/VirtualProfiling.cpp:174–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 const char* getTypeName2() const { return typeName2_; }
173
174 void makePersistent() {
175 // Copy the Backtrace object
176 backtrace_ = new Backtrace(*backtrace_);
177
178 // NOTE: We don't copy the type name.
179 // The GNU libstdc++ implementation of type_info::name() returns a value
180 // that will be valid for the lifetime of the program. (Although the C++
181 // standard doesn't guarantee this will be true on all implementations.)
182 }
183
184 /**
185 * Clean up memory allocated by makePersistent()

Callers 1

_record_backtraceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected