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

Make GC API more generic #207

Open
playXE opened this issue May 27, 2020 · 2 comments
Open

Make GC API more generic #207

playXE opened this issue May 27, 2020 · 2 comments
Labels
type: refactor Refactor existing code

Comments

@playXE
Copy link

playXE commented May 27, 2020

Currently Mun uses just type GarbageCollector = MarkSweep. It will be better to have trait GarbageCollector and implement it for GC impls.

@playXE playXE mentioned this issue May 27, 2020
4 tasks
@playXE
Copy link
Author

playXE commented May 27, 2020

It is important to have generic API if we want multiple GCs support in runtime, this also might help interfacing with LLVM GC API it is possible to pass all data (roots,stack maps etc) from LLVM to GarbageCollector trait and each impl of GC can use this data.

@baszalmstra
Copy link
Collaborator

I assume you want to type the Runtime on a particular impl of GcRuntime + MemoryMapper? I think that's a great idea. One thing to keep in mind is how we expose that to the c api since we can't use a generic there.

@Wodann Wodann added the type: perf Changes that improve performance label May 27, 2020
@Wodann Wodann added type: refactor Refactor existing code and removed type: perf Changes that improve performance labels Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Refactor existing code
Projects
None yet
Development

No branches or pull requests

3 participants