[rocprofv3] Add check for Stream Stack Pointer before use (#465)
* Added null check for stream_stack before get_stream_id is called
* Rename function and add check for stream strack before pop
* Removed empty check for stream stack and adding error log for get_stream_id in stream.cpp
[ROCm/rocprofiler-sdk commit: 0904b6e34d]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
145944dc30
Коммит
e2bdebcb57
@@ -44,6 +44,12 @@ get_stream_stack()
|
||||
}
|
||||
} // namespace
|
||||
|
||||
bool
|
||||
stream_stack_not_null()
|
||||
{
|
||||
return get_stream_stack() != nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
push_stream_id(rocprofiler_stream_id_t id)
|
||||
{
|
||||
|
||||
Ссылка в новой задаче
Block a user