agent/src/os/linux/ps_core.c

changeset 5061
f6a055fcf47d
parent 4709
255c0a4cb4eb
child 5758
1f42d3ec1759
     1.1 --- a/agent/src/os/linux/ps_core.c	Tue May 07 14:04:26 2013 +0200
     1.2 +++ b/agent/src/os/linux/ps_core.c	Tue May 07 14:33:09 2013 +0200
     1.3 @@ -195,10 +195,10 @@
     1.4  //---------------------------------------------------------------
     1.5  // Part of the class sharing workaround:
     1.6  //
     1.7 -// With class sharing, pages are mapped from classes[_g].jsa file.
     1.8 +// With class sharing, pages are mapped from classes.jsa file.
     1.9  // The read-only class sharing pages are mapped as MAP_SHARED,
    1.10  // PROT_READ pages. These pages are not dumped into core dump.
    1.11 -// With this workaround, these pages are read from classes[_g].jsa.
    1.12 +// With this workaround, these pages are read from classes.jsa.
    1.13  
    1.14  // FIXME: !HACK ALERT!
    1.15  // The format of sharing achive file header is needed to read shared heap
    1.16 @@ -284,10 +284,9 @@
    1.17     lib_info* lib = ph->libs;
    1.18     while (lib != NULL) {
    1.19        // we are iterating over shared objects from the core dump. look for
    1.20 -      // libjvm[_g].so.
    1.21 +      // libjvm.so.
    1.22        const char *jvm_name = 0;
    1.23 -      if ((jvm_name = strstr(lib->name, "/libjvm.so")) != 0 ||
    1.24 -          (jvm_name = strstr(lib->name, "/libjvm_g.so")) != 0) {
    1.25 +      if ((jvm_name = strstr(lib->name, "/libjvm.so")) != 0) {
    1.26           char classes_jsa[PATH_MAX];
    1.27           struct FileMapHeader header;
    1.28           size_t n = 0;
    1.29 @@ -371,7 +370,7 @@
    1.30           }
    1.31  
    1.32           ph->core->classes_jsa_fd = fd;
    1.33 -         // add read-only maps from classes[_g].jsa to the list of maps
    1.34 +         // add read-only maps from classes.jsa to the list of maps
    1.35           for (m = 0; m < NUM_SHARED_MAPS; m++) {
    1.36              if (header._space[m]._read_only) {
    1.37                 base = (uintptr_t) header._space[m]._base;

mercurial