id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	lang	patch	platform
1994	interpinfo TOTAL_PMCS and ACTIVE_PMCS no longer work in 3.0.0	pmichaud		"The .INTERPINFO_TOTAL_PMCS and .INTERPINFO_ACTIVE_PMCS functions of the interpinfo opcode no longer return correct values in 3.0.0:

{{{

pmichaud@orange:/zip/parrot$ cat interpinfo.pir
.sub 'main'
    .include 'interpinfo.pasm'

    $P0 = new ['ResizablePMCArray']
    $P0[5] = 'hello'

    sweep 1
    collect

    $I0 = interpinfo .INTERPINFO_GC_MARK_RUNS
    say $I0

    $I0 = interpinfo .INTERPINFO_GC_COLLECT_RUNS
    say $I0

    $I0 = interpinfo .INTERPINFO_ACTIVE_PMCS
    say $I0
    
    $I0 = interpinfo .INTERPINFO_TOTAL_PMCS
    say $I0
    
.end

pmichaud@orange:/zip/parrot$ parrot-3.0.0/install/bin/parrot interpinfo.pir
1
2
0
0
pmichaud@orange:/zip/parrot$ 
}}}

These apparently worked in 2.3.0 and 2.6.0, but stopped working before 2.9.1:

{{{
pmichaud@orange:/zip/parrot$ parrot-2.3.0/install/bin/parrot interpinfo.pir
1
2
941
2048
pmichaud@orange:/zip/parrot$ parrot-2.6.0/install/bin/parrot interpinfo.pir
1
2
940
1280
pmichaud@orange:/zip/parrot$ parrot-2.9.1/install/bin/parrot interpinfo.pir
1
2
0
0
pmichaud@orange:/zip/parrot$ 
}}}


I'm hoping to use these again to instrument the memory usage characteristics of Rakudo and NQP.

Pm"	bug	closed	normal		core	3.0.0	high	fixed			perl6		
