changeset 10481:bb71f0783bb7

8151795: compiler/compilercontrol/parser/DirectiveParserTest.java fails with "assert failed: 0 != 0" Summary: Treat zero added directives as fail Reviewed-by: twisti, kvn
author neliasso
date Tue, 15 Mar 2016 11:17:06 +0100
parents c479d5653ab6
children 4bdeac967dce
files src/share/vm/compiler/directivesParser.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/compiler/directivesParser.cpp	Mon Mar 14 17:51:25 2016 +0100
+++ b/src/share/vm/compiler/directivesParser.cpp	Tue Mar 15 11:17:06 2016 +0100
@@ -97,7 +97,7 @@
       buffer[num_read] = '\0';
       // close file
       os::close(file_handle);
-      return parse_string(buffer, stream) != -1;
+      return parse_string(buffer, stream) > 0;
     }
   }
   return false;