Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciRuntime.cpp @ 22438:dfd506f2ed61
Add comment to jvmci.properties file.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 20 Aug 2015 15:15:05 +0200 |
parents | a1b0a76567c7 |
children | ecbf949a9dcd |
comparison
equal
deleted
inserted
replaced
22437:c88c31c60755 | 22438:dfd506f2ed61 |
---|---|
756 /** | 756 /** |
757 * Closure for parsing a line from a *.properties file in jre/lib/jvmci/properties. | 757 * Closure for parsing a line from a *.properties file in jre/lib/jvmci/properties. |
758 * The line must match the regular expression "[^=]+=.*". That is one or more | 758 * The line must match the regular expression "[^=]+=.*". That is one or more |
759 * characters other than '=' followed by '=' followed by zero or more characters. | 759 * characters other than '=' followed by '=' followed by zero or more characters. |
760 * Everything before the '=' is the property name and everything after '=' is the value. | 760 * Everything before the '=' is the property name and everything after '=' is the value. |
761 * Lines that start with '#' are treated as comments and ignored. | |
761 * No special processing of whitespace or any escape characters is performed. | 762 * No special processing of whitespace or any escape characters is performed. |
762 * Also, no check is made whether an existing property is overridden. | 763 * Also, no check is made whether an existing property is overridden. |
763 */ | 764 */ |
764 class JVMCIPropertiesFileClosure : public ParseClosure { | 765 class JVMCIPropertiesFileClosure : public ParseClosure { |
765 SystemProperty** _plist; | 766 SystemProperty** _plist; |
766 public: | 767 public: |
767 JVMCIPropertiesFileClosure(SystemProperty** plist) : _plist(plist) {} | 768 JVMCIPropertiesFileClosure(SystemProperty** plist) : _plist(plist) {} |
768 void do_line(char* line) { | 769 void do_line(char* line) { |
770 if (line[0] == '#') { | |
771 // skip comment | |
772 return; | |
773 } | |
769 size_t len = strlen(line); | 774 size_t len = strlen(line); |
770 char* sep = strchr(line, '='); | 775 char* sep = strchr(line, '='); |
771 if (sep == NULL) { | 776 if (sep == NULL) { |
772 warn_and_abort("invalid format: could not find '=' character"); | 777 warn_and_abort("invalid format: could not find '=' character"); |
773 return; | 778 return; |