Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,12 @@ public static RuntimeCode createRuntimeCode(
return compileToInterpreter(ast, ctx, useTryCatch);
}
throw e;
} catch (InterpreterFallbackException e) {
// InterpreterFallbackException already carries the InterpretedCode
if (SHOW_FALLBACK) {
System.err.println("Note: Using interpreter fallback (ASM frame compute crash).");
}
return e.interpretedCode;
} catch (RuntimeException e) {
if (USE_INTERPRETER_FALLBACK && needsInterpreterFallback(e)) {
if (SHOW_FALLBACK) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.perlonjava.backend.bytecode.InterpreterState;
import org.perlonjava.backend.jvm.EmitterContext;
import org.perlonjava.backend.jvm.EmitterMethodCreator;
import org.perlonjava.backend.jvm.InterpreterFallbackException;
import org.perlonjava.backend.jvm.JavaClassInfo;
import org.perlonjava.frontend.astnode.Node;
import org.perlonjava.frontend.astnode.OperatorNode;
Expand Down
2 changes: 2 additions & 0 deletions src/main/perl/lib/POSIX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ sub chdir { POSIX::_chdir(@_) }
sub time { POSIX::_time() }
sub sleep { POSIX::_sleep(@_) }
sub alarm { POSIX::_alarm(@_) }
sub strftime { POSIX::_strftime(@_) }
sub mktime { POSIX::_mktime(@_) }

# Math functions (many can use Perl builtins)
sub abs { CORE::abs($_[0]) }
Expand Down
Loading