develooper Front page | perl.perl6.compiler | Postings from March 2018

[perl #128655] [OPTIMIZER] Mixup in candidates through optimizer

Thread Previous
From:
Zoffix Znet via RT
Date:
March 5, 2018 00:26
Subject:
[perl #128655] [OPTIMIZER] Mixup in candidates through optimizer
Message ID:
rt-4.0.24-12926-1520209589-1691.128655-15-0@perl.org
On Sat, 15 Jul 2017 09:47:40 -0700, jan-olof.hendig@bredband.net wrote:
> On Sat, 15 Jul 2017 07:15:05 -0700, jan-olof.hendig@bredband.net
> wrote:
> > On Tue, 31 Jan 2017 09:05:52 -0800, cpan@zoffix.com wrote:
> > > I dug at this bug a few months back, but lost my notes on my
> > > findings.
> > >
> > > As I recall it, the 128655 happens in BOOTSTRAP.nqp in
> > > find_best_dispatchee() the non-native candidate ends up being first
> > > in
> > > the list and that's why it's used instead of native candidates.
> > >
> > > I then went and wrote down the new rules for dispatch that would
> > > avoid
> > > that: https://rt.perl.org/Ticket/Display.html?id=129844
> > >
> > > Then jnthn++ explained (https://irclog.perlgeek.de/perl6-dev/2016-
> > > 10-
> > > 25#i_13462673 ) that I misunderstood the auto[un]boxing behaviour
> > > of
> > > natives, so the new rules are out of the window. But that's where
> > > my
> > > journey ended and never re-examined this ticket with my new
> > > understanding of boxing.
> >
> > It turns out that he part reported 'on behalf of dogbert17', se
> > above,
> > describes a
> > different problem which was fixed with
> > https://github.com/rakudo/rakudo/commit/c98b3a581f481756234758e474c255414a340c97
> 
> Also, the original problem has been 'temporarily' solved with
> https://github.com/rakudo/rakudo/commit/242baf256a210f1cb643cb6324916dbc76184c9f


Thank you for the report. This is now fixed.

Fix:  https://github.com/rakudo/rakudo/commit/29fdb75a30
      https://github.com/rakudo/rakudo/commit/3d7359755698458
Test: https://github.com/perl6/roast/commit/32ac651062f3ba06f

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About