← Back to Pull requests

multibinary: fix stack misalignment issue #182

Open
HeliC829 opened this pull request with 21 lines diff across 1 files
View on GitHub
HeliC829 HeliC829 commented on Nov 27, 2026 06:34 UTC
Author

Currently multibinary wrapper reserves 56 bytes for calling the C dispatcher. But RISC-V psABI require sp to be 16-byte aligned. So we fix it with setting aside 80 as multiple of 16-byte for stack alignment, even we don't use all of them.

Diff: 21 lines (+13 / -8) across 1 files Reviewer: sunyuechi Review duration: 11318m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.21) × (1 − Review Confidence (0.88)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.21 · 21 lines diff across 1 files
0.21
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.86 · 3 substantive comment(s)
0.86
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
87%
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.185
Real PR Conversation Timeline
4 items
HeliC829 HeliC829 commented on Nov 27, 2026 06:34 UTC
Author

@sunyuechi @tkanteck ping for review, thanks

sunyuechi sunyuechi commented on code on Nov 27, 2026 06:53 UTC
Code Review
include/internal/riscv64_multibinary.h:1
@@ -45,7 +45,8 @@
  * 	2. name must be \name\()_dispatcher
  * 	3. Prototype should be *"void * \name\()_dispatcher"*
  * 	4. The dispatcher should return the right function pointer, revision and a string
- * information .
+ * 	5. The stack pointer sp must be 16-byte aligned under the standard RISC-V psABI. 

Trailing space.

sunyuechi sunyuechi commented on Nov 27, 2026 07:11 UTC
Contributor

LGTM

Reviewers
Assignees
HeliC829 HeliC829
Labels
risk: low confidence: 87.9% 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: 21.5% (LOW) · Higher = larger blast radius
21.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: 87.9% · Lower = rushed or shallow review
87.9%
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: 2.6% · Safe to merge
2.6%