169ef4cca30c77a1a85c9684560c504a5ac230b5 |
|
19-Oct-2009 |
Patrick Scott <phanna@android.com> |
Check for null before returing a chunk from the pool. Since references can be queued in another thread, the first entry in the pool could have been queued after processPoolLocked. Check for null and create a new chunk if the check fails.
/frameworks/base/core/java/android/webkit/ByteArrayBuilder.java
|
e1f43dadb9a1f0744f7e24373ca796c7a8ca2b12 |
|
15-Oct-2009 |
Patrick Scott <phanna@android.com> |
Share chunks between all ByteArrayBuilders. If a single ByteArrayBuilder accumulates many chunks, it is possible that many of those chunks will not be reused and will just take up memory in the pool. If the pool is shared across all instances, fewer chunks need to be allocated. This allows a site like http://www.606studios.com/bendisboard/showthread.php?t=170286 to load without crashing due to OOM. The shared pool contains SoftReferences to each chunk. If the vm feels memory pressure, it is allowed to mark these references for collection. Before accessing the pool of chunks, I remove any queued references from the pool. Cleanup ByteArrayBuilder a little by removing unused methods and fields. Document some synchronization spots in LoadListener and add a lock when downloading a certificate. Bug: 1637965
/frameworks/base/core/java/android/webkit/ByteArrayBuilder.java
|
3af8e9389e008c0076b86cc6b3c6f005e7473d10 |
|
20-Jun-2009 |
Grace Kloba <klobag@google.com> |
Change addCertificate to take byte[] instead of String as we don't know the encoding. In WebView, if we run into the certificate, we will save it to the Keystore instead of sending it to the WebKit.
/frameworks/base/core/java/android/webkit/ByteArrayBuilder.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/webkit/ByteArrayBuilder.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/webkit/ByteArrayBuilder.java
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/webkit/ByteArrayBuilder.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/android/webkit/ByteArrayBuilder.java
|