Mercurial > hg > graal-jvmci-8
diff src/os/linux/vm/os_linux.hpp @ 199:f139919897d2
6681796: hotspot build failure on gcc 4.2.x (ubuntu 8.04) w/ openjdk 6
Summary: Fixed the cast from char* to const char* and tried to use const char* as much as possible
Reviewed-by: never, kamg
Contributed-by: xiaobin.lu@sun.com
author | xlu |
---|---|
date | Tue, 17 Jun 2008 09:59:59 -0700 |
parents | fcbfc50865ab |
children | 9c2ecc2ffb12 |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.hpp Tue Jun 10 16:39:20 2008 -0700 +++ b/src/os/linux/vm/os_linux.hpp Tue Jun 17 09:59:59 2008 -0700 @@ -52,8 +52,8 @@ static address _initial_thread_stack_bottom; static uintptr_t _initial_thread_stack_size; - static char *_glibc_version; - static char *_libpthread_version; + static const char *_glibc_version; + static const char *_libpthread_version; static bool _is_floating_stack; static bool _is_NPTL; @@ -72,8 +72,8 @@ static julong physical_memory() { return _physical_memory; } static void initialize_system_info(); - static void set_glibc_version(char *s) { _glibc_version = s; } - static void set_libpthread_version(char *s) { _libpthread_version = s; } + static void set_glibc_version(const char *s) { _glibc_version = s; } + static void set_libpthread_version(const char *s) { _libpthread_version = s; } static bool supports_variable_stack_size(); @@ -134,8 +134,8 @@ static bool chained_handler(int sig, siginfo_t* siginfo, void* context); // GNU libc and libpthread version strings - static char *glibc_version() { return _glibc_version; } - static char *libpthread_version() { return _libpthread_version; } + static const char *glibc_version() { return _glibc_version; } + static const char *libpthread_version() { return _libpthread_version; } // NPTL or LinuxThreads? static bool is_LinuxThreads() { return !_is_NPTL; }