summaryrefslogtreecommitdiff
path: root/runtime/javaheapprof/javaheapsampler.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-11-13 16:59:28 +0000
committer Jiakai Zhang <jiakaiz@google.com> 2023-11-13 20:50:31 +0000
commitea1529568939cfc97122964375591965a47bedde (patch)
treeabb93b7a7cf8e49442911d6cd82ff70777875d9e /runtime/javaheapprof/javaheapsampler.cc
parentd5e5b4a2d9a72edb4cd3de1deffb265772e009b3 (diff)
Ignore swap areas during GetProcMountsEntriesForPath.
GetProcMountsEntriesForPath assumes that every entry in `/proc/mounts` has a `mount_point` (a.k.a, `fs_file`) field that is a non-empty absolute path. This is not true for swap areas. According to fstab(5): > For swap area, this field should be specified as `none'. There are also some implementations on the Internet that uses an arbitrary string for this field for swap areas. After this change, GetProcMountsEntriesForPath ignores swap areas. This change also improves the logging of the CHECK. Bug: 310519261 Change-Id: I0c3945e3a80fc9db9b1c6cf9449d0239243279c3 Test: Presubmit
Diffstat (limited to 'runtime/javaheapprof/javaheapsampler.cc')
0 files changed, 0 insertions, 0 deletions