Commit b34d505b authored by tony.ys_liu's avatar tony.ys_liu Committed by Mathieu Chartier
Browse files

Fix infinite loop in GenerateIdentityHashCode

Root Cause:
  If no one changes the seed, it will become infinite loop due to below condition
    (expected_value & LockWord::kHashMask) == 0

Solution:
  Changes the seed before entering the next loop

Added test.

Bug: 19046417

(cherry picked from commit 7380c317)

Change-Id: I7d1c377dd1bda780681514b24d61ebc776bc80ab
parent f2df4941
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment