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

treadmill gc #33

Open
ammarbinfaisal opened this issue May 30, 2023 · 8 comments
Open

treadmill gc #33

ammarbinfaisal opened this issue May 30, 2023 · 8 comments

Comments

@ammarbinfaisal
Copy link
Owner

https://www.mono-project.com/docs/advanced/garbage-collector/sgen/

@ammarbinfaisal
Copy link
Owner Author

@ammarbinfaisal
Copy link
Owner Author

@ammarbinfaisal
Copy link
Owner Author

a stop the world mark and sweep has been implemented in f7d1afc but it causes a double free while running sort.sahl

@ammarbinfaisal
Copy link
Owner Author

it causes a double free while running sort.sahl

this was fixed. Now the issue is that it isn't concurrent and doesn't gc from coroutines.

@ammarbinfaisal
Copy link
Owner Author

implement cheney 4c33473

for the program

fun alloc(i: int) {
    print(i, "\n")
    let a = make([int], 100000000)
    print(len(a), "\n")
}

fun main() {
    let end = 1024*1024
    for i in 0..end {
        alloc(i)
    }
}

old gc: ./sahl ./exe.bin 1.35s user 11.28s system 96% cpu 13.093 total
new gc: ./sahl ./exe.bin 0.86s user 6.08s system 90% cpu 7.696 total

@ammarbinfaisal
Copy link
Owner Author

need one for rt.c/runtime.rs

@ammarbinfaisal
Copy link
Owner Author

@ammarbinfaisal ammarbinfaisal changed the title generational gc treadmill gc Dec 8, 2023
@ammarbinfaisal
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant