Compile fix for Ubuntu 11.04
David Holmes
David.Holmes at oracle.com
Tue May 10 17:00:52 PDT 2011
Hi Azeem,
I've already seen this handled as part of another webrev. But I'm not
clear on its status. I'll try to locate it.
David Holmes
Azeem Jiva said the following on 05/11/11 01:32:
> I have a change that allows GCC 4.5.2 on Ubuntu 11.04 to properly
> compile the HotSpot JVM. I've attached a diff below:
>
>
> src/os/linux/vm/os_linux.cpp
>
> ------------------------------------------------------------------------
>
> @@ -2848,11 +2848,11 @@
> if (fp) {
> while (!feof(fp)) {
> 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;
> break;
> }
>
More information about the hotspot-dev
mailing list