8009287: [parfait] Uninitialised variable in hotspot/agent/src/os/linux/ps_core.c
Reviewed-by: dholmes, kvn, mikael, morris
--- a/hotspot/agent/src/os/linux/ps_core.c Fri Mar 01 15:59:10 2013 -0800
+++ b/hotspot/agent/src/os/linux/ps_core.c Tue Mar 05 08:50:59 2013 +0100
@@ -132,12 +132,12 @@
}
// Part of the class sharing workaround
-static map_info* add_class_share_map_info(struct ps_prochandle* ph, off_t offset,
+static void add_class_share_map_info(struct ps_prochandle* ph, off_t offset,
uintptr_t vaddr, size_t memsz) {
map_info* map;
if ((map = allocate_init_map(ph->core->classes_jsa_fd,
offset, vaddr, memsz)) == NULL) {
- return NULL;
+ return;
}
map->next = ph->core->class_share_maps;