Mercurial > hg > graal-jvmci-8
comparison src/os/linux/vm/os_linux.cpp @ 3358:97b64f73103b
7043564: compile warning and copyright fixes
Summary: Fixed the warning, also fixed copyrights in a bunch of files.
Reviewed-by: johnc, kvn
author | iveresov |
---|---|
date | Tue, 10 May 2011 12:26:10 -0700 |
parents | 188c9a5d6a6d |
children | be4ca325525a bf6481e5f96d |
comparison
equal
deleted
inserted
replaced
3357:fc2b798ab316 | 3358:97b64f73103b |
---|---|
2848 if (fp) { | 2848 if (fp) { |
2849 while (!feof(fp)) { | 2849 while (!feof(fp)) { |
2850 char chars[257]; | 2850 char chars[257]; |
2851 long x = 0; | 2851 long x = 0; |
2852 if (fgets(chars, sizeof(chars), fp)) { | 2852 if (fgets(chars, sizeof(chars), fp)) { |
2853 if (sscanf(chars, "%lx-%*lx", &x) == 1 | 2853 if (sscanf(chars, "%lx-%*x", &x) == 1 |
2854 && x == (long)p) { | 2854 && x == (long)p) { |
2855 if (strstr (chars, "hugepage")) { | 2855 if (strstr (chars, "hugepage")) { |
2856 result = true; | 2856 result = true; |
2857 break; | 2857 break; |
2858 } | 2858 } |