Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/vm_version.cpp @ 4890:c77d473e71f7
7132779: build-infra merge: Enable ccache to work for most developer builds.
Summary: When a build number is not specified, the JRE_RELEASE_VERSION define contains a date and timestamp. Thus ccache cannot cache the object files for longer than a minute since the define is passed to the compilation of all source files. This change passes JRE_RELEASE_VERSION only to vm_version.cpp and adds a function jre_release_version() to Abstract_VM_Version. This allows all other source files to be ccached.
Reviewed-by: ohair, rottenha
Contributed-by: fredrik.ohrstrom@oracle.com
author | ohrstrom |
---|---|
date | Tue, 31 Jan 2012 13:12:39 +0100 |
parents | 2ef3386478e6 |
children | 33df1aeaebbf 7eca5de9e0b6 |
comparison
equal
deleted
inserted
replaced
4889:869be5c8882e | 4890:c77d473e71f7 |
---|---|
161 // NOTE: do *not* use stringStream. this function is called by | 161 // NOTE: do *not* use stringStream. this function is called by |
162 // fatal error handler. if the crash is in native thread, | 162 // fatal error handler. if the crash is in native thread, |
163 // stringStream cannot get resource allocated and will SEGV. | 163 // stringStream cannot get resource allocated and will SEGV. |
164 const char* Abstract_VM_Version::vm_release() { | 164 const char* Abstract_VM_Version::vm_release() { |
165 return VM_RELEASE; | 165 return VM_RELEASE; |
166 } | |
167 | |
168 // NOTE: do *not* use stringStream. this function is called by | |
169 // fatal error handlers. if the crash is in native thread, | |
170 // stringStream cannot get resource allocated and will SEGV. | |
171 const char* Abstract_VM_Version::jre_release_version() { | |
172 return JRE_RELEASE_VERSION; | |
166 } | 173 } |
167 | 174 |
168 #define OS LINUX_ONLY("linux") \ | 175 #define OS LINUX_ONLY("linux") \ |
169 WINDOWS_ONLY("windows") \ | 176 WINDOWS_ONLY("windows") \ |
170 SOLARIS_ONLY("solaris") \ | 177 SOLARIS_ONLY("solaris") \ |