Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1730 commits
Select commit Hold shift + click to select a range
2ad191b
docs: record typed owner acquisition coverage
fglock Nov 6, 2026
6c0c4e4
refactor: remove unregistered scalar count repair
fglock Nov 6, 2026
74813fb
fix: complete owner transitions for glob and IO caches
fglock Nov 6, 2026
fe5fa32
docs: record merged ownership validation plan
fglock Nov 6, 2026
c7729c3
fix: keep owner trace releases paired
fglock Nov 6, 2026
4b404ee
docs: record clone owner audit
fglock Nov 6, 2026
b36b094
fix: give weak CODE stash values independent owners
fglock Nov 6, 2026
ba1b8cd
docs: record weak CODE owner validation
fglock Nov 6, 2026
53e05fe
wip: snapshot issue 1649 owner transition work
fglock Nov 6, 2026
b1f5f92
fix: complete Perl owner release transitions
fglock Nov 6, 2026
b21e9e7
fix: retain deferred direct-call CVs through stash deletion
fglock Nov 6, 2026
c1f2342
fix: allow anonymous glob IO outside a bound runtime
fglock Nov 6, 2026
eabdcc5
fix: release overwritten shared aggregate objects
fglock Nov 6, 2026
3cc1e1e
test: cover discarded shared aggregate fetches
fglock Nov 6, 2026
1954cbb
perf: index runtime hash scalar identities
fglock Nov 7, 2026
f31d023
fix: release scalar owners on Java null assignment
fglock Nov 7, 2026
90b1a36
fix: release scalar owners through direct setters
fglock Nov 7, 2026
af5fb88
perf: index Perl owner slots and skip primitive owner scans
fglock Nov 7, 2026
ad41c77
docs: record final production sweep call-site audit
fglock Nov 7, 2026
99e8665
fix: preserve ownership callbacks in shared tied aggregates (#1649)
fglock Nov 7, 2026
54f7e51
docs: record exact-token release path audit
fglock Nov 7, 2026
f4adb99
docs: clarify targeted sweep compatibility path
fglock Nov 7, 2026
2769e30
fix: keep localized array size assignments permanent
fglock Nov 7, 2026
a8f2287
fix: finalize rescued aggregates through owner slots
fglock Nov 7, 2026
a3895f3
test: cover rescued cleanup without deferred captures
fglock Nov 7, 2026
a484679
fix: match Perl B refcount during destruction
fglock Nov 8, 2026
c60b108
fix: exclude transient B wrapper slots from refcounts
fglock Nov 8, 2026
330677c
wip: snapshot B refcount frame adjustment
fglock Nov 8, 2026
fe10d1b
test: cover HTML tree lifecycle without sweeps
fglock Nov 8, 2026
24c84b1
docs: record issue 1649 producer audit
fglock Nov 8, 2026
fef5bd2
fix: retain array element refalias cells explicitly (#1649)
fglock Nov 8, 2026
0e797eb
wip: snapshot async promise owner-release fix
fglock Nov 8, 2026
fa60d8c
fix: skip unused list assignment results in void context
fglock Nov 8, 2026
cc4a190
fix: limit void list result discard to safe lvalue forms
fglock Nov 8, 2026
f5c6c66
docs: note void hash-slice result cleanup
fglock Nov 8, 2026
cea2f85
fix: reconcile explicit owner-slot continuation
fglock Nov 9, 2026
a291d4a
wip: restore array refalias owner tracking and reconcile ownership re…
fglock Nov 9, 2026
2724e9e
wip: snapshot Promise owner trace before result-view fix
fglock Nov 9, 2026
3596951
fix: preserve container owners in borrowed list results
fglock Nov 9, 2026
6f748b3
fix: release localized CODE owners on glob restore
fglock Nov 9, 2026
98dfe45
fix: retain aliased lexical scalar cells through scope exit (#1649)
fglock Nov 10, 2026
3fa2fad
fix: release scalar refalias cell counts at scope exit (#1649)
fglock Nov 10, 2026
8573f6f
fix: publish pending return owners before detaching slots (#1649)
fglock Nov 10, 2026
3229f0d
fix: retain eval block direct callsite owners (#1649)
fglock Nov 10, 2026
30d4b2a
fix: preserve implicit sub return temporary root identity
fglock Nov 10, 2026
93955e3
fix: clear weak observers at rescued END boundary (#1649)
fglock Nov 10, 2026
4f2caf4
fix: traverse temporary return lists in root walks
fglock Nov 11, 2026
510b165
docs: record temporary-root list traversal fix
fglock Nov 11, 2026
d6c726e
fix: preserve owner roots through END boundaries
fglock Nov 11, 2026
64fc8f9
fix: use owner identities for remaining cleanup roots
fglock Nov 11, 2026
0e2ca73
fix: keep aggregate roots on compatibility recovery path
fglock Nov 11, 2026
b58dc37
test: lock nested temporary root mutation behavior
fglock Nov 11, 2026
5b9c985
perf: skip empty temporary-root walks
fglock Nov 11, 2026
cb42490
perf: avoid maps for leaf temporary roots
fglock Nov 11, 2026
42bccf7
perf: skip visited map for array temporary roots
fglock Nov 11, 2026
9c5185f
perf: short-circuit direct temporary-root reachability
fglock Nov 11, 2026
c56c4b3
docs: record issue 1649 direct-root fast path
fglock Nov 11, 2026
6b0104e
perf: skip empty END weak-reference traversal
fglock Nov 11, 2026
2677157
docs: record issue 1649 END fast path evidence
fglock Nov 11, 2026
fbfcc10
fix: preserve escaped aggregate scalar-cell values (#1649)
fglock Nov 11, 2026
46f483f
wip: snapshot resumed issue 1649 work
fglock Nov 11, 2026
4e9629b
fix: release escaped aggregate cell values with their final owner (#1…
fglock Nov 11, 2026
cc76e42
fix: distinguish scalar-cell owners from aggregate value edges (#1649)
fglock Nov 11, 2026
0d23428
fix: load Exporter::Heavy before compile-time imports (#1649)
fglock Nov 11, 2026
24e6bee
docs: update issue 1649 rebase checkpoint
fglock Nov 11, 2026
6a8dab4
fix: preserve returned hash owners during scope cleanup (#1649)
fglock Nov 11, 2026
620c05e
docs: refresh issue 1649 live-master checkpoint
fglock Nov 11, 2026
6fa3bf0
fix: correct detached glob constructor merge
fglock Nov 11, 2026
aa13973
fix: remove duplicate symbol table merge helpers
fglock Nov 11, 2026
cb3789f
test: cover nested hash File::Temp owner lifetime (#2015)
fglock Nov 11, 2026
2702e4a
fix: preserve aggregate owners through foreach scope exit
fglock Nov 11, 2026
6d4b60c
perf: resolve SvREFCNT lexical owners through slots
fglock Nov 12, 2026
3f8856b
fix: count registered aliased scalar owners directly
fglock Nov 12, 2026
533b87e
test: cover SvREFCNT method results from hash fields
fglock Nov 12, 2026
a2f5344
refactor: remove unused recursive root helper
fglock Nov 12, 2026
3429be9
perf: avoid duplicate legacy temp-root traversal
fglock Nov 12, 2026
4a8d2ea
fix: release void-context Sub::Util results
fglock Nov 12, 2026
50b5a90
test: assert Try::Tiny callback observations
fglock Nov 12, 2026
8969631
fix: distinguish durable aggregate owners from transient holds
fglock Nov 12, 2026
4710c23
wip: snapshot callback ownership investigation
fglock Nov 12, 2026
03c48b5
fix: distinguish current and durable aggregate owners
fglock Nov 12, 2026
9665126
fix: retain callback owners through calls and END queue
fglock Nov 12, 2026
46c9497
fix: release nested callback owners with aggregate transfers
fglock Nov 12, 2026
fda8fdb
fix: defer cleanup until temporary roots are released
fglock Nov 12, 2026
7b6ec19
fix: preserve deferred aggregate and tail-call owners
fglock Nov 12, 2026
c25aaf3
fix: release untracked values after current owners leave
fglock Nov 12, 2026
d41f2f4
fix: reconcile value owners at aggregate transfer boundaries
fglock Nov 12, 2026
f92d4b5
fix: pass referent when refreshing aggregate value owner
fglock Nov 12, 2026
f2ef0b5
fix: release consumed tail-call owner snapshots
fglock Nov 12, 2026
42c7419
test: expose stale tail-call argument owners
fglock Nov 12, 2026
b047236
fix: ignore stale argument owners when clearing weak CODE refs
fglock Nov 12, 2026
4cb3bff
fix: clear weak CODE refs at final argument owner release
fglock Nov 12, 2026
edda53d
fix: clear weak CODE refs after owner container transfer
fglock Nov 12, 2026
482276a
docs: refresh issue 1649 DBIx ownership checkpoint
fglock Nov 12, 2026
19312d2
perf: dedupe legacy blessed owner recovery query
fglock Nov 12, 2026
04f94a3
test: diagnose DBIx-style result graph retention
fglock Nov 12, 2026
ae3e75d
test: cover DBIx schema source rescue cleanup
fglock Nov 12, 2026
2f81735
fix: avoid package ownership for temporary topic aliases
fglock Nov 12, 2026
ce236f8
test: diagnose DBIx nested map row retention
fglock Nov 12, 2026
6a34587
perf: prove temporary-root reachability through owner slots
fglock Nov 12, 2026
1190a14
test: model lexical containers in temporary-root proof
fglock Nov 12, 2026
f370a4a
test: cover cleanup deferred by temporary roots
fglock Nov 12, 2026
8bf9884
fix: refresh aggregate owners after temporary-root lease
fglock Nov 12, 2026
56b7083
perf: prove temporary-root scalar reference owner chains
fglock Nov 12, 2026
5e5b503
docs: record scalar-reference temporary-root proof
fglock Nov 12, 2026
802336b
perf: prove temporary-root CODE owner chains
fglock Nov 12, 2026
bbe51ee
docs: refresh issue 2043 ownership checkpoint
fglock Nov 12, 2026
821d3bd
perf: prove temporary-root state and alias owners
fglock Nov 12, 2026
fee6672
docs: record temporary-root owner proofs
fglock Nov 12, 2026
3a20ed8
perf: prove temporary-root counted cell owners
fglock Nov 12, 2026
0b27a4c
docs: record counted-cell temporary-root proof
fglock Nov 12, 2026
8778b08
perf: prove more temporary-root counted owners
fglock Nov 12, 2026
8538be6
docs: record counted-owner ancestry proofs
fglock Nov 12, 2026
ff05236
perf: prove temporary-root untracked scalar owners
fglock Nov 12, 2026
0149c1f
docs: record untracked scalar owner proof
fglock Nov 12, 2026
ed66852
perf: prove hash alias temporary root owners
fglock Nov 12, 2026
5a3b6e0
docs: record hash alias owner proof
fglock Nov 12, 2026
6ddae3d
refactor: remove no-op sweep compatibility hooks
fglock Nov 12, 2026
99cdfc3
refactor: remove sweep graph-path diagnostic API
fglock Nov 12, 2026
e1f6c21
refactor: use Perl owner slots at END boundary
fglock Nov 12, 2026
f307504
test: model END captures with owner slots
fglock Nov 12, 2026
2fe5703
refactor: remove tokenless owner-count recovery (#2043)
fglock Nov 13, 2026
58eae09
fix: drain scoped releases under flush suppression (#2043)
fglock Nov 13, 2026
a14c815
wip: preserve issue 2043 diagnostic checkpoint
fglock Nov 13, 2026
e7f12d8
wip: preserve issue 2043 expression owner slice
fglock Nov 13, 2026
41f52c8
test: reflect direct temporary expression ownership
fglock Nov 13, 2026
90f23d3
fix: separate Perl destruction state from owner counts
fglock Nov 13, 2026
c0779f7
refactor: remove lifecycle decisions based on memory sweeps (#2043)
fglock Nov 12, 2026
9427386
refactor: remove module initialization sweep guard
fglock Nov 13, 2026
660e7e2
docs: refresh issue 2043 sweep-removal checkpoint
fglock Nov 13, 2026
c4f854d
wip: snapshot sweep-removal edits before continuation
fglock Nov 13, 2026
870ba76
wip: snapshot lifecycle test edits before continuation
fglock Nov 13, 2026
4dc2416
wip: snapshot late lifecycle test edit before continuation
fglock Nov 13, 2026
f586d16
docs: record lifecycle state migration gate
fglock Nov 13, 2026
9978fe1
test: assert lifecycle state without negative count sentinels
fglock Nov 13, 2026
f7d7dc1
docs: record sweep-free repository gate pass
fglock Nov 13, 2026
b8772b0
docs: record current DBIx owner-edge evidence
fglock Nov 13, 2026
00832a3
refactor: represent refcount tracking state explicitly
fglock Nov 13, 2026
5d6f166
docs: refresh issue 2043 ownership checkpoint
fglock Nov 13, 2026
fd05fdc
refactor: use explicit refcount mode in SvREFCNT
fglock Nov 13, 2026
c632c16
wip: preserve issue 2043 diagnostic edits
fglock Nov 13, 2026
7a497ac
wip: preserve capture-root test adjustment
fglock Nov 13, 2026
d1a9d70
wip: preserve external issue 2043 regression draft
fglock Nov 13, 2026
f536f88
wip: preserve updated DBIx regression
fglock Nov 13, 2026
5504ff8
wip: snapshot stale DBIx owner diagnostic
fglock Nov 13, 2026
11bdcee
wip: preserve owner release investigation edits
fglock Nov 13, 2026
7d8fdec
wip: snapshot owner diagnostic and parallel runtime edits
fglock Nov 13, 2026
2e12372
fix: treat list-assignment results as borrowed values
fglock Nov 13, 2026
db90078
docs: refresh issue 2043 ownership checkpoint
fglock Nov 13, 2026
63962fa
wip: snapshot issue 2043 regression before continuation
fglock Nov 13, 2026
680dec0
wip: snapshot issue 2043 owner investigation
fglock Nov 13, 2026
2f9e6d4
wip: snapshot issue 2043 diagnostics before continuing
fglock Nov 14, 2026
dce417a
wip: preserve owner release regression and trace fix
fglock Nov 14, 2026
056d39c
wip: preserve issue 2043 owner accounting work
fglock Nov 14, 2026
48a328f
wip: snapshot issue 2043 regression before checkpoint update
fglock Nov 14, 2026
a234a9a
wip: snapshot issue 2043 trace before next diagnosis
fglock Nov 14, 2026
92f5515
fix: defer blessed child cleanup until DESTROY resolves
fglock Nov 14, 2026
1d27355
refactor: remove production count reconstruction
fglock Nov 14, 2026
2ba6dc4
wip: snapshot owner lifecycle migration before continuing #2043
fglock Nov 14, 2026
ba7a5d1
test: keep captured owner lifecycle in active runtime
fglock Nov 14, 2026
0ff3dd7
refactor: remove memory sweep infrastructure (#2043)
fglock Nov 14, 2026
2fc2a78
docs: refresh issue 2043 ownership handoff
fglock Nov 14, 2026
a3c0a58
wip: snapshot DBIx leak fix for issue 2043
fglock Nov 14, 2026
40efb88
docs: record deep temporary-root owner proof
fglock Nov 12, 2026
30d9aa9
wip: snapshot DBI leak investigation state
fglock Nov 14, 2026
104d930
wip: snapshot Test2 event lifetime investigation
fglock Nov 14, 2026
0179a39
fix: release orphaned Test2 event argument owners (#2043)
fglock Nov 15, 2026
5d96fc1
docs: align owner ledger checkpoint with issue 2043
fglock Nov 15, 2026
4fe12da
docs: record refreshed DBIx leak checks
fglock Nov 15, 2026
3834a10
docs: align issue 2043 final acceptance steps
fglock Nov 15, 2026
ef99007
docs: refresh #2043 acceptance handoff
fglock Nov 15, 2026
2f1af5e
docs: align #2043 handoff with published head
fglock Nov 15, 2026
a721396
docs: record final CI and follow-up state for #2043
fglock Nov 15, 2026
06d6c39
refactor: remove unused owner referent snapshot
fglock Nov 15, 2026
956f6d4
fix: retain imported CV pads through active transfers (#2043)
fglock Nov 16, 2026
7593c7c
fix: release deferred CV owners once (#2043)
fglock Nov 16, 2026
31ec43e
fix: preserve imported CV and failed DBI prepare owners (#2043)
fglock Nov 16, 2026
79b62b8
fix: keep eval lexical capture when source names variables
fglock Nov 16, 2026
75ef586
docs: update issue 2043 ownership handoff
fglock Nov 16, 2026
d3a8d04
fix: balance transient Perl owners across error and alias paths (#2043)
fglock Nov 17, 2026
cb49dc7
fix: complete #2043 Moo optree reaping
fglock Nov 17, 2026
62a1be2
fix: preserve reacquired refs through lifecycle cleanup (#2043)
fglock Nov 18, 2026
888825d
fix: close Mojolicious acceptance regressions for #2043
fglock Nov 18, 2026
fbb7eb8
wip: snapshot existing acceptance evidence before sweep work
fglock Nov 19, 2026
5232a3d
wip: snapshot sweep removal investigation before fixes
fglock Nov 19, 2026
4b6f819
fix: count nested active arguments in B::REFCNT (#2043)
fglock Nov 19, 2026
6662732
wip: snapshot before resuming issue 2043 sweep work
fglock Nov 19, 2026
0cb33d4
wip: snapshot issue 2043 investigation state
fglock Nov 20, 2026
51c339d
wip: checkpoint issue 2043 acceptance findings
fglock Nov 20, 2026
a4c7794
wip: checkpoint issue 2043 resume state
fglock Nov 20, 2026
4f20b56
fix: retain implicit foreach source owners before flush (#2043)
fglock Nov 20, 2026
82e7d44
wip: snapshot issue 2043 investigation before resuming
fglock Nov 20, 2026
248dc7c
wip: snapshot issue 2043 changes before resuming
fglock Nov 20, 2026
19e1e21
fix: unwind JVM frame state at Perl exception boundaries (#2043)
fglock Nov 20, 2026
30276b1
wip: preserve carried issue 2043 source fix
fglock Nov 20, 2026
6882f71
wip: snapshot issue 2043 owner cleanup work
fglock Nov 20, 2026
923d6ff
wip: snapshot issue 2043 resumed fixes before further debugging
fglock Nov 20, 2026
708803a
wip: snapshot issue 2043 regressions before diamond investigation
fglock Nov 20, 2026
78106ba
test: reproduce DBIx diamond cache lifecycle leak
fglock Nov 21, 2026
1d1904f
wip: preserve issue 2043 diamond diagnostics
fglock Nov 21, 2026
ebe2fbd
test: identify retained DBIx diamond row types
fglock Nov 21, 2026
ba13bca
wip: snapshot inherited issue 2043 diagnostics
fglock Nov 21, 2026
4edc5fa
fix: retain interpreted foreach source owners (#2043)
fglock Nov 21, 2026
9f2e5c9
docs: update issue 2043 foreach checkpoint
fglock Nov 21, 2026
eb8907f
fix: release overwritten temporary arguments (#2043)
fglock Nov 21, 2026
653f55a
wip: snapshot issue #2043 regression work
fglock Nov 21, 2026
8d6468d
wip: snapshot issue #2043 diagnostic state
fglock Nov 21, 2026
0bc179b
wip: checkpoint DBIx resultset owner trace
fglock Nov 21, 2026
5e21fb4
wip: snapshot DBIx cursor leak reproducer
fglock Nov 21, 2026
813cc5e
wip: snapshot issue 2043 diagnostics before resuming
fglock Nov 21, 2026
e69b141
wip: snapshot issue 2043 state before resuming
fglock Nov 21, 2026
bb02896
wip: snapshot issue 2043 regression tests
fglock Nov 21, 2026
4d99626
wip: checkpoint issue 2043 after make failure triage
fglock Nov 21, 2026
5bde293
wip: snapshot proxy owner recheck candidate
fglock Nov 21, 2026
aebe3b0
docs: replace issue 2043 owner-ledger handoff
fglock Nov 21, 2026
f012dac
fix: balance owner releases across runtime boundaries
fglock Nov 22, 2026
2362185
fix: retain temporary array arguments through calls
fglock Nov 22, 2026
885805c
docs: record issue 2043 acceptance results
fglock Nov 22, 2026
1183841
perf: skip repeated package array root scans
fglock Nov 22, 2026
278c12b
docs: record package root scan performance evidence
fglock Nov 23, 2026
b39e14a
merge: reconcile issue 2043 candidate with current master
fglock Nov 23, 2026
278b66a
fix: preserve owner-ledger teardown during master reconciliation
fglock Nov 23, 2026
c9d5bad
fix: use owner-ledger teardown for child runtimes
fglock Nov 23, 2026
ae3f87c
fix: clear untracked weak refs after final owner release
fglock Nov 23, 2026
2824077
fix: retain anonymous code templates through optree owners
fglock Nov 23, 2026
316886c
docs: record issue 2043 full-master regression fix
fglock Nov 23, 2026
06f6fc4
docs: record issue 2043 reconciled CPAN results
fglock Nov 23, 2026
4b9540a
merge: reconcile issue 2043 with PR 1938 and current master
fglock Nov 23, 2026
3e97440
fix: notify watchers only on released aggregate slots
fglock Nov 23, 2026
ee8fede
docs: record reconciled owner-ledger candidate gate
fglock Nov 23, 2026
b959d1c
docs: record exact owner-ledger acceptance results
fglock Nov 24, 2026
339bf5c
perf: iterate untracked owner index on release
fglock Nov 24, 2026
711c86c
docs: update owner-ledger acceptance checkpoint
fglock Nov 24, 2026
1818da4
docs: update owner-ledger acceptance checkpoint
fglock Nov 24, 2026
59caf7a
docs: record lifecycle queue diagnostics
fglock Nov 24, 2026
0b5a2ed
docs: record lifecycle queue diagnostics
fglock Nov 24, 2026
199ec27
docs: record lifecycle queue diagnostics
fglock Nov 24, 2026
6b8c43f
test: remove unused DBIx test dependency
fglock Nov 24, 2026
e90dd48
docs: refresh owner ledger delivery checkpoint
fglock Nov 24, 2026
ad436be
docs: record owner ledger CI results
fglock Nov 24, 2026
6ff4cad
Merge remote-tracking branch 'origin/master' into wip/issue2043-resum…
fglock Nov 24, 2026
3827532
docs: refresh owner ledger checkpoint after 2171 merge
fglock Nov 24, 2026
503cce3
fix(netssleay): format CodeQL suppression comment
fglock Nov 24, 2026
da43c3b
fix(netssleay): keep merged RSA suppression unchanged
fglock Nov 24, 2026
4075465
docs: record owner ledger integration status
fglock Nov 24, 2026
21dce7e
fix(crypto): require 2048-bit RSA keys
fglock Nov 24, 2026
9b9bd74
fix(netssleay): reject invalid key sizes before generation
fglock Nov 24, 2026
ecb14f5
docs: update owner ledger security checkpoint
fglock Nov 24, 2026
1d3e96f
fix(netssleay): parse key sizes from scalar text
fglock Nov 24, 2026
ee827a2
docs: record RSA dataflow investigation
fglock Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ cpan_smoke_*
*.dat
logs/
.perlonjava_env_ready
log.txt
*.diff
*.patch
# But allow patch files in import-perl5/patches/
Expand Down
2 changes: 1 addition & 1 deletion dev/design/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Proposals and plans for work that is being considered or is in progress.
| [perf-dbic-safe-port.md](perf-dbic-safe-port.md) | DBIC-Safe Perf Port Plan | — |
| [performance-delivery-selection.md](performance-delivery-selection.md) | Curated performance delivery selection | — |
| [performance-over-perl.md](performance-over-perl.md) | Performance over Perl benchmark authority | — |
| [perl-ownership-rewrite.md](perl-ownership-rewrite.md) | Perl-compatible ownership rewrite | Phase 1 closure-pad path is implemented and validated on… |
| [perl-ownership-rewrite.md](perl-ownership-rewrite.md) | Perl-compatible ownership rewrite | Phase 1 is complete; Phase 2 is in progress. HTML-Tree 5.07… |
| [perl-regex-library-rfc.md](perl-regex-library-rfc.md) | RFC: Embeddable Perl-Compatible Regex Library for the JVM | — |
| [perl-summit.md](perl-summit.md) | — | — |
| [perl_debugger.md](perl_debugger.md) | Perl Debugger Implementation for PerlOnJava | — |
Expand Down
2,522 changes: 2,502 additions & 20 deletions dev/design/perl-ownership-rewrite.md

Large diffs are not rendered by default.

494 changes: 153 additions & 341 deletions dev/design/refcount-owner-ledger.md

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions dev/modules/dbix_as_query_releases_schema.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
use strict;
use warnings;

use Test::More;
use Scalar::Util qw(weaken);

use lib $ENV{DBIX_CLASS_LIB}
// die "Set DBIX_CLASS_LIB to the installed DBIx::Class lib directory\n";
use lib $ENV{DBIX_CLASS_TEST_LIB}
// die "Set DBIX_CLASS_TEST_LIB to the DBIx::Class t/lib directory\n";
use DBICTest;

my $weak_schema;
{
my $schema = DBICTest->init_schema();
weaken($weak_schema = $schema);

my $rs = $schema->resultset('Artist')->search(
{},
{
join => 'cds',
distinct => 1,
'+select' => [ { count => 'cds.cdid', -as => 'amount_of_cds' } ],
'+as' => [qw/num_cds/],
order_by => { -desc => 'amount_of_cds' },
},
);

my $query = $rs->as_query;
ok(ref($query), 'as_query returns the packed query');
}

ok(!defined($weak_schema), 'discarded as_query result releases its schema');
done_testing();
24 changes: 24 additions & 0 deletions dev/modules/dbix_cascade_delete_releases_schema.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
use strict;
use warnings;

use Test::More;

use lib ($ENV{DBIX_CLASS_LIB}
// die "Set DBIX_CLASS_LIB to the installed DBIx::Class lib directory\n"), 't/lib';
use DBICTest;

my $schema = DBICTest->init_schema();
$schema->populate('Artist', [
[qw/name cds/],
['Cascade cleanup artist', [
{ title => 'Cascade cleanup CD', year => 2026 },
]],
]);

$schema->resultset('Artist')->find({
name => 'Cascade cleanup artist',
})->delete;

ok(1, 'populate and cascading delete completed');

done_testing();
52 changes: 44 additions & 8 deletions dev/modules/dbix_class.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,21 @@ done | sort

| File | Count | Status |
|------|-------|--------|
| `t/52leaks.t` | 7 (tests 12-18) | Deep — refCount inflation in DBIC LeakTracer's `visit_refs` + ResultSource back-ref chain. Needs refCount-inflation audit; hasn't reproduced in simpler tests |
| `t/52leaks.t` (line 430, harness-only) | **NEW — INVESTIGATE NEXT** | "Unable to perform storage-dependent operations with a detached result source (source 'Artist' is not associated with a schema)". Test passes standalone (11/11 in 46s) but raises this exception when run as part of `./jcpan -t DBIx::Class` after ~20 prior tests. Schema's weak ref to ResultSource (or RS's strong ref to schema?) is being cleared *prematurely* — DESTROY firing on the schema while a child resultset still expects it. Different failure mode from tests 12-18 (which is a leak, this is over-eager DESTROY). See "Investigation Plan: Schema-Detached Bug" below. |
| `t/52leaks.t` | 7 (tests 12-18) | Open on candidate `36b9205453`: six objects belong to one Artist/CD/Schema/ResultSource graph; test 18 is a separate nested-dclone hash. The former line-430 phantom-chain failure now passes; current root cause is unconfirmed. See Fix 10 current evidence below. |
| `t/52leaks.t` (diagnostic after test 18) | Classified | After the seven failed weak-registry checks, LeakTracer's Dumper raises a detached `Artist` ResultSource error at `Data::Dumper.pm` line 339. This is formatting fallout; the earlier phantom-chain assertions 1-8 pass on candidate `36b9205453`. |
| `t/storage/txn_scope_guard.t` | 1 (test 18) | Needs DESTROY resurrection semantics (strong ref via @DB::args after MIN_VALUE). Tried refCount-reset approach — caused infinite DESTROY loops when __WARN__ handler re-triggers captures. Needs architectural redesign (separate "destroying" state from MIN_VALUE sentinel) |

`t/storage/txn.t` — **FIXED** (90/90 pass) via Fix 10m (eq/ne fallback semantics).

---

## Investigation Plan: Schema-Detached Bug in t/52leaks.t (line 430) — IN PROGRESS
## Historical Investigation: Schema-Detached Bug in t/52leaks.t (line 430)

The pre-candidate line-430 runtime failure is no longer reproduced on
`36b9205453`; assertions 1-8, including the phantom chain, pass. The detached
ResultSource exception in the current run happens after assertion 18 fails,
while LeakTracer's Dumper formats that retained clone. The notes below describe
the earlier failure and remain for context only.

### Symptom

Expand Down Expand Up @@ -576,11 +582,32 @@ can't ship a regression behind that flag.

All 7 fail at line 526 `assert_empty_weakregistry` — weak refs still `defined`.

### Current evidence (2026-11-12)

On candidate `36b9205453`, the callback/argument-frame regression is fixed and
the full repository `make` passes. DBIx `t/100populate.t` passes 108/108 with
no LeakTracer refs. In `t/52leaks.t`, assertions 1-8 (including the phantom
chain through line 440) pass; only object-collection checks 12-18 remain.
Checks 12-17 refer to the original connected Artist/CD/schema/source graph;
check 18 refers to the independently cloned `basic rerefrozen` hash. The
detached-source exception happens after check 18 fails, while LeakTracer formats
the object, so it does not establish a runtime failure in phantom chaining.

System Perl with the local DBIx dependency directory completes the ordinary
leak check. Its two reference-cycle cases are marked TODO and its optional
persistent-process checks are skipped. The current PerlOnJava failures still
need diagnosis; the system comparison does not prove a shared root cause.

Next, inspect current owner-slot identities for checks 12-17 and separately
trace the nested-dclone hash for check 18. Make the diagnostic fail-soft before
`Devel::FindRef` tracking so Dumper cannot abort that inspection. Add focused
project-owned regressions only after those two owner paths are isolated.

### Key Timing Constraint

Assertion runs **during test execution** (line 526), not in an END block. `clearAllBlessedWeakRefs()` (END-time sweep) is too late.

### Root Cause: Parent Container Inflation
### Earlier hypothesis: Parent Container Inflation (unconfirmed)

`$base_collection` (parent anonymous hash) has refCount inflated by JVM temporaries from:
- `visit_refs()` deep walk (passes hashref as function arg)
Expand All @@ -590,16 +617,23 @@ Assertion runs **during test execution** (line 526), not in an END block. `clear

When scope exits, scalar releases 1 reference but hash stays at refCount > 0. `callDestroy` never fires → `scopeExitCleanupHash` never walks elements → weak refs persist.

**Implication**: Fixes that hook into callDestroy/scopeExit for the parent hash are blocked because it never dies. Our minimal reproducers (`/tmp/dbic_like.pl`, `/tmp/blessed_leak.pl`, `/tmp/circular_leak.pl`) no longer leak, but the real DBIC pattern still does.
This was a working hypothesis from earlier runs, not a confirmed explanation
for the current seven failures. Owner-slot traces are still needed before
concluding that the parent hash itself remains live or that a broader collector
is required.

### Diagnostic Facts

- **B::REFCNT inflates by +1** vs actual: `B::svref_2object($x)->REFCNT` calls `Internals::SvREFCNT($self->{ref})` which bumps via B::SV's blessed hash slot. Failure inventory values are actual refCount + 1 (or 0 when refCount = MIN_VALUE).
- **Unicode confirmed irrelevant**: t/52leaks.t uses only ASCII data.

### Next Steps
### Earlier blocked assessment (superseded)

Both remaining failures (t/52leaks.t tests 12-18 and t/storage/txn_scope_guard.t test 18) hit **fundamental limitations** of PerlOnJava's selective refCounting that can't be solved without a major architectural change:
The following assessment predates candidate `36b9205453` and is retained as
history, not as the current diagnosis. It classified both remaining failures
(`t/52leaks.t` tests 12-18 and `t/storage/txn_scope_guard.t` test 18) as
fundamental selective-refcounting limitations before the current owner-slot
traces were available:

#### Why t/52leaks.t tests 12-18 Are Blocked

Expand Down Expand Up @@ -630,7 +664,9 @@ Either:

See [`dev/design/refcount_alignment_plan.md`](../design/refcount_alignment_plan.md) for a phased plan that implements both.

Deferred until such architectural work becomes practical.
That deferral was based on the earlier, unconfirmed hypothesis and is
superseded. Diagnose current owner-slot paths before deciding whether broader
architecture work is needed.

### Historical notes (previously attempted)

Expand Down
36 changes: 36 additions & 0 deletions dev/modules/dbix_failed_connect_releases_handle.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
use strict;
use warnings;

use Test::More;
use Scalar::Util qw(weaken);

use lib $ENV{DBIX_CLASS_LIB}
// die "Set DBIX_CLASS_LIB to the installed DBIx::Class lib directory\n";
use lib $ENV{DBIX_CLASS_TEST_LIB}
// die "Set DBIX_CLASS_TEST_LIB to the DBIx::Class t/lib directory\n";
use DBICTest;

my $weak_dbh;
{
my $schema = DBICTest->init_schema(
no_deploy => 1,
on_connect_call => sub {
my $storage = shift;
weaken($weak_dbh = $storage->_dbh);
$storage->_dbh->do('_NOPE_');
},
);
my $storage = $schema->storage;

my $error;
eval { $storage->ensure_connected; 1 } or $error = $@;
like($error, qr/_NOPE_|syntax|near/i,
'failed on-connect SQL is reported to the caller');
ok(!defined($storage->_dbh),
'failed on-connect action clears the storage database handle');
}

ok(!defined($weak_dbh),
'failed, unreturned DBI handle is released after its schema leaves scope');

done_testing();
36 changes: 36 additions & 0 deletions dev/modules/dbix_failed_connect_releases_storage.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
use strict;
use warnings;

use Test::More;
use Scalar::Util qw(weaken);

use lib $ENV{DBIX_CLASS_LIB}
// die "Set DBIX_CLASS_LIB to the installed DBIx::Class lib directory\n";
use DBIx::Class::Schema;

my ($weak_dbh, $weak_storage);
{
my $schema = DBIx::Class::Schema->connect(
'dbi:SQLite:dbname=:memory:', '', '',
{
RaiseError => 1,
PrintError => 0,
on_connect_do => '_NOPE_',
},
);
my $storage = $schema->storage;
weaken($weak_storage = $storage);

my $error;
eval { $storage->ensure_connected; 1 } or $error = $@;
like($error, qr/_NOPE_|syntax|near/i,
'failed on-connect SQL is reported to the caller');
ok(!defined($storage->_dbh),
'failed on-connect action clears the storage database handle');
}

ok(!defined($weak_dbh), 'failed connect does not retain an unreturned handle');
ok(!defined($weak_storage),
'failed connect releases DBIx Storage after its schema leaves scope');

done_testing();
107 changes: 107 additions & 0 deletions dev/modules/dbix_prefetch_diamond_releases_schema.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
use strict;
use warnings;

use Test::More;
use Scalar::Util qw(weaken);

use lib $ENV{DBIX_CLASS_LIB}
// die "Set DBIX_CLASS_LIB to the installed DBIx::Class lib directory\n";
use lib $ENV{DBIX_CLASS_TEST_LIB}
// die "Set DBIX_CLASS_TEST_LIB to the DBIx::Class t/lib directory\n";
use DBICTest;

my $schema = DBICTest->init_schema();
my $weak_schema;
weaken($weak_schema = $schema);

$schema->populate('Artwork', [[qw/cd_id/], [1]]);
$schema->populate('Artwork_to_Artist', [[qw/artwork_cd_id artist_id/], [1, 2]]);

my $ars = $schema->resultset('Artwork');
my $cd_paths = {
'no cd' => [], 'no cd empty' => [''], 'no cd undef' => [undef],
'no cd href' => [{}], 'no cd aoh' => [[{}]],
'no cd complex' => [[[undef]]], 'cd' => ['cd'],
'cd->artist1' => [{ cd => 'artist' }],
};
my $a2a_paths = {
'no a2a' => [], 'no a2a empty' => [''], 'no a2a undef' => [undef],
'no a2a href' => [{}], 'no a2a aoh' => [[{}]],
'no a2a complex' => [['']], 'a2a' => ['artwork_to_artist'],
'a2a->artist2' => [{ artwork_to_artist => 'artist' }],
};

# Keep the ResultSets in file-scope storage like DBIx::Class's diamond test.
# Releasing an equivalent cache inside a helper sub does not reproduce the
# lifecycle failure.
my %tests;
for my $cd_path (keys %$cd_paths) {
for my $a2a_path (keys %$a2a_paths) {
$tests{"join $cd_path, $a2a_path"} = $ars->search({}, {
join => [@{$cd_paths->{$cd_path}}, @{$a2a_paths->{$a2a_path}}],
prefetch => [],
});
$tests{"prefetch $cd_path, $a2a_path"} = $ars->search({}, {
join => [],
prefetch => [@{$cd_paths->{$cd_path}}, @{$a2a_paths->{$a2a_path}}],
});
$tests{"join $cd_path, prefetch $a2a_path"} = $ars->search({}, {
join => [@{$cd_paths->{$cd_path}}],
prefetch => [@{$a2a_paths->{$a2a_path}}],
});
$tests{"join $a2a_path, prefetch $cd_path"} = $ars->search({}, {
join => [@{$a2a_paths->{$a2a_path}}],
prefetch => [@{$cd_paths->{$cd_path}}],
});
}
}

my $rows_seen = 0;
my (@weak_cds, @weak_cd_artists, @weak_associations, @weak_association_artists);
for my $name (keys %tests) {
for my $artwork ($tests{$name}->all()) {
die "$name returned the wrong artwork" unless $artwork->id == 1;
my $cd = $artwork->cd;
push @weak_cds, $cd;
weaken($weak_cds[-1]);
my $cd_artist = $cd->artist;
push @weak_cd_artists, $cd_artist;
weaken($weak_cd_artists[-1]);
my $association = $artwork->artwork_to_artist->first;
push @weak_associations, $association;
weaken($weak_associations[-1]);
my $association_artist = $association->artist;
push @weak_association_artists, $association_artist;
weaken($weak_association_artists[-1]);
die "$name returned the wrong cd artist"
unless $cd_artist->artistid == 1;
die "$name returned the wrong association artist"
unless $association_artist->artistid == 2;
++$rows_seen;
}
}

is($rows_seen, 256, 'all diamond join/prefetch resultsets return the expected row');

my @weak_resultsets;
for my $name (keys %tests) {
push @weak_resultsets, $tests{$name};
weaken($weak_resultsets[-1]);
}

undef %tests;
undef $ars;
undef $schema;
is(scalar(grep { defined $_ } @weak_cds), 0,
'CD rows are released after the diamond resultsets are discarded');
is(scalar(grep { defined $_ } @weak_cd_artists), 0,
'CD artist rows are released after the diamond resultsets are discarded');
is(scalar(grep { defined $_ } @weak_associations), 0,
'association rows are released after the diamond resultsets are discarded');
is(scalar(grep { defined $_ } @weak_association_artists), 0,
'association artist rows are released after the diamond resultsets are discarded');
is(scalar(grep { defined $_ } @weak_resultsets), 0,
'discarded diamond cache releases every resultset');
ok(!defined($weak_schema), 'discarded diamond resultset cache releases its schema');

done_testing();
Loading
Loading