Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for 1 { last; ENTER { say "hurz" } } leaks an UnwindException #3417

Closed
p6rt opened this issue Jun 19, 2014 · 7 comments
Closed

for 1 { last; ENTER { say "hurz" } } leaks an UnwindException #3417

p6rt opened this issue Jun 19, 2014 · 7 comments
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented Jun 19, 2014

Migrated from rt.perl.org#122134 (status was 'resolved')

Searchable as RT122134$

@p6rt
Copy link
Author

p6rt commented Jun 19, 2014

From @FROGGS

perl6-j -e 'for 1 { last; ENTER { say "hurz" } }'
hurz
Exception in thread "main" org.perl6.nqp.runtime.UnwindException
  at org.perl6.nqp.runtime.ThreadContext.<init>(ThreadContext.java​:119)
  at org.perl6.nqp.runtime.GlobalContext.getCurrentThreadContext(GlobalContext.java​:324)
  at org.perl6.nqp.runtime.GlobalContext.<init>(GlobalContext.java​:239)
  at org.perl6.nqp.runtime.CompilationUnit.enterFromMain(CompilationUnit.java​:56)
  at perl6.main(gen/jvm/main.nqp)

perl6-j --version
This is perl6 version 2014.05-223-g5fdfc78 built on JVM

@p6rt
Copy link
Author

p6rt commented Mar 16, 2015

From @donaldh

The underlying error is​:

Method 'is_dispatcher' not found for invocant of class 'Block'

@p6rt
Copy link
Author

p6rt commented Mar 16, 2015

@usev6 - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 16, 2015

From @donaldh

Oops, I meant to say​:

The underlying error is​:

Method 'is_dispatcher' not found for invocant of class 'Block', happening inside a try block in Per6​::Optimizer optimize_call($op) line #​1273

This looks a lot like the UnwindException exception problem I'm already working on, but the same fix does not seem to apply. I will investigate further.

@p6rt
Copy link
Author

p6rt commented Dec 13, 2015

From @usev6

This works now as expected​:

$ perl6-j -e 'for 1 { last; ENTER { say "hurz" } }'
hurz

I added a test to S04-phasers/in-loop.t (and unfudged the skipped tests there) with commit Raku/roast@da7ff73062

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Dec 13, 2015

From @usev6

This works now as expected​:

$ perl6-j -e 'for 1 { last; ENTER { say "hurz" } }'
hurz

I added a test to S04-phasers/in-loop.t (and unfudged the skipped tests there) with commit Raku/roast@da7ff73062

I'm closing this ticket as 'resolved'.

@p6rt p6rt closed this as completed Dec 13, 2015
@p6rt
Copy link
Author

p6rt commented Dec 13, 2015

@usev6 - Status changed from 'open' to 'resolved'

@p6rt p6rt added the JVM Related to Rakudo-JVM label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM
Projects
None yet
Development

No branches or pull requests

1 participant