Tue, 08 Jan 2019 04:55:25 +0000
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: Siddhesh Poyarekar <siddhesh@gotplt.org>
src/share/vm/runtime/fprofiler.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/runtime/fprofiler.cpp Tue Jan 08 04:05:41 2019 +0000 1.2 +++ b/src/share/vm/runtime/fprofiler.cpp Tue Jan 08 04:55:25 2019 +0000 1.3 @@ -775,7 +775,7 @@ 1.4 } 1.5 1.6 void ThreadProfiler::vm_update(TickPosition where) { 1.7 - vm_update(NULL, where); 1.8 + vm_update("", where); 1.9 } 1.10 1.11 void ThreadProfiler::vm_update(const char* name, TickPosition where) {