On Sunday 18 November 2007 09:48:30 Mehmet Yavuz Selim Soyturk wrote: > I did not test it with Valgrind (I'm not sure how to use it), but I > see increasing memory usage in the task manager. > > .sub _ :main > loop: > $P0 = new 'Integer' > $P0 = 27 > $P1 = new 'PMCProxy', $P0 > goto loop > .end > > And a more general test that causes a PMCProxy creation, thus a leak: > > .HLL 'Foo', '' > > .sub _ :main > loop: > $P0 = new 'Float' > goto loop > .end
Confirmed. I believe I've fixed this in r22957. I traced the context creation and freeing (parrot -D80) but everything there matched up, so I finally narrowed things down to the affected lines in PMCProxy. Your initial instinct was good, so nice catch and good test case. -- c