summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/ByteArrayBuilder.java
Commit message (Collapse)AuthorAgeFilesLines
* Delete the old WebView.Torne (Richard Coles)2013-10-151-154/+0
| | | | | | | | | Delete all the Java classes used only by the old WebView implementation, and also sections of common classes that were only needed for the old WebView. Bug: 10427705 Change-Id: I02549a71104b35d86d99058c71f43e054730ec7d
* Check for null before returing a chunk from the pool.Patrick Scott2009-10-191-5/+8
| | | | | | 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.
* Share chunks between all ByteArrayBuilders.Patrick Scott2009-10-161-64/+58
| | | | | | | | | | | | | | | | | | 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
* Change addCertificate to take byte[] instead of String as we don't know the ↵Grace Kloba2009-06-191-0/+15
| | | | | | encoding. In WebView, if we run into the certificate, we will save it to the Keystore instead of sending it to the WebKit.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+142
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-142/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+8
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+134