Skip to content

CHOLMOD: Prefer RefValue to Ref for fields and type-assertions - #755

Merged
araujoms merged 1 commit into
JuliaSparse:mainfrom
topolarity:ct/trim-cholmod
Sep 3, 2026
Merged

CHOLMOD: Prefer RefValue to Ref for fields and type-assertions#755
araujoms merged 1 commit into
JuliaSparse:mainfrom
topolarity:ct/trim-cholmod

Conversation

@topolarity

@topolarity topolarity commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Ref is an abstract type, so RefValue is needed in these positions instead to keep everything type-stable.

`getcommon` asserted the abstract `Ref{cholmod_common}` on the value it
fetches from task-local storage, and `Factor` typed its scratch buffers `X`,
`Y` and `E` as the abstract `Ref{Ptr{...}}`. With those abstract types every
`common[]`, every wrapper call taking it, and every read of the buffers was a
dynamic call, which kept the whole CHOLMOD layer from compiling under juliac's
`--trim`. The values are always `RefValue`s; say so.

This commit was written with the assistance of generative AI (Claude).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.35%. Comparing base (88fa040) to head (ae2ecaf).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #755      +/-   ##
==========================================
- Coverage   83.85%   83.35%   -0.50%     
==========================================
  Files          13       13              
  Lines        9387     9367      -20     
==========================================
- Hits         7871     7808      -63     
- Misses       1516     1559      +43     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@araujoms
araujoms merged commit 403f069 into JuliaSparse:main Sep 3, 2026
10 of 11 checks passed
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