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

Garbage Collection Issue #2199

Closed
spotandjake opened this issue Nov 17, 2024 · 1 comment
Closed

Garbage Collection Issue #2199

spotandjake opened this issue Nov 17, 2024 · 1 comment

Comments

@spotandjake
Copy link
Member

spotandjake commented Nov 17, 2024

The code below causes an unreachable error at the print statement, this seems to be a memory issue though as when making a minimal implementation to reproduce I went back and forth between unreachable errors and DecRef issues. Interesting it seems related to the Set.empty with Map.empty experiencing the same properties. It doesn't just seem to be in relation to closures though as Number.pi is a value that can be passed perfectly fine the loop also needs to run 4 times.

module Main
from "set" include Set
use Set.{ module Immutable as Set }
from "array" include Array
Array.reduce((argResult, arg) => {
  Set.empty
}, Set.empty, [> 1, 1, 1, 1])
print("me")

This also is causing the online playground to timeout (indicting the bug is occurring there too)

@spotandjake
Copy link
Member Author

Closing as upon furthur investigation it seems as though this is a duplicate of #2197

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