Mercurial > hg > truffle
diff src/os/linux/vm/decoder_linux.cpp @ 14518:d8041d695d19
Merged with jdk9/dev/hotspot changeset 3812c088b945
author | twisti |
---|---|
date | Tue, 11 Mar 2014 18:45:59 -0700 |
parents | e7cbc95179c4 |
children | 4ca6dc0799b6 |
line wrap: on
line diff
--- a/src/os/linux/vm/decoder_linux.cpp Wed Mar 12 00:00:05 2014 +0100 +++ b/src/os/linux/vm/decoder_linux.cpp Tue Mar 11 18:45:59 2014 -0700 @@ -32,6 +32,12 @@ char* result; size_t size = (size_t)buflen; +#ifdef PPC64 + // On PPC64 ElfDecoder::decode() may return a dot (.) prefixed name + // (see elfFuncDescTable.hpp for details) + if (symbol && *symbol == '.') symbol += 1; +#endif + // Don't pass buf to __cxa_demangle. In case of the 'buf' is too small, // __cxa_demangle will call system "realloc" for additional memory, which // may use different malloc/realloc mechanism that allocates 'buf'.