Browse Source
Any RuntimeException or Error in this block will leave the lock held by the caller thread, which can later result in deadlock or just cache requests hanging forever because they cannot get to the lock object. Wrap everything in try/finally to prevent the lock from hanging, even though a RuntimeException or Error should never happen in any of these code paths. Change-Id: Ibb3467f7ee4c06f617b737858b4be17b10d936e0stable-1.2
Shawn O. Pearce
13 years ago
1 changed files with 41 additions and 35 deletions
Loading…
Reference in new issue