Avoid repeated live-root scans over growing lexical aggregates
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
Start with the reachability tests and the cleanup path around ReachabilityWalker.LiveRootSnapshot.build(), identified by the profiling evidence; inspect the regression work in #1642 for context. Add deterministic coverage that counts snapshot traversal while a lexical root graph grows, preserving weak-reference, scope-exit, and root-mutation behavior. Run the Perl-level test with system Perl, then verify both PerlOnJava backends and the unchanged Data-Tumbler-0.010 stress test.
由索引模型根据 Issue 内容生成。
描述
Summary
Data-Tumbler 0.010's t/90-stress.t times out under PerlOnJava although the complete upstream suite passes under system Perl. The stress test emits 4^8 (65,536) leaves and appends each result to a lexical output array.
Evidence
- CPAN random-tester regression run:
20261021-223510-14962. - System Perl 5.42.2, Temurin Java 24.0.2, macOS arm64.
- System Perl: PASS, 4 files / 5 tests; the stress test completes in under one second.
- PerlOnJava at parent
8bc1c9d1708de1381be6c042d6530c0c318e24f4:t/00-basic.t,t/10-simple.t, andt/20-examples.tpass, then the harness produces no output and exceeds its 120-second soft limit while running the stress test. - Reproduction on both PerlOnJava backends: 4^8 exceeds 180 seconds on JVM and 60 seconds on interpreter. On JVM, 4^6 takes 1.2 seconds and 4^7 takes 38.8 seconds, showing a sharp superlinear increase.
- JFR samples identify
ReachabilityWalker.LiveRootSnapshot.build()and its traversal as a major hot path during deferred aggregate cleanup. The stress test's lexical output array grows with every leaf, so repeated live-root snapshots revisit an increasingly large graph. Data::Tumbleris pure Perl and requires no native library, service, or display. This is related to the root-walk performance work in #1642, but this reproduction exercises repeated live lexical snapshots over a growing output graph after that fix.
Acceptance criteria
- Add deterministic regression coverage for repeated cleanup while a lexical root graph grows; assert bounded snapshot traversal work rather than elapsed time.
- Preserve weak-reference, scope-exit, and root-mutation semantics covered by the existing reachability tests.
- Run the new Perl-level test with system Perl, then verify JVM and interpreter behavior.
- The unchanged
Data-Tumbler-0.010stress test completes on both PerlOnJava backends without the observed superlinear slowdown.
- 主要语言
- Perl
- 星标
- 64
- 派生
- 8
- 平均合并
- 5 小时 47 分钟
- 30 天内合并 PR
- 197
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fglock/PerlOnJava 的其他 Issue
-
area:runtime documentation enhancement
难度 2/5 1-3 小时 新手友好度 72/100
fglock/PerlOnJava#1579 ·
维护者通常 1 天内回复
-
area:io area:runtime bug
难度 3/5 1-2 天 新手友好度 55/100
fglock/PerlOnJava#1873 ·
维护者通常 1 天内回复
-
perf: achieve measured 1:1 standard Perl throughput after #1850可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:performance enhancement
难度 5/5 一周以上 新手友好度 20/100
fglock/PerlOnJava#1863 · 1 条评论 ·
维护者通常 1 天内回复
-
area:cpan-port area:runtime bug
难度 3/5 1-2 天 新手友好度 56/100
fglock/PerlOnJava#1851 ·
维护者通常 1 天内回复
-
area:performance enhancement
难度 5/5 一周以上 新手友好度 25/100
fglock/PerlOnJava#1846 · 1 条评论 ·
维护者通常 1 天内回复
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
observablt-ci
难度 2/5 1-3 小时 新手友好度 86/100
elastic/golang-crossbuild#840 ·
维护者通常 1 天内回复
-
Sync playback crashes repeatedly in a sync group (v9.1.1)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
LMS-Community/slimserver#1701 · 6 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
RotherOSS/otobo#6286 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
fix(api): API v3 Product Read ignores request language (lc) for sample products and image URLs可能已有人在做 @muntasir-396 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
openfoodfacts/openfoodfacts-server#15042 · 1 条评论 ·
维护者通常 1 天内回复