Skip to content

Commit c8e8975

Browse files
committed
fix: remove duplicate destructor in ProfiledThread (rebase artifact)
1 parent 8112279 commit c8e8975

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ddprof-lib/src/main/cpp/thread.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ class ProfiledThread : public ThreadLocalData {
8080
_wall_epoch(0), _call_trace_id(0), _recording_epoch(0), _misc_flags(0), _filter_slot_id(-1), _otel_ctx_initialized(false), _crash_protection_active(false),
8181
_otel_ctx_record{}, _otel_tag_encodings{}, _otel_local_root_span_id(0) {};
8282

83-
~ProfiledThread() = default;
84-
void releaseFromBuffer();
85-
8683
virtual ~ProfiledThread() { }
84+
void releaseFromBuffer();
8785
public:
8886
static ProfiledThread *forTid(int tid) { return new ProfiledThread(-1, tid); }
8987
static ProfiledThread *inBuffer(int buffer_pos) {

0 commit comments

Comments
 (0)