changeset 9037:a9ab35a0f5cb

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>
author andrew
date Tue, 08 Jan 2019 04:55:25 +0000
parents c40a28e54185
children 4b8584c24ff4
files src/share/vm/runtime/fprofiler.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/fprofiler.cpp	Tue Jan 08 04:05:41 2019 +0000
+++ b/src/share/vm/runtime/fprofiler.cpp	Tue Jan 08 04:55:25 2019 +0000
@@ -775,7 +775,7 @@
 }
 
 void ThreadProfiler::vm_update(TickPosition where) {
-  vm_update(NULL, where);
+  vm_update("", where);
 }
 
 void ThreadProfiler::vm_update(const char* name, TickPosition where) {