[roll] Roll fuchsia [kernel][vm] Prevent panic on OOM when profiling

Avoids a null pointer dereference in add_alloc_stat when
KERNEL_MEMORY_PROFILER is enabled by hoisting the heap_ptr check up.
Refactors the HEAP_COLLECT_STATS and KERNEL_MEMORY_PROFILER related
checks for clarity in the process.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1411234
Original-Revision: 0c335d971bc9f33b31d65f250c1337d10065a9c3
GitOrigin-RevId: 4bffc00b9d8d44bcf4a0d96997c153acdded68ed
Change-Id: I97c50ec85cccaa2a74b5be57bb4aef92ebed461b
1 file changed
tree: c333e78b67cc9ac6b89bae82dd20e7d657dd5ad1
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. flower
  6. jiri.lock
  7. MILESTONE
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.