Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/runtime/vm_version.cpp Fri Feb 03 17:21:52 2012 -0500 +++ b/src/share/vm/runtime/vm_version.cpp Tue Jan 31 13:12:39 2012 +0100 @@ -165,6 +165,13 @@ return VM_RELEASE; } +// NOTE: do *not* use stringStream. this function is called by +// fatal error handlers. if the crash is in native thread, +// stringStream cannot get resource allocated and will SEGV. +const char* Abstract_VM_Version::jre_release_version() { + return JRE_RELEASE_VERSION; +} + #define OS LINUX_ONLY("linux") \ WINDOWS_ONLY("windows") \ SOLARIS_ONLY("solaris") \