OSDN Git Service

Code to reuse PlatformAddress objects. Minimizing garbage creation on the framework...
authort.mehrvarz <othy74@gmail.com>
Sat, 28 Feb 2009 06:25:46 +0000 (07:25 +0100)
committert.mehrvarz <othy74@gmail.com>
Fri, 6 Mar 2009 23:42:39 +0000 (00:42 +0100)
commit71104be34cba97fde328989700a7167b2e7b35ac
treebd9d404047d73eefd588c0c1f6921c9101d4f3c8
parentcda113e9a701fe35e90dba43ed2462891fe3023e
Code to reuse PlatformAddress objects. Minimizing garbage creation on the framework level and reducing the number of runtime GC-hiccups for OpenGL apps and animations.
2nd version: complete rewrite using 8 bit hash, up to 5 probes, cycle through probes cache replacement. (Thank you MichaelDt for your help.)
- 1st amend: applied requested modifications
- 2nd amend: comment openers, curly bracket
libcore/luni/src/main/java/org/apache/harmony/luni/platform/PlatformAddressFactory.java