-
Notifications
You must be signed in to change notification settings - Fork 16
fix(profiling-ffi): Windows extern statics need __declspec(dllimport) #1468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
BenchmarksComparisonBenchmark execution time: 2026-01-29 10:36:52 Comparing candidate commit 2bc74c6 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 57 metrics, 2 unstable metrics. CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
Group 14
Group 15
Group 16
Group 17
Group 18
Group 19
BaselineOmitted due to size. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1468 +/- ##
==========================================
- Coverage 70.96% 70.92% -0.04%
==========================================
Files 421 421
Lines 68438 68472 +34
==========================================
Hits 48567 48567
- Misses 19871 19905 +34
🚀 New features to boost your workflow:
|
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-apple-darwin
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-apple-darwin
x86_64-unknown-linux-gnu
|
If they don't have this, they crash when dereferencing the pointer.
0802540 to
d844b01
Compare
What does this PR do?
On the FFI headers on windows, this attends to replace
"extern "with"extern __declspec(dllimport) ".Motivation
These static variables result in a crash if you use them when they don't have
__declspec(dllimport).Additional Notes
This went unfound because none of the examples run on Windows in CI. I am planning to look into running these as part of CI (this is in draft still).
How to test the change?
Build and note you don't get a crash anymore when using these static vars on Windows 😆