summaryrefslogtreecommitdiff
path: root/libthreads/ChangeLog
blob: 772ec5f0084f6fef06a571f39cdf10de1d8eab70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
Wed Aug 20 15:39:44 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* cthreads.c (cthread_body): Wire self before calling user work
 	function.  This way all cthreads will be wired, which the ports
	library (and hurd_thread_cancel, etc.) depend on.

Fri Aug  8 13:21:17 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* Makefile (SRCS): Delete malloc.c; libc now has a thread safe
	malloc. 
	(malloc.c): Delete file.

Mon Jun  9 21:18:46 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* cthreads.c (cthread_fork): Delete debugging oddity that crept
	into source.

Thu Apr  3 20:29:27 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* i386/csw.S: Define __ELF__ too.

Wed Feb 19 23:29:55 1997  Miles Bader  <miles@gnu.ai.mit.edu>

	* stack.c (__hurd_threadvar_stack_mask,
	__hurd_threadvar_stack_offset, __hurd_threadvar_max): Make extern.

Tue Feb 18 16:28:36 1997  Miles Bader  <miles@gnu.ai.mit.edu>

	* i386/thread.c (cproc_setup): Correctly leave space at top of
	stack for GNU per-thread variables.

Mon Nov 18 16:36:56 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* cprocs.c (cproc_create): Cast CHILD in assignment.

Mon Oct 21 22:05:48 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* i386/csw.S (CALL_MCOUNT): New macro.
	(cproc_swtich, cproc_start_wait, cproc_prepare): Use CALL_MCOUNT.

	* rwlock.h: Change extern inline protection to use new canonical
	method.
	* rwlock.c: Rewritten.

Wed Sep  4 09:06:09 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* Makefile (VPATH): Look in $(asm_syntax) instead of old
	$(machine); Hurd configure now folds equivalent CPU types into
	asm_syntax. 

Thu Aug 29 12:50:37 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* i386/csw.S: Include <mach/i386/asm.h> instead of <i386/asm.h>.
	Define ELF before inclusion.

Sat Jul 20 15:47:24 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>

	* Makefile (lndist-i386-files): Look for I386SRCS and I386HDRS in
	$(srcdir). 

Thu Jun  6 07:29:31 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* malloc.c (more_memory): Use assert_perror instead of MACH_CALL.
	"cthread_internals.h": Include removed.

Thu May  9 11:13:42 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>

	* Makefile (installhdrs, installhdrsubdir): Install headers using
	the generic technique, now that installhdrsubdir is available. 

	* rwlock.h: If _RWLOCK_DEFINE_FUNCTIONS is defined, then clear
 	_EXTERN_INLINE, but *after* header files have been included.
	* rwlock.c (_RWLOCK_DEFINE_FUNCTIONS): New macro; use in place of
 	clearing _EXTERN_INLINE, which conflicts with machine-sp.h.

Sat May  4 05:33:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

	* cthreads.h [lint] (NEVER): Spurious global variable removed.
	[!lint] (NEVER): Useless macro removed.

	* Makefile (SRCS): Add rwlock.c.
	(LCLHDRS): Add rwlock.h.
	(install): Depend on $(includedir)/rwlock.h.
	($(includedir)/%.h: %.h): New rule.
	($(includedir)/cthreads.h): Target removed, obviated by that rule.
	* rwlock.h: Moved to libthreads from libshouldbeinlibc.
	(_EXTERN_INLINE): New macro.
	Use it for all the inline defns.
	* rwlock.c: New file.

Thu Apr 11 17:55:24 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>

	* Makefile (CFLAGS): Turn off -Wall.

	* Makefile (VPATH): Fix up for new configure reality.

Thu Mar  7 15:52:38 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* malloc.c (realloc): Use LOG2_MIN_SIZE.
	(LOG2_MIN_SIZE): New macro.

	* malloc.c (realloc): Don't bother allocating a new block if the
 	new size request fits in the old one and doesn't waste any space.
  	Only free the old block if we successfully got a new one.

Wed Mar  6 18:05:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* malloc.c [MCHECK] (struct header): New type.
	(union header): Only define if !MCHECK.
	(HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros.
	[MCHECK] (MIN_SIZE): Add correct definition for this case.
	(more_memory, malloc, free, realloc): Use above macros, and add
	appropiate checks & frobs in MCHECK case.

Wed Jan 31 20:05:57 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* cancel-cond.c: Add assert to check for signal bug.

Wed Jan 24 13:38:11 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* cthreads.h: Use prototypes for functions of zero args.

Sun Dec 10 08:41:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* stack.c (addr_range_check, probe_stack): Functions #if 0'd out.
	(stack_init): Don't call probe_stack or frob old stack at all.
	Default cthread_stack_size to 16 pages if it is zero.

Wed Dec  6 14:48:37 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>

	* cprocs.c (condition_unimplies): Take address of (*impp)->next in
 	assignment to IMPP on loop step instruction.

Wed Oct  4 16:22:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* i386/csw.S (JUMPTARGET): New macro, versions for [PIC] and not.
	Use it in place of EXT.
	* Makefile (csw_pic.o): Bogus braindead target from hell removed.
	Bushnell will be shot.

Fri Sep 22 13:51:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* cprocs.c: Include hurd/threadvar.h.

Sat Sep 16 13:42:02 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* Makefile (CPPFLAGS): Variable removed.
	(lndist-i386-files): Use $(top_srcdir) in place of $(srcdir).

Wed Sep 13 15:49:17 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>

	* cthreads.h (CONDITION_INITIALIZER): Provide initial zero for
	IMPLICATIONS member.
	(condition_init): Bother initializing NAME and IMPLICATIONS members.

Wed Aug 30 11:10:27 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>

	* cthreads.h (condition_implies, condition_unimplies): New
	functions.
	(struct condition): New member `implications'.
	(cond_imp): New structure.
	(cond_signal): Return int now.
	(condition_broadcast): Always call cond_broadcast if this
	condition has implications.
	(condition_signal): Always call cond_signal if this condition has
	implications.
	* cprocs.c (cond_signal): If this condition has implications,
	see if one of them needs to be signalled when we have no waiters.
	(cond_broadcast): Signal the implications list too.
	(condition_implies, condition_unimplies): New functions.

	* cthreads.h (hurd_condition_wait): Provide declaration.

Tue Aug 29 10:48:59 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>

	* cthread_internals.h (cproc_block): Provide decl.

Sat Aug 26 14:08:15 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>

	* cancel-cond.c (hurd_condition_wait_cancel): Name changed to
	`hurd_condition_wait'.

Tue Aug 22 19:26:38 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>

	* Makefile (SRCS): Add a backslash.

Mon Aug 21 12:52:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* Makefile (SRCS): Add cancel-cond.c.
	* cancel-cond.c: New file.

Thu Jul  6 13:39:25 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>

	* Makefile (install): Don't *always* install cthreads.h; do it
 	only if it's new.

	* Makefile: Removed dependencies that are now automatically
 	generated.

	* Makefile (csw_pic.o): Provide slightly cheating rule.

Fri May 12 14:25:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* i386/csw.S: Use EXT macro instead of explicit underscores.
	* i386/asm.h: File removed; it is installed by libc.
	* Makefile (I386HDRS): Variable removed.
	($(OBJS)): Don't depend on i386/asm.h.

	* Makefile (CPPFLAGS): Use $(srcdir) instead of $(hurdsource).

Wed Apr 12 14:33:06 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>

	* Makefile (lndist, lndist-i386-files): Change $(hurdsource) to
        $(srcdir).
	($(hurdsource)/hurd-snap/$(dir)/i386): Likewise.

Tue Apr  4 17:04:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* Makefile (CPPFLAGS): Define.
	($(OBJS) rule): Fix typo in target.
	(install-cthreads.h): Use $(INSTALL_DATA).

	* cthreads.h (mutex_lock, mutex_unlock): Use __ names for *_solid.
	* cprocs.c (mutex_lock_solid, mutex_unlock_solid): Renamed to __*.
	(_cthread_mutex_lock_routine, _cthread_mutex_unlock_routine): Variables
	removed.

Fri Jul 22 10:47:51 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>

	* Makefile: Rewritten in accord with new scheme.

Tue Jul 19 12:22:01 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)

	* Makefile (generic-sources): Restored malloc.c.
	(malloc-sources, malloc-objects): Deleted variables.
	(DIST_FILES): Deleted $(malloc-sources)
	(all): Deleted libmalloc.a.
	(libmalloc.a): Delted target.
	($(hurdinst)/lib/libmalloc.a): Deleted target.
	(install): Deleted $(hurdinst)/lib/libmalloc.a.
	(clean): Deleted libmalloc.a.

Tue Jul  5 14:17:28 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)

	* Makefile (SRCS, TAGSHDRS): New variables.
	(TAGS): Deleted local definition; now it's in Makeconf.

Thu May 19 00:54:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)

	* cprocs.c (_cthread_mutex_lock_routine,
	_cthread_mutex_unlock_routine): New variables.

Thu May  5 19:33:49 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)

	* Makefile: (generic-sources): Removed malloc.c.
	(malloc-sources, malloc-objects): new variables.
	(DIST_FILES): added $(malloc-sources).
	(libmalloc.a, $(hurdinst)/lib/libmalloc.a): New targets.
	($(hurdinst)/lib/malloc.o): Deleted target.
	(all): added libmalloc.a.
	(install): Changed $(hurdinst)/lib/malloc.o to
	$(hurdinst)/lib/libmalloc.a
	(clean): Added libmaloc.a.

Thu May  5 04:30:34 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)

	* cthreads.c (cthread_init): Pass STACK instead of P to mig_init.

	* cprocs.c (cproc_create): Pass normal offset value to
	cproc_stack_base.  Explicitly store CHILD ptr at base of its stack.

	* stack.c (stack_init): Set __hurd_threadvar_stack_mask to find
	the lowest address of the stack segment.
	[STACK_GROWTH_UP]: Set __hurd_threadvar_stack_offset to
	sizeof(ur_cthread_t*).
	[! STACK_GROWTH_UP]: Set __hurd_threadvar_stack_offset to the size
	of the stack minus space for the cproc_self ptr and thread variables.

	* malloc.c (malloc, free, realloc): Change declarations to
	standard types, so as not to conflict with the declarations in
	<stdlib.h>.

	* cthread_internals.h: #if 0 out declaration of malloc.
	(struct cproc): #if 0 out `reply_port' member; libc implements that.
	* cprocs.c (cproc_alloc): #if 0 out initialization of P->reply_port.

	* Makefile (generic-sources): Omit sync.c.  libc implements that.

	* cprocs.c (cproc_block): Add __hurd_threadvar_max * sizeof (long
	int) to 2nd arg to cproc_stack_base.

	* stack.c: Include <hurd/threadvar.h>.
	(__hurd_threadvar_stack_mask, __hurd_threadvar_stack_offset,
	__hurd_threadvar_max): Define variables (uninitialized).
	(stack_init): Set __hurd_threadvar_stack_mask to cthread_stack_mask.
	Set __hurd_threadvar_stack_offset to point past the cproc_self ptr.
	Add __hurd_threadvar_max * sizeof (long int) to 2nd arg to
	cproc_stack_base.

	* cthreads.h: #if 0 include of <machine/cthreads.h>.
	Instead, include <machine-sp.h>.
	(cthread_sp): Define using __thread_stack_pointer.
	#if 0 out spin_lock definitions.  Just include <spin-lock.h> instead.
	(struct mutex): Move `held' member to be first in the structure.

Wed May  4 14:55:15 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)

	* i386/thread.c: Changed inclusions because we aren't using
	-I flags the way CMU's makefiles do.

	* i386/csw.S: Convert comment character to /* */ pairs.

	* Renamed csw.s to csw.S so that GCC knows to run cpp on it.
	* Makefile (machine-sources): Change csw.s to csw.S.

Wed May  4 07:11:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)

	* Makefile (GEN_SRCS): Renamed generic-sources.
	(I386_SRCS): Replaced with machine-sources, omitting directory.
	(SRCS): Renamed sources.  Include $(machine-sources) and prepend
	$(machine)/ directory name.
	(headers): Define variable.
	(OBJS): Renamed objects.
	(VPATH): Define to $(machine).