Skip to content

Fix the V8 layout offsets in the schema instead of publishing them - #417

Merged
szegedi merged 1 commit into
mainfrom
szegedi/derive-v8-layout-offsets
Sep 28, 2026
Merged

szegedi merged 1 commit into
mainfrom
szegedi/derive-v8-layout-offsets

Conversation

@szegedi

@szegedi szegedi commented Sep 23, 2026

Copy link
Copy Markdown

What does this PR do?:
The nodejs_v1 discovery schema now presumes the V8 Node.js builds by default (64-bit, no pointer compression, no sandbox) and fixes the four object layout values a reader needs, pinned by the schema version, rather than carrying them as OTEP-4719 process context attributes.

So instead of publishing them, we now derive them from V8's public headers and static_assert the presumption, so a build not matching the schema will fail to compile.

Motivation:
Simplifying the schema and the protocol surrounding it for the 99.9% of the Node.js deployments.

@github-actions

Copy link
Copy Markdown

Overall package size

Self size: 2.6 MB
Deduped: 3.3 MB
No deduping: 3.3 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | pprof-format | 2.3.1 | 504.33 kB | 504.33 kB | | source-map | 0.8.0 | 185.66 kB | 185.66 kB | | node-gyp-build | 4.8.4 | 13.86 kB | 13.86 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@szegedi szegedi added the semver-minor Usually minor non-breaking improvements label Sep 23, 2026
The nodejs_v1 discovery schema presumes the V8 Node.js builds by default
(64-bit, no pointer compression, no sandbox) and fixes the four object
layout values a reader needs, pinned by the schema version, rather than
carrying them as OTEP-4719 process context attributes.

So instead of publishing them, derive them from V8's public headers and
static_assert the presumption, so a build not matching the schema will
fail to compile.
@szegedi
szegedi force-pushed the szegedi/derive-v8-layout-offsets branch from ad172d8 to 7961ae8 Compare September 23, 2026 13:22
@szegedi
szegedi marked this pull request as ready for review September 23, 2026 13:26
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7961ae8 | Docs | View more details | Give us feedback!

@szegedi
szegedi merged commit c1c8bcf into main Sep 28, 2026
126 of 128 checks passed
@szegedi
szegedi deleted the szegedi/derive-v8-layout-offsets branch September 28, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-minor Usually minor non-breaking improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants