Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Garbage collection for objects created with @set #167

@kangboli

Description

@kangboli

I'm having difficulty releasing the memory of objects created with @set.

For the following code, both arrays are expected to be garbage collected, but I always end up with one copy left in my memory if I htop my memory usage.

a = rand(10000, 10000)
b = @set a[1] = 1
a = nothing
b = nothing
GC.gc(true)

Any thoughts? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions