{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/14127","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/14127/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/14127/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/14127/events","html_url":"https://github.com/JuliaLang/julia/issues/14127","id":118747585,"number":14127,"title":"`gc` sometimes needs to be called twice","user":{"login":"timholy","id":1525481,"avatar_url":"https://avatars.githubusercontent.com/u/1525481?v=3","gravatar_id":"","url":"https://api.github.com/users/timholy","html_url":"https://github.com/timholy","followers_url":"https://api.github.com/users/timholy/followers","following_url":"https://api.github.com/users/timholy/following{/other_user}","gists_url":"https://api.github.com/users/timholy/gists{/gist_id}","starred_url":"https://api.github.com/users/timholy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timholy/subscriptions","organizations_url":"https://api.github.com/users/timholy/orgs","repos_url":"https://api.github.com/users/timholy/repos","events_url":"https://api.github.com/users/timholy/events{/privacy}","received_events_url":"https://api.github.com/users/timholy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T02:37:11Z","updated_at":"2016-06-06T02:05:27Z","closed_at":"2016-06-06T02:05:27Z","body":"As reported here: https://groups.google.com/d/msg/julia-users/F49gvZUWhX8/M0xKKH5kCQAJ\r\n\r\n```jl\r\njulia> function foo()\r\n           A = rand(3,5)\r\n           B = sub(A, 1:2, 3:4)\r\n           finalizer(A, A->@schedule(println(\"GCed A\")))\r\n           B\r\n       end\r\nfoo (generic function with 1 method)\r\n\r\njulia> B = foo()\r\n2x2 SubArray{Float64,2,Array{Float64,2},Tuple{UnitRange{Int64},UnitRange{Int64}},1}:\r\n 0.583567  0.719624\r\n 0.60663   0.739911\r\n\r\njulia> B = 0\r\n0\r\n\r\njulia> gc()\r\n\r\njulia> gc()\r\nGCed A\r\n```\r\nCC @carnaval.\r\n"}}
{"actor":{"display_login":"yuyichao"}}