diff options
| author | 2023-11-15 15:34:07 +0000 | |
|---|---|---|
| committer | 2023-11-22 20:05:27 +0000 | |
| commit | aed681ef3403e79fe8eb7bf99117eb0eef6bdb72 (patch) | |
| tree | 69889a21d6539d5f357740f485f2a7c6977b1211 /opengl/java/javax | |
| parent | e1b4e2dd3984837015a7bd8e30faca3e6d5a5c69 (diff) | |
Closes NotificationRankingUpdate fd after write
Adds close and unmap buffer to NotificationRankingUpdate writeToParcel.
This should be safe to do (and good to prevent memory leaks) because
there's a per-process counter on the SharedMemory fd, and the
NotificationListeners who will receive this update have the pointer, so
the memory shouldn't actually be cleared.
Test: atest NotificationRankingUpdateTest, atest SystemUIMicrobenchmark:android.platform.test.scenario.notification.PostAndClearNotificationMicrobenchmark
Bug: 308308726
Change-Id: I70a5d31d0969cc82ef5462865ad035093c757017
Diffstat (limited to 'opengl/java/javax')
0 files changed, 0 insertions, 0 deletions