• Eric Karl's avatar
    Check for deleted discardable handles before allocation · 5f192e32
    Eric Karl authored
    Currently, we never check for deleted entries until the client tries
    to lock an entry. In some cases (transfer cache), the client may never
    delete or re-lock an entry after creating it, relying on the service
    side to purge it. In these cases the client should eventually pick up
    these deletions allowing handles to be re-used.
    
    To handle this, we check for deleted entries any time we are about to
    allocate a new buffer.
    
    R=khushalsagar
    
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
    Change-Id: Ib4edbf7e339f213cff7a7df85771ecfeb5113936
    Reviewed-on: https://chromium-review.googlesource.com/1147495
    Commit-Queue: Eric Karl <ericrk@chromium.org>
    Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#577364}
    5f192e32
client_discardable_manager.h 2.89 KB