build: enable pie on linux #67386
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 162 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.305
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #67386"
general
weight: 0.35
gurgunday
Refs: https://github.com/nodejs/node/issues/66951
In my testing on a linux RHEL 8 host, built with gcc (not clang as in our release toolchain), it shows no significant performance cost either on startup time, binary size, or runtime cpp heavy path:
| | non-PIE | PIE |
|---|---|---|
|
node -e 0median, run 1 | 24.12 ms | 25.72 ms (+1.60 ms, +6.6%) ||
node -e 0median, run 2 | 23.64 ms | 25.04 ms (+1.40 ms, +5.9%) ||
.rela.dyn| 3.5 KB | 2.65 MB ||
.data.rel.ro| 97 KB | 1.38 MB ||
.text| 56.7 MB | 57.7 MB (+1.7%) || file size (not stripped) | 146.0 MB | 149.0 MB (+2.1%) |
and with
benchmark/compare.js --runs 30 --set inLen=1024 --set chunkLen=256 --set CPUSET=3 string_decoder:| encoding | PIE vs non-PIE |
|---|---|
| ascii | −1.71% (
) || utf8 | −0.39% |
| base64-utf8 | +3.48% (
) || base64-ascii | +3.29% (
) || utf16le | +1.26% |
with
string_decoder/string-decoder-create.jsas a control group, mostly JS object creation,n=25000000, it even seems slightly faster withconfidence:| encoding | PIE vs non-PIE |
|---|---|
| ascii | +4.85% (
) || utf8 | +5.54% (
) || utf-8 | +5.15% (
) || base64 | +3.77% (
) || ucs2 | +3.24% (
) || UTF-8 | +3.02% (
) || AscII | +3.08% (
) || UTF-16LE | +5.22% (
***) |