commit | ef5b4d3a0db17756c0e9bb90f14e18c4bf17a446 | [log] [tgz] |
---|---|---|
author | Carl Shapiro <cshapiro@google.com> | Tue Jan 26 13:22:04 2010 -0800 |
committer | Carl Shapiro <cshapiro@google.com> | Tue Jan 26 14:06:59 2010 -0800 |
tree | 6c8f775aa3aeef6ca95d171f737fa11467054182 | |
parent | 07b359273a838a15accafefcbe861be15caaac3a [diff] |
Test the lock shape before falling into the thin lock code. The original formulation of this code relied on the subtly that the low bit of a thread id is always 1 and so the shape bit was punned with LSB of the thread id. This got us two tests for the price of one. When this code was moved forward to the new lock encoding scheme, we did not crack the test in two. This should correct the oversight.