Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: registrySetTableSize() unusable
From: Till Straumann <strauman@slac.stanford.edu>
To: EPICS Techtalk <tech-talk@aps.anl.gov>
Date: Thu, 27 Jan 2011 19:52:47 -0600
I found that for one of my applications the size of the registry's
hash table was too small. However, it is impossible to make it
bigger (w/o recompiling EPICS, that is -- or using a special
prioritized C++ global constructor hack).

registrySetTableSize() can only be called before the hash table
is lazy-initialized but that apparently happens from some C++
global constructor already so that the application gets it's shot
too late (i.e., even the first line of 'main()' is too late).

(Since the registry is used for registering function names for
iocsh etc. it is impossible to set the table size from a startup
script anyways.)

-- Till

PS: An alternate 'general-purpose' hash implementation using
the linear-hashing algorithm could be explored. This would avoid
having to set static table sizes.

Replies:
Re: registrySetTableSize() unusable Andrew Johnson

Navigate by Date:
Prev: problem running bash script with MEDM on Windows/Cygwin Jay Steele
Next: epicsMessageQueue Linux PREEMPT_RT james.rowland
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: problem running bash script with MEDM on Windows/Cygwin Andrew Johnson
Next: Re: registrySetTableSize() unusable Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·