Don't cache JRuby runtime in static fields
维护者通常 1 天内回复
@headius 已经在做这个了。
开始于 2024年11月21日。
评估
这个 Issue 还没有评估数据。
描述
There are a few places where we cache the JRuby runtime or runtime-specific objects in a static field, such as here with a WeakReference:
The runtimes cached in weak references will not "leak" but it may take longer for the runtime to be collected than normal. In addition, the cost of traversing the weak reference may offset any gains from caching runtime objects.
These should be removed and cached in a runtime-safe way.
- 主要语言
- Ruby
- 星标
- 787
- 派生
- 392
- 平均合并
- 6 小时 4 分钟
- 30 天内合并 PR
- 22
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby/json 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 42/100
维护者通常 1 天内回复
-
Audit excluded tests on JRuby and address differences可能已有人在做 @ojuschugh1 于 5 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
-
Output formatting differences between jRuby 10.0.0.1 and Ruby 3.4 when converting Float to JSON.可能已有人在做 @headius 于 459 天前认领。 未关闭jruby
ruby/json#817 · 3 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
new feature
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raising未关闭
难度 2/5 1-3 小时 新手友好度 67/100
ruby/securerandom#92 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
open-feature/ruby-sdk-contrib#340 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
zold-io/wts.zold.io#651 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 87/100
erkamyaman/rust-anything#788 ·
维护者通常 1 天内回复