[D-runtime] [D-Programming-Language/druntime] a29efb: Allow configuration of the signals used for GC

GitHub via D-runtime d-runtime at puremagic.com
Fri Sep 19 03:07:12 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/druntime
  Commit: a29efb72f9c1f3bcdb98651bf1928fae4d69da41
      https://github.com/D-Programming-Language/druntime/commit/a29efb72f9c1f3bcdb98651bf1928fae4d69da41
  Author: Logan Capaldo <logancapaldo at gmail.com>
  Date:   2014-07-13 (Sun, 13 Jul 2014)

  Changed paths:
    M src/core/thread.d

  Log Message:
  -----------
  Allow configuration of the signals used for GC

On Posix systems druntime's GC uses SIGUSR1 and SIGUSR2 to implement
suspension of threads for its garbage collector. When integrating D into
existing programs written in other languages such as C or C++,
SIGUSR1/SIGUSR2 may already have an existing meaning. This allows those
programs to use currently unused signals for D's GC, most likely some of
the POSIX real time signals where availble.

This is acheived by calling thread_setGCSignals prior to thread_init, at
most once. If it is not called the runtime will continue to use SIGUSR1
and SIGUSR2. The functionality leaves the choice of signals up to the
caller, it does not assume any particular real time signal or that real
time signals are available.


  Commit: 95cedb9ff92650d4c5543b5d7bddceec2a2ca3aa
      https://github.com/D-Programming-Language/druntime/commit/95cedb9ff92650d4c5543b5d7bddceec2a2ca3aa
  Author: Logan Capaldo <logancapaldo at gmail.com>
  Date:   2014-07-13 (Sun, 13 Jul 2014)

  Changed paths:
    M src/core/thread.d

  Log Message:
  -----------
  Fix identation


  Commit: 0665322ed53fba5232f1d364fe4d060fc950bb46
      https://github.com/D-Programming-Language/druntime/commit/0665322ed53fba5232f1d364fe4d060fc950bb46
  Author: Logan Capaldo <logancapaldo at gmail.com>
  Date:   2014-09-18 (Thu, 18 Sep 2014)

  Changed paths:
    M src/core/thread.d

  Log Message:
  -----------
  Improve documentation of thread_setGCSignals.

Fix some typos, and ensure that the documentation is available when
generating docs on any system, while also clarifying it is Posix-only.


  Commit: dbf3ff2a98208b21ee2d820df2c526af75ace863
      https://github.com/D-Programming-Language/druntime/commit/dbf3ff2a98208b21ee2d820df2c526af75ace863
  Author: David Nadlinger <code at klickverbot.at>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M src/core/thread.d

  Log Message:
  -----------
  Merge pull request #888 from lcapaldo/configurable_signals

Allow configuration of the signals used for GC


Compare: https://github.com/D-Programming-Language/druntime/compare/a56977ca99d4...dbf3ff2a9820


More information about the D-runtime mailing list