Ticket #4504: export-the-value-of-the-signal-used-by-scheduler-__4504_.dpatch

File export-the-value-of-the-signal-used-by-scheduler-__4504_.dpatch, 16.9 KB (added by adept, 2 years ago)
Line 
11 patch for repository /home/adept/work/well-typed/parallel/kazu/ghc-src/ghc:
2
3Wed Dec  8 20:37:55 EET 2010  Dmitry Astapov <dastapov@gmail.com>
4  * Export the value of the signal used by scheduler (#4504)
5
6New patches:
7
8[Export the value of the signal used by scheduler (#4504)
9Dmitry Astapov <dastapov@gmail.com>**20101208183755
10 Ignore-this: 427bf8c2469283fc7a6f759440d07d87
11] {
12hunk ./includes/rts/Timer.h 19
13 
14 void startTimer (void);
15 void stopTimer  (void);
16+int rtsTimerSignal (void);
17 
18 #endif /* RTS_TIMER_H */
19hunk ./rts/Linker.c 891
20       SymI_HasProto(rts_unlock)                                \
21       SymI_HasProto(rts_unsafeGetMyCapability)          \
22       SymI_HasProto(rtsSupportsBoundThreads)           \
23+      SymI_HasProto(rtsTimerSignal)            \
24       SymI_HasProto(rts_isProfiled)                    \
25       SymI_HasProto(setProgArgv)                       \
26       SymI_HasProto(startupHaskell)                    \
27hunk ./rts/posix/Itimer.c 249
28                 (StgWord64)tv.tv_usec / (interval * 1000));
29 }
30 
31+int
32+rtsTimerSignal(void)
33+{
34+    return ITIMER_SIGNAL;
35+}
36+
37}
38
39Context:
40
41[Make CPPFLAGS variables, as well as CFLAGS and LDFLAGS
42Ian Lynagh <igloo@earth.li>**20101207010033
43 Ignore-this: 2fc1ca1422aae1988d0fe1d29a8485d9
44 This fixes the "does unsetenv return void" test in the unix package on
45 OS X, if I tell it to make 10.4-compatible binaries. The test uses
46 CPPFLAGS but not CFLAGS, so it thought it returned int (as it was
47 in 10.5-mode), but the C compiler (using CFLAGS, so in 10.4 mode)
48 thought it returned void.
49 
50 I also added CONF_LD_OPTS_STAGE$3 to the list of things in LDFLAGS,
51 which looks like an accidental ommission.
52]
53[Add a configure message
54Ian Lynagh <igloo@earth.li>**20101206215201]
55[Link even programs containing no Haskell modules with GHC
56Ian Lynagh <igloo@earth.li>**20101206203329
57 I don't remember why we made it use gcc instead, but going back to
58 using ghc doesn't seem to break anything, and should fix the build
59 on OS X 10.6.
60]
61[Correct the stage that the includes/ tools are built in
62Ian Lynagh <igloo@earth.li>**20101206203125]
63[Tweak the cleaning of inplace/; fixes trac #4320
64Ian Lynagh <igloo@earth.li>**20101205212048]
65[Close .ghci files after reading them; fixes trac #4487
66Ian Lynagh <igloo@earth.li>**20101205205301]
67[Fix the behaviour of :history for ticks surrounding top level functions
68pepeiborra@gmail.com**20101203202346
69 Ignore-this: 8059d4859c52c0c9a235b937cb8cde1d
70]
71[Don't warn of duplicate exports in case of module exports.
72Michal Terepeta <michal.terepeta@gmail.com>**20101127212116
73 Ignore-this: ea225d517826f971c400bbb68d1405b8
74 
75 But only when the module exports refer to different modules.
76 See ticket #4478.
77]
78[Fix whitespace/layout in RnNames.
79Michal Terepeta <michal.terepeta@gmail.com>**20101030171303
80 Ignore-this: 707a7955fc4fc51683cc5a1dfe57f93
81]
82[Tell gcc to support back to OS X 10.5
83Ian Lynagh <igloo@earth.li>**20101203201558
84 Ignore-this: f02d70e5b9cce50137981c6cb2b62a18
85]
86[Make RelaxedLayout off by default
87Ian Lynagh <igloo@earth.li>**20101202140808
88 I suspect this is a vary rarely used extension to the official layout
89 rule.
90]
91[Fix up TcInstDcls
92simonpj@microsoft.com**20101203180758
93 Ignore-this: 9311aeb4ee67c799704afec90b5982d0
94 
95 I really don't know how this module got left out of my last
96 patch, namely
97   Thu Dec  2 12:35:47 GMT 2010  simonpj@microsoft.com
98   * Re-jig simplifySuperClass (again)
99 
100 I suggest you don't pull either the patch above, or this
101 one, unless you really have to.  I'm not fully confident
102 that it works properly yet.  Ran out of time. Sigh.
103]
104[throwTo: report the why_blocked value in the barf()
105Simon Marlow <marlowsd@gmail.com>**20101203094840
106 Ignore-this: 3b167c581be1c51dfe3586cc6359e1d0
107]
108[handle ThreadMigrating in throwTo() (#4811)
109Simon Marlow <marlowsd@gmail.com>**20101203094818
110 Ignore-this: 8ef8cb7fd3b50a27f83c29968131d461
111 If a throwTo targets a thread that has just been created with
112 forkOnIO, then it is possible the exception strikes while the thread
113 is still in the process of migrating.  throwTo() didn't handle this
114 case, but it's fairly straightforward.
115]
116[removeThreadFromQueue: stub out the link field before returning (#4813)
117Simon Marlow <marlowsd@gmail.com>**20101202160838
118 Ignore-this: 653ae17bc1120d7f4130da94665002a1
119]
120[small tidyup
121Simon Marlow <marlowsd@gmail.com>**20101126140620
122 Ignore-this: 70b1d5ed4c81a7b29dd5980a2d84aae1
123]
124[Fix a recomp bug: make classes/datatypes depend directly on DFuns (#4469)
125Simon Marlow <marlowsd@gmail.com>**20101202122349
126 Ignore-this: 61c765583bb1d97caa88cf9b4f45b87c
127 And remove the old mechanism of recording dfun uses separately,
128 because it didn't work.
129 
130 This wiki page describes recompilation avoidance and fingerprinting.
131 I'll update it to describe the new method and what went wrong with the
132 old method:
133 
134 http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/RecompilationAvoidance
135]
136[make a panic message more informative and suggest -dcore-lint (see #4534)
137Simon Marlow <marlowsd@gmail.com>**20101201151706
138 Ignore-this: 2a10761925d6f9f52675948baa30f7a
139]
140[Re-jig simplifySuperClass (again)
141simonpj@microsoft.com**20101202123547
142 Ignore-this: fe4062b8988258f6748ebd8fbd6515b5
143 
144 This fixes the current loop in T3731, and will fix other
145 reported loops.  The loops show up when we are generating
146 evidence for superclasses in an instance declaration.
147 
148 The trick is to make the "self" dictionary simplifySuperClass
149 depend *explicitly* on the superclass we are currently trying
150 to build.  See Note [Dependencies in self dictionaries] in TcSimplify.
151 
152 That in turn means that EvDFunApp needs a dependency-list, used
153 when chasing dependencies in isGoodRecEv.
154]
155[A little refactoring (remove redundant argument passed to isGoodRecEv)
156simonpj@microsoft.com**20101202123110
157 Ignore-this: e517c5c12109a230f08dafb4d1e386df
158]
159[Make rebindable if-then-else a little more permissive
160simonpj@microsoft.com**20101202122540
161 Ignore-this: ddb552cfe307607b42d1e4baf4e3bf21
162 
163 See Note [Rebindable syntax for if].  Fixes Trac #4798.
164 Thanks to Nils Schweinsberg <mail@n-sch.de>
165]
166[Improve error message (Trac #4799)
167simonpj@microsoft.com**20101202102706
168 Ignore-this: d9896e4d182936de1f256c820b96a8cf
169]
170[Fix a nasty bug in RULE matching: Trac #4814
171simonpj@microsoft.com**20101202102618
172 Ignore-this: ba058ad46a02bd2faf3a14de93fd19c6
173 
174 See Note [Matching lets], which explains it all in detail.
175 It took me a day to think of a nice way to fix the bug,
176 but I think the result is quite respectable. Subtle, though.
177]
178[Rename -XPArr to -XParallelArrays
179Ben Lippmeier <benl@ouroborus.net>**20101130075415
180 Ignore-this: 21b37680a7f25800d1200b59ad0b6b39
181]
182[FIX #1845 (unconditional relative branch out of range)
183pho@cielonegro.org**20101130143014
184 Ignore-this: df234bd8ad937104c455656fe3c33732
185 
186 Don't use mmap on powerpc-apple-darwin as mmap doesn't support
187 reallocating but we need to allocate jump islands just after each
188 object images. Otherwise relative branches to jump islands can fail
189 due to 24-bits displacement overflow.
190]
191[rts/Linker.c (loadArchive):
192pho@cielonegro.org**20101130142700
193 Ignore-this: bc84f9369ce5c2d289440701b7a3a2ab
194 
195 This routine should be aware of Mach-O misalignment of malloc'ed memory regions.
196]
197[rts/Linker.c (machoGetMisalignment):
198pho@cielonegro.org**20101130123355
199 Ignore-this: 75425600049efd587e9873578e26392f
200 
201 Use fseek(3) instead of rewind(3) to move the file position indicator back to the initial position. Otherwise we can't use this function in loadArchive().
202]
203[rts/Linker.c (ocFlushInstructionCache):
204pho@cielonegro.org**20101130121425
205 Ignore-this: 1e2c207e4b1d17387617ec5d645204b7
206 
207 I found this function causes a segfault when ocAllocateSymbolExtras() has allocated a separate memory region for jump islands.
208]
209[Remove NewQualifiedOperators
210Ian Lynagh <igloo@earth.li>**20101201181117
211 The extension was rejected by Haskell', and deprecated in 7.0.
212]
213[fix ref to utils/ext-core, which moved to Hackage (extcore package)
214Simon Marlow <marlowsd@gmail.com>**20101201092147
215 Ignore-this: 272a7daaa335ef60bcc645db70b4d68b
216]
217[fix floating-point/FFI section: fenv is C99, not POSIX
218Simon Marlow <marlowsd@gmail.com>**20101201092119
219 Ignore-this: ce8b3edd428e4f77691dd739b5b4ae73
220]
221[Fixed some 'unused vars' warnings
222keller@cse.unsw.edu.au**20101130013425
223 Ignore-this: 35790d443faa23b87e4ba442e62376a3
224]
225[vectScalarLam handles int, float, and double now
226keller@cse.unsw.edu.au**20101129231043
227 Ignore-this: 6d67bdc8dd8577184040e791e6f3d0
228]
229[Handling of lets, letrec and case when checking if a lambda expr needs to be vectorised
230keller@cse.unsw.edu.au**20101115051225
231 Ignore-this: 1db6ed63d7b3f6d093e019322b407ff7
232]
233[Document the behaviour of fenv.h functions with GHC (#4391)
234Simon Marlow <marlowsd@gmail.com>**20101126125336
235 Ignore-this: bc4eab49428d567505a28add6fed90f1
236]
237[Remove the no-ghci-lib warning in ghc-pkg
238Ian Lynagh <igloo@earth.li>**20101127235805
239 GHCi libs are no longer necessary, as we can use the .a or .so versions
240 instead.
241]
242[Add GNU-variant support to the .a parser, and other improvements/tidyups
243Ian Lynagh <igloo@earth.li>**20101127223945]
244[Re-indent only
245Ian Lynagh <igloo@earth.li>**20101127191646]
246[Improve linker debugging for archive files
247Ian Lynagh <igloo@earth.li>**20101127190907]
248[Always enable the archive-loading code
249Ian Lynagh <igloo@earth.li>**20101127173000
250 If the GHCi .o lib doesn't exist, load the .a instead
251]
252[Inherit the ForceSpecConstr flag in non-recursive nested bindings
253Roman Leshchinskiy <rl@cse.unsw.edu.au>**20101127125025
254 Ignore-this: 401391eae25cefcb4afaba2e357decc1
255 
256 This makes sure that join points are fully specialised in loops which are
257 marked as ForceSpecConstr.
258]
259[Document -ddump-rule-firings and -ddump-rule-rewrites
260Roman Leshchinskiy <rl@cse.unsw.edu.au>**20101127123528
261 Ignore-this: beade2efe0cd767c0ce9d4f45a3380ba
262]
263[New flag -dddump-rule-rewrites
264Roman Leshchinskiy <rl@cse.unsw.edu.au>**20101127122022
265 Ignore-this: c0ef5b8a199fbd1ef020258d2cde85a3
266 
267 Now, -ddump-rule-firings only shows the names of the rules that fired (it would
268 show "before" and "after" with -dverbose-core2core previously) and
269 -ddump-rule-rewrites always shows the "before" and "after" bits, even without
270 -dverbose-core2core.
271]
272[Acutally, wild-card variables *can* have occurrences
273simonpj@microsoft.com**20101126162409
274 Ignore-this: 544bffed75eeccef03a1097f98524eea
275 
276 This patch removes the Lint test, and comments why
277]
278[Tidy up the handling of wild-card binders, and make Lint check it
279simonpj@microsoft.com**20101126133210
280 Ignore-this: 9e0be9f7867d53046ee5b0e478a0f433
281 
282 See Note [WildCard binders] in SimplEnv.  Spotted by Roman.
283]
284[Substitution should just substitute, not optimise
285simonpj@microsoft.com**20101125172356
286 Ignore-this: 657628d9b6796ceb5f915c43d56e4a06
287 
288 This was causing Trac #4524, by optimising
289      (e |> co)  to   e
290 on the LHS of a rule.  Result, the template variable
291 'co' wasn't bound any more.
292 
293 Now that substition doesn't optimise, it seems sensible to call
294 simpleOptExpr rather than substExpr when substituting in the
295 RHS of rules.  Not a big deal either way.
296]
297[Make SpecConstr "look through" identity coercions
298simonpj@microsoft.com**20101125172138
299 Ignore-this: c1cc585ed890a7702c33987e971e0af6
300]
301[Comment only
302simonpj@microsoft.com**20101125172011
303 Ignore-this: 3c7be8791badd00dcca9610ebb8981d1
304]
305[White space only
306simonpj@microsoft.com**20101101080748
307 Ignore-this: f7133fc6b22ae263c6672543a8534a6f
308]
309[Keep a maximum of 6 spare worker threads per Capability (#4262)
310Simon Marlow <marlowsd@gmail.com>**20101125135729
311 Ignore-this: a020786569656bf2f3a1717b65d463bd
312]
313[Unicide OtherNumber category should be allowed in identifiers (#4373)
314Simon Marlow <marlowsd@gmail.com>**20101115095444
315 Ignore-this: e331b6ddb17550163ee91bd283348800
316]
317[vectoriser: fix warning
318Ben Lippmeier <benl@ouroborus.net>**20101126044036
319 Ignore-this: e1a66bb405bf2f3f56b42c3b13fd4bf3
320]
321[vectoriser: fix warning
322Ben Lippmeier <benl@ouroborus.net>**20101126042950
323 Ignore-this: df8dd25bcfb3946c2974b13953a2f2c7
324]
325[vectoriser: take class directly from the instance tycon
326Ben Lippmeier <benl@ouroborus.net>**20101126042900
327 Ignore-this: 626a416717a5a059f39e53f4ec95fc66
328]
329[vectoriser: comments only
330Ben Lippmeier <benl@ouroborus.net>**20101125073201
331 Ignore-this: 8846ea8895307083bd1ebbc5d7fb1c5
332]
333[vectoriser: follow changes in mkClass
334Ben Lippmeier <benl@ouroborus.net>**20101125062349
335 Ignore-this: d5018cc022686d4272e126ca9a12283a
336]
337[vectoriser: tracing wibbles
338Ben Lippmeier <benl@ouroborus.net>**20101125062332
339 Ignore-this: c2024d8f03bc03bee2851f4f1c139fd5
340]
341[mkDFunUnfolding wants the type of the dfun to be a PredTy
342benl@ouroborus.net**20100914062939
343 Ignore-this: 7aa6e6b140746184cf00355b50c83b66
344]
345[vectoriser: fix conflicts
346Ben Lippmeier <benl@ouroborus.net>**20101125060904
347 Ignore-this: cc3decab1affada8629ca3818b76b3bf
348]
349[Comments and formatting only
350benl@ouroborus.net**20100914062903
351 Ignore-this: b0fc25f0952cafd56cc25353936327d4
352]
353[Comments and formatting to type environment vectoriser
354benl@ouroborus.net**20100909080405
355 Ignore-this: ab8549d53f845c9d82ed9a525fda3906
356]
357[Don't mix implicit and explicit layout
358Ian Lynagh <igloo@earth.li>**20101124231514]
359[Whitespace only
360Ian Lynagh <igloo@earth.li>**20101124230655]
361[Separate NondecreasingIndentation out into its own extension
362Ian Lynagh <igloo@earth.li>**20101124220507]
363[Add another GHC layout rule relaxation to RelaxedLayout
364Ian Lynagh <igloo@earth.li>**20101124205957]
365[Remove an unused build system variable: GhcDir
366Ian Lynagh <igloo@earth.li>**20101124140455]
367[Remove unused build system variable: GhcHasEditline
368Ian Lynagh <igloo@earth.li>**20101124140415]
369[Remove unused variables from the build system: HBC, NHC, MKDEPENDHS
370Ian Lynagh <igloo@earth.li>**20101124140052]
371[Remove references to Haskell 98
372Ian Lynagh <igloo@earth.li>**20101123233536
373 They are no longer right, as we have Haskell' generating new Haskell
374 standards.
375]
376[Tweak a configure test
377Ian Lynagh <igloo@earth.li>**20101123170621]
378[Add a configure test for the visibility hidden attribute
379Ian Lynagh <igloo@earth.li>**20101123170541]
380[sanity: fix places where we weren't filling fresh memory with 0xaa
381Simon Marlow <marlowsd@gmail.com>**20101029092843
382 Ignore-this: 2cb18f7f5afcaf33371aeffce67e218f
383]
384[Just some alpha renaming
385Ian Lynagh <igloo@earth.li>**20101121144455
386 Ignore-this: d5e807c5470840efc199e29f7d50804c
387]
388[Fix bug #3165 (:history throws irrefutable pattern failed)
389pepeiborra@gmail.com**20101115223623
390 Ignore-this: 73edf56e502b4d0385bc044133b27946
391 
392 I ran across this bug and took the time to fix it, closing
393 a long time due TODO in InteractiveEval.hs
394 
395 Instead of looking around to find the enclosing declaration
396 of a tick, this patch makes use of the information already collected during the
397 coverage desugaring phase
398]
399[For bindists, build ghc-pwd with stage 1
400Ian Lynagh <igloo@earth.li>**20101121183520
401 Ignore-this: a3b5c8b78c81ec1b6d5fbf23da346ff5
402 rather then the bootstrapping compiler. This fixes problems where the
403 bootstrapping compiler dynamically links against libraries not on the
404 target machine.
405]
406[Makefile tweak
407Ian Lynagh <igloo@earth.li>**20101121183342
408 Ignore-this: cd55a2819c1a5fd36da1bc7a75d2ded1
409]
410[Fix a makefile include ordering sanity check
411Ian Lynagh <igloo@earth.li>**20101121174916
412 Ignore-this: d0bdd41c4b618944d04ecb4f54fdd0f1
413]
414[Add an extension for GHC's layout-rule relaxations
415Ian Lynagh <igloo@earth.li>**20101120215340
416 Still TODO: Add the other relaxation (#1060) and update the alternative
417 layout rule to use the extension.
418]
419[Tweak the bindist configure.ac.in
420Ian Lynagh <igloo@earth.li>**20101120173735]
421[configure.ac tweaks
422Ian Lynagh <igloo@earth.li>**20101120170245]
423[When testing the bindist, tell it where gcc is
424Ian Lynagh <igloo@earth.li>**20101120155920
425 The location isn't baked into the bindist, as it may differ from
426 machine to machine.
427]
428[Comments only
429simonpj@microsoft.com**20101119100153
430 Ignore-this: 7abd5d965ea805770449d6f8dadbb921
431]
432[ForceSpecConstr now forces specialisation even for arguments which aren't scrutinised
433Roman Leshchinskiy <rl@cse.unsw.edu.au>**20101118212839
434 Ignore-this: db45721d29a694e53746f8b76513efa4
435]
436[Move the superclass generation to the canonicaliser
437simonpj@microsoft.com**20101118120533
438 Ignore-this: 5e0e525402a240b709f2b8104c1682b2
439 
440 Doing superclass generation in the canonicaliser (rather than
441 TcInteract) uses less code, and is generally more efficient.
442 
443 See Note [Adding superclasses] in TcCanonical.
444 
445 Fixes Trac #4497.
446]
447[Fix the generation of in-scope variables for IfaceLint check
448simonpj@microsoft.com**20101118090057
449 Ignore-this: bbcdba61ddf89d07fe69ca99c2017e3f
450]
451[Comments only
452simonpj@microsoft.com**20101118090034
453 Ignore-this: fa2936d35a0f7be4e4535ea9e2b7bf7b
454]
455[Omit bogus test for -XDeriveFunctor
456simonpj@microsoft.com**20101118090028
457 Ignore-this: a534243011809ebbb788b910961601c5
458 
459 It was duplicated in the case of 'deriving( Functor )'
460 and wrong for 'deriving( Foldable )'
461]
462[Improve error message on advice from a user
463simonpj@microsoft.com**20101118085306
464 Ignore-this: bd4f3858ff24e602e985288f27d536f3
465 
466 See Trac #4499
467]
468[TAG 2010-11-18
469Ian Lynagh <igloo@earth.li>**20101118011554
470 Ignore-this: ccadbe7fadd1148d2ee3caa8c8821ec5
471]
472Patch bundle hash:
4730b3429057d0cb0bebe3930539e46083b7bac6e7f