1.1 --- a/src/os/linux/vm/os_linux.hpp Tue Jun 10 16:39:20 2008 -0700 1.2 +++ b/src/os/linux/vm/os_linux.hpp Tue Jun 17 09:59:59 2008 -0700 1.3 @@ -52,8 +52,8 @@ 1.4 static address _initial_thread_stack_bottom; 1.5 static uintptr_t _initial_thread_stack_size; 1.6 1.7 - static char *_glibc_version; 1.8 - static char *_libpthread_version; 1.9 + static const char *_glibc_version; 1.10 + static const char *_libpthread_version; 1.11 1.12 static bool _is_floating_stack; 1.13 static bool _is_NPTL; 1.14 @@ -72,8 +72,8 @@ 1.15 static julong physical_memory() { return _physical_memory; } 1.16 static void initialize_system_info(); 1.17 1.18 - static void set_glibc_version(char *s) { _glibc_version = s; } 1.19 - static void set_libpthread_version(char *s) { _libpthread_version = s; } 1.20 + static void set_glibc_version(const char *s) { _glibc_version = s; } 1.21 + static void set_libpthread_version(const char *s) { _libpthread_version = s; } 1.22 1.23 static bool supports_variable_stack_size(); 1.24 1.25 @@ -134,8 +134,8 @@ 1.26 static bool chained_handler(int sig, siginfo_t* siginfo, void* context); 1.27 1.28 // GNU libc and libpthread version strings 1.29 - static char *glibc_version() { return _glibc_version; } 1.30 - static char *libpthread_version() { return _libpthread_version; } 1.31 + static const char *glibc_version() { return _glibc_version; } 1.32 + static const char *libpthread_version() { return _libpthread_version; } 1.33 1.34 // NPTL or LinuxThreads? 1.35 static bool is_LinuxThreads() { return !_is_NPTL; }