Skip to content

Commit fd851ba

Browse files
committed
Fix tests
1 parent a5df0b4 commit fd851ba

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎profiler/src/ProfilerEngine/Datadog.Profiler.Native.Linux/wrapper_callback.s‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ dd_restart_wrapper:
3434
# and rsp, -16 # Make sure the stack is 16-byte aligned
3535

3636
# Mark the execution as resumed
37-
mov qword ptr [rdi + 8], 1
37+
mov qword ptr [rdi + 16], 1
3838
3939
# Restore rdi
40-
mov rdi, qword ptr [rdi + 16]
40+
mov rdi, qword ptr [rdi + 8]
4141
4242
# Epilogue
4343
# leave

‎profiler/src/ProfilerEngine/Datadog.Profiler.Native/ManagedThreadInfo.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ struct ManagedThreadInfo : public IThreadInfo
171171
std::uintptr_t Flag;
172172
};
173173

174-
WrapperThreadContext _wrapperContext = {0, 0, 1};
174+
WrapperThreadContext _wrapperContext = {0xdeadbeef, 0xdeadbeef, 1};
175175

176176
public:
177177
// should be previous snapshot (missing spanid and stuff)

0 commit comments

Comments
 (0)