C struct garbage collection not run frequently enough

I’m on 1.10.3

The 115 GB is what is shown under MEM from top for only the julia process. I’m not exactly sure how to check if its RSS or not but I’ll figure that out

Absolutely! Here you go

import Pkg
Pkg.add("GTPSA")
using GTPSA

d1 = Descriptor(6,10)
r = vars()
iter = 20000

function test!(r, iter)
  for i=1:iter
    normL = 1/sqrt( (1+r[6])^2- r[2]^2 - r[4]^2)
    r[5] = r[5] + normL * (1 + r[6]) - 1
    r[1] = r[1] + normL * r[2]
    r[3] = r[3] + normL * r[4]
  end
end

function testgc!(r, iter)
  for i=1:iter
    normL = 1/sqrt( (1+r[6])^2- r[2]^2 - r[4]^2)
    r[5] = r[5] + normL * (1 + r[6]) - 1
    r[1] = r[1] + normL * r[2]
    r[3] = r[3] + normL * r[4]
    GC.gc(false)
  end
end

test!(r, iter)
testgc!(r, iter)