#1994: interpinfo TOTAL_PMCS and ACTIVE_PMCS no longer work in 3.0.0
----------------------+-----------------------------------------------------
 Reporter:  pmichaud  |       Owner:       
     Type:  bug       |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  core      |     Version:  3.0.0
 Severity:  high      |    Keywords:       
     Lang:  perl6     |       Patch:       
 Platform:            |  
----------------------+-----------------------------------------------------
 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

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1994>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to