Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #34391] [TODO] thr-primes.imc should not use PerlUndef

5 views
Skip to first unread message

Bernhard Schmalhofer

unread,
Mar 9, 2005, 4:06:41 PM3/9/05
to bugs-bi...@rt.perl.org
# New Ticket Created by Bernhard Schmalhofer
# Please include the string: [perl #34391]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34391 >


Hi,

the example 'thr-primes.imc' should not use the PerlUndef PMC, as the Perl*
PMCs
are being moved into 'dynclasses'.

Replacing the PerlUndef PMC with the standard Undef PMC mostly works.
However,
after 499 is found as a prime, an infinite loop seems to be entered.

CU, Bernhard


--
/* Bernhard.S...@biomax.de */

SMS bei wichtigen e-mails und Ihre Gedanken sind frei ...
Alle Infos zur SMS-Benachrichtigung: http://www.gmx.net/de/go/sms

Leopold Toetsch

unread,
Mar 10, 2005, 2:44:56 AM3/10/05
to perl6-i...@perl.org
Bernhard Schmalhofer <parrotbug...@parrotcode.org> wrote:

> Hi,

> the example 'thr-primes.imc' should not use the PerlUndef PMC, as the
> Perl* PMCs are being moved into 'dynclasses'.

> Replacing the PerlUndef PMC with the standard Undef PMC mostly works.
> However, after 499 is found as a prime, an infinite loop seems to be
> entered.

The PerlUndef has the Integer PMC in its parents and inherits an empty
C<share> vtable slot. Undef used the Parrot_default_share implementation
which throws an internal_exception. The strange part is, why this
exception isn't visible and why the program runs to the end and hangs
there.

Anyway I've put in an empty share into the Undef PMC and now it works.

> CU, Bernhard

Thanks for looking at it,
leo

0 new messages