Reset link_map map in the constructor

Change-Id: I8a6ad3bc0fca790dec2992cacf9288068b3bcaa3


[ROCm/ROCR-Runtime commit: c57f3da1dc]
Esse commit está contido em:
Saleel Kudchadker
2020-02-19 13:31:48 -08:00
commit 7c5a08073f
2 arquivos alterados com 9 adições e 1 exclusões
@@ -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) {