Diff
Not logged in

Differences From Artifact [5a438ef3c1]:

To Artifact [d5d514f170]:


126
127
128
129
130
131
132
133

134
135
136
137
138


139
140
141
142
143
144
145
126
127
128
129
130
131
132

133
134
135
136
137

138
139
140
141
142
143
144
145
146







-
+




-
+
+








/*
 * Static functions defined in this file.
 */

static Cache *	GetCache(void);
static void	LockBucket(Cache *cachePtr, int bucket);
static void	UnlockBucket(Cache *cachePtr, int bucket);
static void	UnlockBucket(Cache *, int bucket);
static void	PutBlocks(Cache *cachePtr, int bucket, size_t numMove);
static int	GetBlocks(Cache *cachePtr, int bucket);
static Block *	Ptr2Block(void *ptr);
static void *	Block2Ptr(Block *blockPtr, int bucket, size_t reqSize);
static void	MoveObjs(Cache *fromPtr, Cache *toPtr, size_t numMove);
static void	MoveObjs(Cache *restrict fromPtr, Cache *restrict toPtr,
		    size_t numMove);
static void	PutObjs(Cache *fromPtr, size_t numMove);

/*
 * Local variables defined in this file and initialized at startup.
 */

static Tcl_Mutex *listLockPtr;
674
675
676
677
678
679
680
681
682


683
684
685
686
687
688
689
675
676
677
678
679
680
681


682
683
684
685
686
687
688
689
690







-
-
+
+







 *	None.
 *
 *----------------------------------------------------------------------
 */

static void
MoveObjs(
    Cache *fromPtr,
    Cache *toPtr,
    Cache *restrict fromPtr,
    Cache *restrict toPtr,
    size_t numMove)
{
    Tcl_Obj *objPtr = fromPtr->firstObjPtr;
    Tcl_Obj *fromFirstObjPtr = objPtr;

    toPtr->numObjects += numMove;
    fromPtr->numObjects -= numMove;