< prev index next >

src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -750,10 +750,11 @@
         if (add_map_info(ph, lib_fd, lib_php->p_offset,
                           target_vaddr, lib_php->p_memsz) == NULL) {
           goto err;
         }
       } else {
+#ifdef INCLUDE_SA_ATTACH
         // Coredump stores value of p_memsz elf field
         // rounded up to page boundary.
 
         if ((existing_map->memsz != page_size) &&
             (existing_map->fd != lib_fd) &&

@@ -761,10 +762,11 @@
 
           print_debug("address conflict @ 0x%lx (existing map size = %ld, size = %ld, flags = %d)\n",
                         target_vaddr, existing_map->memsz, lib_php->p_memsz, lib_php->p_flags);
           goto err;
         }
+#endif
 
         /* replace PT_LOAD segment with library segment */
         print_debug("overwrote with new address mapping (memsz %ld -> %ld)\n",
                      existing_map->memsz, ROUNDUP(lib_php->p_memsz, page_size));
 
< prev index next >