Skip to content

Reduce overhead of ObjectSpace#each_object when disabled#8279

Closed
headius wants to merge 3 commits intojruby:9.5-devfrom
headius:less_objectspace
Closed

Reduce overhead of ObjectSpace#each_object when disabled#8279
headius wants to merge 3 commits intojruby:9.5-devfrom
headius:less_objectspace

Conversation

@headius
Copy link
Member

@headius headius commented Jun 3, 2024

This PR is intended to reduce or eliminate all overhead of the tracking logic for ObjectSpace#each_object when that feature is not enabled.

Initially it will reduce the overhead of the current logic without changing the implementation. Eventually it may use debugging interfaces or a JVM agent to add in the tracking only when requested, avoiding any runtime checks normally.

@headius headius added this to the JRuby 10.0.0.0 milestone Jun 3, 2024
@headius headius changed the base branch from master to 9.5-dev June 3, 2024 15:03
@headius headius force-pushed the less_objectspace branch from be78bbf to 2dee8cf Compare June 4, 2024 17:37
@headius headius deleted the branch jruby:9.5-dev November 11, 2024 19:21
@headius headius closed this Nov 11, 2024
@headius headius deleted the less_objectspace branch November 22, 2024 22:33
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.

1 participant