← Back to Pull requests

[MakeSharedObjects] Add a pass arg to leave types unshared #9156

Open
tlively opened this pull request with 581 lines diff across 2 files
View on GitHub
tlively tlively commented on Sep 25, 2026 21:06 UTC
Author

This will allow us to separate the slowdown from using the shared heap from the slowdown due to all the other transformations we have to apply.

Diff: 581 lines (+563 / -18) across 2 files Reviewer: stevenfontanella Review duration: 43331m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.43) × (1 − Review Confidence (0.84)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 581 lines diff across 2 files
0.43
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.77 · 2 substantive comment(s)
0.77
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
84%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.381
Real PR Conversation Timeline
4 items
stevenfontanella stevenfontanella commented on code on Sep 25, 2026 21:59 UTC
Code Review
src/passes/MakeSharedObjects.cpp:1
@@ -843,9 +851,16 @@ struct MakeSharedObjects
   }
 
   void doWalkModule(Module* wasm) {
+    if (hasArgument("make-shared-objects-unshared")) {
+      shared = Unshared;
+    }
     funcTable.wasm = wasm;
+    funcTable.shared = shared;
     externTable.wasm = wasm;
-    wasm->features.setSharedEverything();
+    externTable.shared = shared;

I'm curious, were funcTable and externTable not shared before this PR? Looks like no?

stevenfontanella stevenfontanella approved these changes on Sep 25, 2026 21:59 UTC
Approved Reviewer

Approved these changes.

tlively tlively commented on code on Sep 25, 2026 22:02 UTC
Code Review
src/passes/MakeSharedObjects.cpp:1
@@ -843,9 +851,16 @@ struct MakeSharedObjects
   }
 
   void doWalkModule(Module* wasm) {
+    if (hasArgument("make-shared-objects-unshared")) {
+      shared = Unshared;
+    }
     funcTable.wasm = wasm;
+    funcTable.shared = shared;
     externTable.wasm = wasm;
-    wasm->features.setSharedEverything();
+    externTable.shared = shared;

Oh, I should remove this. We support shared tables in our IR, but it doesn't do anything and the output binary is the same.

Assignees
tlively tlively
Labels
risk: low confidence: 84.3% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42.5% (MEDIUM) · Higher = larger blast radius
42.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 84.3% · Lower = rushed or shallow review
84.3%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 6.7% · Safe to merge
6.7%