summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding/transcode.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2025-12-16 13:33:47 -0500
committerTakashi Kokubun <takashikkbn@gmail.com>2025-12-16 11:55:31 -0800
commit70a7c551fcead48f5964fbc7a0bd20cc50b635c0 (patch)
tree7b64c11482a829da7137f45ef983edf4c0428b83 /include/ruby/internal/encoding/transcode.h
parentf19e9c6699150d56853ba1a33f6149d7588c8478 (diff)
YJIT: Print `Rc` strong and weak count on assert failure
For <https://bugs.ruby-lang.org/issues/21716>, the panic is looking like some sort of third party memory corruption, with YJIT taking the fall. At the point of this assert, the assembler has dropped, so there's nothing in YJIT's code other than JITState that could be holding on to these transient `PendingBranchRef`. The strong count being more than a handful or the weak count is non-zero shows that someone in the process (likely some native extension) corrupted the Rc's counts.
Diffstat (limited to 'include/ruby/internal/encoding/transcode.h')
0 files changed, 0 insertions, 0 deletions