summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramRaster.java
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2019-12-18 09:52:42 -0800
committerSuren Baghdasaryan <surenb@google.com>2020-01-02 13:36:34 -0800
commit2018bf03f9fd96aa0326d74f23abdbaa3d4ee143 (patch)
tree6fd16205a305b31a8a5b60c6f7eb23c6df1d7b68 /rs/java/android/renderscript/ProgramRaster.java
parent5a049f5cf22d2eb5c7c4974fbf282427cb418ece (diff)
Prevent double-counting of kernel stack size in dumpsys reports
When kernel is configured with CONFIG_VMAP_STACK=y kernel stacks are mapped into process space and therefore already accounted as part of the value returned by ReadVmallocInfo and reported under MEMINFO_VM_ALLOC_USED category. Introduce isVmapStack function to check if kernel is configured with that option and if so do not exclude kernel stack size in the calculation of memory used by kernel. Bug: 146088882 Test: dumpsys meminfo with CONFIG_VMAP_STACK enabled and disabled Change-Id: I9230bbf0ab05524cf52ded35171fd9ec3da16fa0 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramRaster.java')
0 files changed, 0 insertions, 0 deletions