7043564: compile warning and copyright fixes

Fixed the warning, also fixed copyrights in a bunch of files.

Reviewed-by: johnc, kvn
This commit is contained in:
Igor Veresov 2011-05-10 12:26:10 -07:00
parent 8e56205189
commit 953f34d325
5 changed files with 47 additions and 9 deletions

View file

@ -2850,7 +2850,7 @@ bool os::Linux::hugetlbfs_sanity_check(bool warn, size_t page_size) {
char chars[257];
long x = 0;
if (fgets(chars, sizeof(chars), fp)) {
if (sscanf(chars, "%lx-%*lx", &x) == 1
if (sscanf(chars, "%lx-%*x", &x) == 1
&& x == (long)p) {
if (strstr (chars, "hugepage")) {
result = true;