Reset link_map map in the constructor

Change-Id: I8a6ad3bc0fca790dec2992cacf9288068b3bcaa3
Este commit está contenido en:
Saleel Kudchadker
2020-02-19 13:31:48 -08:00
padre f5e86a8f14
commit c57f3da1dc
Se han modificado 2 ficheros con 9 adiciones y 1 borrados
+5
Ver fichero
@@ -188,6 +188,10 @@ static void RemoveCodeObjectInfoFromDebugMap(link_map* map) {
if (r_debug_tail == map) {
r_debug_tail = map->l_prev;
}
if (_amdgpu_r_debug.r_map == map) {
_amdgpu_r_debug.r_map = map->l_next;
}
if (map->l_prev) {
map->l_prev->l_next = map->l_next;
}
@@ -196,6 +200,7 @@ static void RemoveCodeObjectInfoFromDebugMap(link_map* map) {
}
delete map->l_name;
memset(map, 0, sizeof(link_map));
}
hsa_status_t AmdHsaCodeLoader::FreezeExecutable(Executable *executable, const char *options) {