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

[Feature Request] Add garbage collection sign to the released memory blocks #47

Open
MarkChenYutian opened this issue Oct 2, 2023 · 0 comments
Labels
enhancement New feature or request React UI Change in UI Layer is needed

Comments

@MarkChenYutian
Copy link
Owner

Is your feature request related to a problem? Please describe.

Not really, but in 15-122, student draw a Pacman-like icon near a memory block that is no longer accessible by the program to indicate that the block will be collected by the garbage collector. It would be nice if C0 visualizer can also follow this behavior / rule.

Describe the solution you'd like

When a memory block is no longer accessible for the program (detected by the BFS on heap as currently graphical debugger do), instead of hiding the memory block, show a "grey out" version of memory block floating around in the graphical debugger view.

  1. When student click on it, remove the node (garbage is collected).
  2. If the node is floated around for more than N (maybe configurable?) steps, delete the node automatically.

Describe alternatives you've considered

N/A

Additional context

This feature request is from prof. Iliano

@MarkChenYutian MarkChenYutian added enhancement New feature or request React UI Change in UI Layer is needed labels Oct 2, 2023
@MarkChenYutian MarkChenYutian added this to the Visualizer LTS milestone Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request React UI Change in UI Layer is needed
Projects
None yet
Development

No branches or pull requests

1 participant