This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
Plug garbage collectors #267
Unanswered
KavinduZoysa
asked this question in
Ideas
Replies: 3 comments
-
This is the LLVM IR for a single LLVM IR function.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Please follow https://github.com/KavinduZoysa/test-GCs/tree/master/boehm for the progress. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please check https://github.com/KavinduZoysa/test-GCs/tree/master/boehm/dealloc. This includes the test cases for deallocation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the LLVM GC documentation, it tells us about two types of GCs.
Since conservative GCs do not depend on language or the compiler we are focusing to plug conservative GCs into our implementation.
Here I have tried out Boehm collector which is a conservative GC. Based on the provided instructions we can simply build Boehm collector from the source and ran the following basic sample.
These are the observations.
In the nim-lang, we can define the GC which is needed to use. Based on the argument provided, they choose the GC to use and call relevant methods in the GC using their FFI. Also, relevant libraries are dynamically linked. We can do the same to our implementation by declaring and calling relevant methods as needed.
Future steps ...
Beta Was this translation helpful? Give feedback.
All reactions