提交 d18efe73 编写于 作者: A andrew

8216037: Avoid calling vm_update with a NULL name

Summary: Pass the empty string instead of NULL for safer strcmp usage
Reviewed-by: andrew
Contributed-by: NSiddhesh Poyarekar <siddhesh@gotplt.org>
上级 e60fddd7
...@@ -775,7 +775,7 @@ void ThreadProfiler::unknown_compiled_update(const CodeBlob* cb, TickPosition wh ...@@ -775,7 +775,7 @@ void ThreadProfiler::unknown_compiled_update(const CodeBlob* cb, TickPosition wh
} }
void ThreadProfiler::vm_update(TickPosition where) { void ThreadProfiler::vm_update(TickPosition where) {
vm_update(NULL, where); vm_update("", where);
} }
void ThreadProfiler::vm_update(const char* name, TickPosition where) { void ThreadProfiler::vm_update(const char* name, TickPosition where) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册