cpu: Limit the size of the decode cache
Review Request #1892 - Created June 2, 2013 and updated
Changeset 9739:245243cf497d --------------------------- cpu: Limit the size of the decode cache The decode cache can in some cases grow really large, which can even prevent some systems from booting. This changeset adds a the ability to limit the size of the decode cache and randomly prune a fraction of the cache once it reaches its upper limit. The default behavior on most architectures is now to allow 4k pages in the cache and prune 50% once this limit is reached.
4 4 0 0
|is this appreciably faster than rand() or better yet the Random class in base which is just using a mersenne ...||Ali Saidi||June 3, 2013, 1:16 p.m.||Open|
|Doxygen please :-)||Andreas Hansson||June 4, 2013, 1:21 a.m.||Open|
|Is it sensible to even allow 0?||Andreas Hansson||June 4, 2013, 1:21 a.m.||Open|
|>= rather than == ?||Andreas Hansson||June 4, 2013, 1:21 a.m.||Open|
Posted (June 3, 2013, 1:16 p.m.)
looks fine, but if we don't have to embed our own random number generator in the middle of the decode cache code I think that would be best.