commit | e1cfcbcda62a94caffc3cf2a40f3440d3752f9d9 | [log] [tgz] |
---|---|---|
author | Robert Varga <nite@hq.sk> | Sun Feb 14 02:10:18 2016 +0100 |
committer | Gerrit Code Review <gerrit@fd.io> | Fri Feb 19 21:02:59 2016 +0000 |
tree | d70e953694948b12afd0e22a302407b64d7fb5a2 | |
parent | 9b7057fe36d00adc136b4f41c699041c1591635d [diff] |
Rebalance checkConnected() AtomicBoolean forces the enclosed boolean to be cache-aligned, needlessly hitting a cacheline. Since we only flip state only once, when the connection is severed, we can turn this into a volatile boolean. Doing that is costing us a synchronized close(), but that is perfectly acceptable, as that is called only once. Change-Id: I76fda3d3f65a5f800e7d3970b0b8fe99fb3e8b6d Signed-off-by: Robert Varga <nite@hq.sk>