# HG changeset patch # User Doug Simon # Date 1400885660 -7200 # Node ID 70bb12bdd1786663478e77dc107896c6b8a12536 # Parent 6dcf8ab4ad86ef8dd7c5f317bd54be59a444a5a8 added clarifying comment diff -r 6dcf8ab4ad86 -r 70bb12bdd178 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptionsLoader.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptionsLoader.java Sat May 24 00:46:33 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptionsLoader.java Sat May 24 00:54:20 2014 +0200 @@ -91,6 +91,8 @@ for (int len : lengths) { boolean printedCase = false; + // The use of strncmp is required (instead of strcmp) as the option name will not be + // null terminated for = style options. if (len == "PrintFlags".length() && isBoolean) { printedCase = true; out.println(" case " + len + ":");