Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental support for heap traversal #82

Closed
wants to merge 1 commit into from

Conversation

wks
Copy link

@wks wks commented Jul 30, 2024

This showcases the experimental heap traversal support introduced in mmtk/mmtk-core#1174 and mmtk/mmtk-ruby#90

Calling GC::MMTk.print_all_objects will simply print all object references in the heap.

This PR also enables TracePoint. The following snippet will be able to print "new line!" before each line.

tp = TracePoint.new(:line) do
  puts "new line!"
end

tp.enable

puts "hello"
puts "world"

Output:

new line!
hello
new line!
world

@wks wks marked this pull request as draft July 30, 2024 06:09
@wks
Copy link
Author

wks commented Aug 23, 2024

#91 has been merged into the dev/mmtk-overrides-default branch, and has enabled ObjectSpace::each_object and TracePoint. The dev/mmtk-gc branch also has its own wrapper for the object-enumeration feature from mmtk-core. This PR can be closed.

@wks wks closed this Aug 23, 2024
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