agent/src/os/linux/ps_core.c

changeset 4709
255c0a4cb4eb
parent 4037
da91efe96a93
child 5061
f6a055fcf47d
equal deleted inserted replaced
4678:3e83d69c19db 4709:255c0a4cb4eb
130 130
131 return map; 131 return map;
132 } 132 }
133 133
134 // Part of the class sharing workaround 134 // Part of the class sharing workaround
135 static map_info* add_class_share_map_info(struct ps_prochandle* ph, off_t offset, 135 static void add_class_share_map_info(struct ps_prochandle* ph, off_t offset,
136 uintptr_t vaddr, size_t memsz) { 136 uintptr_t vaddr, size_t memsz) {
137 map_info* map; 137 map_info* map;
138 if ((map = allocate_init_map(ph->core->classes_jsa_fd, 138 if ((map = allocate_init_map(ph->core->classes_jsa_fd,
139 offset, vaddr, memsz)) == NULL) { 139 offset, vaddr, memsz)) == NULL) {
140 return NULL; 140 return;
141 } 141 }
142 142
143 map->next = ph->core->class_share_maps; 143 map->next = ph->core->class_share_maps;
144 ph->core->class_share_maps = map; 144 ph->core->class_share_maps = map;
145 } 145 }

mercurial