Commit 2a0ea6c1 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Automatic dataflow on #-1 for Java OutOfMemory errors

parent 67390b38
......@@ -170,6 +170,12 @@ sub write_output {
$self->complete_early(sprintf("The command exited with code %d, which is mapped to a dataflow on branch #%d.\n", $return_value, $branch_number));
if ($stderr =~ /Exception in thread ".*" java.lang.OutOfMemoryError: Java heap space at/) {
$self->dataflow_output_id( $self->input_id, -1 );
$self->complete_early("Java heap space is out of memory.\n");
die sprintf( "'%s' resulted in an error code=%d\nstderr is: %s\n", $flat_cmd, $return_value, $stderr);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment