summaryrefslogtreecommitdiff
path: root/runtime/javaheapprof/javaheapsampler.h
diff options
context:
space:
mode:
authorEric Holk <eholk@google.com>2021-03-05 15:34:30 -0800
committerTreehugger Robot <treehugger-gerrit@google.com>2021-03-08 18:39:30 +0000
commit5950cf89ce5e2cf3361644a2f9595b3de946803d (patch)
tree109a1fb3b3c44437e01847d3d9eb0524325181f7 /runtime/javaheapprof/javaheapsampler.h
parentb0298f508e29a566ed42276fe06cef50abbd40d6 (diff)
[metrics] Do not write to statsd when not supported
Previously, on platforms that did not support statsd, we would add a null pointer to the list of backends when statsd was enabled. This led to a null pointer dereference when trying to report metrics. The problem was that CreateStatsdBackend returns nullptr when statsd is not supported, but we were not checking the return value. This CL fixes it. Test: ./test.py --run-test --host -t 801 --jit --64 \ --runtime-option=-Xwrite-metrics-to-statsd=true Bug: 170149255 Change-Id: I02af48d1ec60f902ba2651b6991c017d88d75495
Diffstat (limited to 'runtime/javaheapprof/javaheapsampler.h')
0 files changed, 0 insertions, 0 deletions