Clone
Michael Blow <michael.blow@couchbase.com>
committed
on 25 Feb 16
Coverity Fix for Bad Lock Object
CID 68477: Bad choice of lock object (BAD_LOCK_OBJECT)
- boxed_lock:
Boxing a primitive may or may not retu… Show more
Coverity Fix for Bad Lock Object

CID 68477: Bad choice of lock object (BAD_LOCK_OBJECT)

- boxed_lock:

Boxing a primitive may or may not return a canonical boxed

representation depending upon the value of the primitive being boxed.

Thus, using a boxed primitive as a lock is dangerous.

Change-Id: Ib993d94bfae6b788b5b56d388fa7a33ec958dee4

Reviewed-on: https://asterix-gerrit.ics.uci.edu/665

Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>

Reviewed-by: Ian Maxon <imaxon@apache.org>

Reviewed-by: abdullah alamoudi <bamousaa@gmail.com>

Show less

master + 7 more