commit | 77c1cbc9eb6fac1549b98c553ea2df2beee66422 | [log] [tgz] |
---|---|---|
author | Calin Juravle <calin@google.com> | Fri Jan 10 14:18:06 2014 +0000 |
committer | Calin Juravle <calin@google.com> | Fri Jan 10 18:32:03 2014 +0000 |
tree | ab5462e5714318b6ed355648fb945644679ce23a | |
parent | 179cde431fdfb9200e287446ea85ac67a9cf5204 [diff] |
Invalidate DirectByteBuffers when freed. Calls to DirectByteBuffer#free() will invalidate the buffer: - isValid() will return false; - subsequent operations which touch the inner buffer will throw IllegalStateException. Note: NioUtils#freeDirectByteBuffer can also be used to invalidate the buffer. Bug: 11512044 Change-Id: I78e00dc12b0dbfbd1be6af28bef2413053fb15cb