From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8396 invoked by alias); 29 Apr 2004 20:26:31 -0000 Mailing-List: contact sid-cvs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-cvs-owner@sources.redhat.com Received: (qmail 8254 invoked by uid 448); 29 Apr 2004 20:26:08 -0000 Date: Thu, 29 Apr 2004 20:27:00 -0000 Message-ID: <20040429202608.8251.qmail@sources.redhat.com> From: brolley@sources.redhat.com To: sid-cvs@sources.redhat.com Subject: src/sid/component/cache ChangeLog cache.cxx ca ... X-SW-Source: 2004-q2/txt/msg00011.txt.bz2 List-Id: CVSROOT: /cvs/src Module name: src Changes by: brolley@sourceware.org 2004-04-29 20:26:08 Modified files: sid/component/cache: ChangeLog cache.cxx cache.h cacheutil.cxx cacheutil.h Log message: 2004-04-29 Dave Brolley * cacheutil.cxx (cache_set::expell_line): Don't update the set here. 2004-04-29 Dave Brolley * cache.cxx: Update calls to cache::find. * cacheutil.cxx (cache_set::allocate_lines): Now takes cache index as an argument. Update all callers. (cache_set::find): Now returns a pointer to the line, if found. Update all callers. (cache::find): Ditto. (cache_set::expell_line): Update the status of the expelled line. * cacheutil.h (cache_line_factory::make_line): Now takes cache index as an argument. Update all callers. (cache_set::allocate_lines): Now takes cache index as an argument. Update all callers. (cache_set::find): Now returns a pointer to the line, if found. Update all callers. (cache::find): Ditto. 2004-04-29 Dave Brolley * cacheutil.h (cache_line): Removed copy constructor. Now virtual base class. (cache_line::operator=): Removed. (internal_cache_line): New class implements former cache_line class. (cache_set): Now takes cache_line_factory. (allocate_lines): New method moves line allocation from the constructor. (cache_set::set_line): Now takes reference to cache_line. (cache_set::replace_line): Renamed to expell_line. Now returns a pointer to the expelled line. (cache): Now takes cache_line_factory argument. (cache::init): New method moves set allocation from the constructor. (cache_set::expell_line): Renamed to expell_line. Now returns a pointer to the expelled line. (cache_line_factory): New class. * cacheutil.cxx (cache_line): Removed copy constructor. Now virtual base class. (cache_line::operator=): Removed. (internal_cache_line): New class implements former cache_line class. (cache_set): Now takes cache_line_factory. (allocate_lines): New method moves line allocation from the constructor. (cache_set::set_line): Now takes reference to cache_line. (dummy): Now internal to cache_set::find. (cache_set::replace_line): Renamed to expell_line. Now returns a pointer to the expelled line. (cache): Now takes cache_line_factory argument. (cache::init): New method moves set allocation from the constructor. (cache_set::expell_line): Renamed to expell_line. Now returns a pointer to the expelled line. * cache.h (cache_replacement_algorithm::expell): Renamed from 'replace'. Returns a pointer to the expelled line. Update specializations. (cache_component): Now takes a cache_line_factory as an argument. Private data now protected. (line_factory): New member of cache_component. (~cache_component): Now virtual. (CacheCreate): Pass internal_line_factory to cache_component. * cache.cxx (line_sizes): Make it static. (line_sizes): Ditto. (replacement_algorithms): Ditto. (internal_line_factory): New static cache_line_factory. (cache_component): Now takes a cache_line_factory as an argument. Pass the cache line factory to the constructor for acache. Save a reference to the line factory. Call acache.init (write_any): Rewrite to use cache::expell_line instead of the former cache::replace. (read_any): Ditto. (cache_replacement_algorithm::expell): Renamed from 'replace'. Returns a pointer to the expelled line. Update all callers and specializations. (CacheCreate): Pass internal_line_factory to cache_component. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/sid/component/cache/ChangeLog.diff?cvsroot=src&r1=1.24&r2=1.25 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/sid/component/cache/cache.cxx.diff?cvsroot=src&r1=1.16&r2=1.17 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/sid/component/cache/cache.h.diff?cvsroot=src&r1=1.9&r2=1.10 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/sid/component/cache/cacheutil.cxx.diff?cvsroot=src&r1=1.7&r2=1.8 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/sid/component/cache/cacheutil.h.diff?cvsroot=src&r1=1.6&r2=1.7