src/os/linux/vm/decoder_linux.cpp

changeset 6491
e7cbc95179c4
parent 4153
b9a9ed0f8eeb
child 6876
710a3c8b516e
     1.1 --- a/src/os/linux/vm/decoder_linux.cpp	Wed Nov 27 16:16:21 2013 -0800
     1.2 +++ b/src/os/linux/vm/decoder_linux.cpp	Thu Dec 05 19:19:09 2013 +0100
     1.3 @@ -32,6 +32,12 @@
     1.4    char* result;
     1.5    size_t size = (size_t)buflen;
     1.6  
     1.7 +#ifdef PPC64
     1.8 +  // On PPC64 ElfDecoder::decode() may return a dot (.) prefixed name
     1.9 +  // (see elfFuncDescTable.hpp for details)
    1.10 +  if (symbol && *symbol == '.') symbol += 1;
    1.11 +#endif
    1.12 +
    1.13    // Don't pass buf to __cxa_demangle. In case of the 'buf' is too small,
    1.14    // __cxa_demangle will call system "realloc" for additional memory, which
    1.15    // may use different malloc/realloc mechanism that allocates 'buf'.

mercurial