summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJunyu Lai <junyulai@google.com>2019-04-15 23:00:02 -0700
committerjunyulai <junyulai@google.com>2019-05-13 18:42:19 +0800
commitfd850fd3eb10b2f006ac82e6f6de30c77f4bc9bb (patch)
tree532fb9496adb7a11e45f659ac86e153538aa986e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentb05b4d609fe749928e34f3303a01ceaa6a75b6f1 (diff)
Release keepalive slot after stopped
Currntly, keepalive slot is released when stop() is called. Next starting keepalive can use the same slot number while previous keepalive is still stopping. When the previous keepalive is stopped, the incoming as will be processed by the new keepalive. This change release keepalive slot after the result of stopping has returned. Thus, newly created keepalive cannot allocate the same slot number while lower layer is still processing stop event. This change also disable flaky assertions that are caused by test port has been occupied by other process. Bug: 129512753 Test: 1. atest com.android.server.ConnectivityServiceTest \ #testNattSocketKeepalives --generate-new-metrics 100 2. atest FrameworksNetTests --generate-new-metrics 10 3. simulate the fail case manually. Change-Id: I790f6bbc5efc3f088034ac45ec379da5f781d0ca Merged-In: I1991627545519ee5cb408a3df3a006f710f4af7b (cherry picked from commit 3523a3d02a1f88a3990ab9cc4948c705ecc713c8)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions