Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
198:6470a2a42f92 | 199:f139919897d2 |
---|---|
50 static int (*_pthread_getcpuclockid)(pthread_t, clockid_t *); | 50 static int (*_pthread_getcpuclockid)(pthread_t, clockid_t *); |
51 | 51 |
52 static address _initial_thread_stack_bottom; | 52 static address _initial_thread_stack_bottom; |
53 static uintptr_t _initial_thread_stack_size; | 53 static uintptr_t _initial_thread_stack_size; |
54 | 54 |
55 static char *_glibc_version; | 55 static const char *_glibc_version; |
56 static char *_libpthread_version; | 56 static const char *_libpthread_version; |
57 | 57 |
58 static bool _is_floating_stack; | 58 static bool _is_floating_stack; |
59 static bool _is_NPTL; | 59 static bool _is_NPTL; |
60 static bool _supports_fast_thread_cpu_time; | 60 static bool _supports_fast_thread_cpu_time; |
61 | 61 |
70 | 70 |
71 static julong available_memory(); | 71 static julong available_memory(); |
72 static julong physical_memory() { return _physical_memory; } | 72 static julong physical_memory() { return _physical_memory; } |
73 static void initialize_system_info(); | 73 static void initialize_system_info(); |
74 | 74 |
75 static void set_glibc_version(char *s) { _glibc_version = s; } | 75 static void set_glibc_version(const char *s) { _glibc_version = s; } |
76 static void set_libpthread_version(char *s) { _libpthread_version = s; } | 76 static void set_libpthread_version(const char *s) { _libpthread_version = s; } |
77 | 77 |
78 static bool supports_variable_stack_size(); | 78 static bool supports_variable_stack_size(); |
79 | 79 |
80 static void set_is_NPTL() { _is_NPTL = true; } | 80 static void set_is_NPTL() { _is_NPTL = true; } |
81 static void set_is_LinuxThreads() { _is_NPTL = false; } | 81 static void set_is_LinuxThreads() { _is_NPTL = false; } |
132 // For signal-chaining | 132 // For signal-chaining |
133 static struct sigaction *get_chained_signal_action(int sig); | 133 static struct sigaction *get_chained_signal_action(int sig); |
134 static bool chained_handler(int sig, siginfo_t* siginfo, void* context); | 134 static bool chained_handler(int sig, siginfo_t* siginfo, void* context); |
135 | 135 |
136 // GNU libc and libpthread version strings | 136 // GNU libc and libpthread version strings |
137 static char *glibc_version() { return _glibc_version; } | 137 static const char *glibc_version() { return _glibc_version; } |
138 static char *libpthread_version() { return _libpthread_version; } | 138 static const char *libpthread_version() { return _libpthread_version; } |
139 | 139 |
140 // NPTL or LinuxThreads? | 140 // NPTL or LinuxThreads? |
141 static bool is_LinuxThreads() { return !_is_NPTL; } | 141 static bool is_LinuxThreads() { return !_is_NPTL; } |
142 static bool is_NPTL() { return _is_NPTL; } | 142 static bool is_NPTL() { return _is_NPTL; } |
143 | 143 |