Reset link_map map in the constructor

Change-Id: I8a6ad3bc0fca790dec2992cacf9288068b3bcaa3
Tento commit je obsažen v:
Saleel Kudchadker
2020-02-19 13:31:48 -08:00
rodič f5e86a8f14
revize c57f3da1dc
2 změnil soubory, kde provedl 9 přidání a 1 odebrání
+5
Zobrazit soubor
@@ -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) {