Skip to content

Rollback unboxing from 1f7e90ca#3960

Merged
bwoebi merged 1 commit into
masterfrom
bob/fix-shmlim
Jun 5, 2026
Merged

Rollback unboxing from 1f7e90ca#3960
bwoebi merged 1 commit into
masterfrom
bob/fix-shmlim

Conversation

@bwoebi
Copy link
Copy Markdown
Collaborator

@bwoebi bwoebi commented Jun 5, 2026

This became quite unergonomic with the downcast, but looks like there was a reason for the boxing.

Otherwise ShmLimiter references weird addresses.

This became quite unergonomic with the downcast, but looks like there was a reason for the boxing.

Otherwise ShmLimiter references weird addresses.

Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
@bwoebi bwoebi requested a review from a team as a code owner June 5, 2026 21:09
Copy link
Copy Markdown
Collaborator

@morrisonlevi morrisonlevi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me as long as tests pass, pretty mechanical.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 31de2faf28

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

match value.product {
RemoteConfigProduct::LiveDebugger => {
let val = (data, MaybeShmLimiter::open(limiter_index));
let val = Box::new((data, MaybeShmLimiter::open(limiter_index)));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve boxed limiter storage on config updates

When a LiveDebugger config path is updated in place, the Occupied branch below installs the new probe after e.insert(val) has replaced and dropped the previous Box. Installed log probes keep the limiter pointer passed from Rust in dd_set_log_probe (tracer/live_debugger.c:753-756) and dereference it on each evaluation, so a normal Add/update for the same config_id can leave the existing hook pointing at freed boxed storage until it is removed. Please update the existing box in place or remove the old hook before swapping the allocation.

Useful? React with 👍 / 👎.

@datadog-official
Copy link
Copy Markdown

datadog-official Bot commented Jun 5, 2026

Pipelines  Tests

Fix all issues with BitsAI

⚠️ Warnings

🚦 5 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-php | ASAN test_c: [8.4, amd64]   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | test_extension_ci: [7.3]   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | test_extension_ci: [8.3]   View in Datadog   GitLab

View all 5 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 54.11% (-0.05%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 31de2fa | Docs | Datadog PR Page | Give us feedback!

@bwoebi bwoebi merged commit 8b837e8 into master Jun 5, 2026
1666 of 1788 checks passed
@bwoebi bwoebi deleted the bob/fix-shmlim branch June 5, 2026 21:25
@github-actions github-actions Bot added this to the 1.22.0 milestone Jun 5, 2026
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Jun 5, 2026

Benchmarks [ tracer ]

Benchmark execution time: 2026-06-05 22:21:55

Comparing candidate commit 31de2fa in PR branch bob/fix-shmlim with baseline commit c7f3f05 in branch master.

Found 3 performance improvements and 1 performance regressions! Performance is the same for 189 metrics, 1 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:ComposerTelemetryBench/benchTelemetryParsing

  • 🟩 execution_time [-2.199µs; -1.001µs] or [-12.215%; -5.562%]

scenario:ContextPropagationBench/benchExtractTraceContext128Bit-opcache

  • 🟥 execution_time [+38.891ns; +119.109ns] or [+2.149%; +6.581%]

scenario:MessagePackSerializationBench/benchMessagePackSerialization

  • 🟩 execution_time [-6.067µs; -3.793µs] or [-5.502%; -3.440%]

scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache

  • 🟩 execution_time [-4.828µs; -2.952µs] or [-4.313%; -2.637%]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants