8216037: Avoid calling vm_update with a NULL name

Tue, 08 Jan 2019 04:55:25 +0000

author
andrew
date
Tue, 08 Jan 2019 04:55:25 +0000
changeset 9607
a9ab35a0f5cb
parent 9606
c40a28e54185
child 9608
4b8584c24ff4

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) {

mercurial