Ticket #1994 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

interpinfo TOTAL_PMCS and ACTIVE_PMCS no longer work in 3.0.0

Reported by: pmichaud Owned by:
Priority: normal Milestone:
Component: core Version: 3.0.0
Severity: high Keywords:
Cc: Language: perl6
Patch status: Platform:

Description

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

Change History

Changed 3 years ago by bacek

  • status changed from new to closed
  • resolution set to fixed

Hello.

Fixed in 425b54495a, test added in d7403155ec. Resolving ticket.

-- Bacek.

Note: See TracTickets for help on using tickets.