Mercurial > hg > truffle
comparison agent/src/os/linux/ps_core.c @ 8709:255c0a4cb4eb
8009287: [parfait] Uninitialised variable in hotspot/agent/src/os/linux/ps_core.c
Reviewed-by: dholmes, kvn, mikael, morris
author | sla |
---|---|
date | Tue, 05 Mar 2013 08:50:59 +0100 |
parents | da91efe96a93 |
children | f6a055fcf47d |
comparison
equal
deleted
inserted
replaced
8678:3e83d69c19db | 8709: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 } |