[D-runtime] [D-Programming-Language/druntime] b95be7: make rt_init/rt_term callable from C

GitHub noreply at github.com
Wed Oct 30 00:13:08 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/druntime
  Commit: b95be7e55e57a4ff065f1dc5f3362fc476d85f4d
      https://github.com/D-Programming-Language/druntime/commit/b95be7e55e57a4ff065f1dc5f3362fc476d85f4d
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-10-29 (Tue, 29 Oct 2013)

  Changed paths:
    M src/core/runtime.d
    M src/rt/dmain2.d

  Log Message:
  -----------
  make rt_init/rt_term callable from C

- deprecate the ExceptionHandler in Runtime.initialize/terminate

- declare/document rt_init/rt_term in core.runtime


  Commit: cd42380a568c41c2b9bd2e1d14c39c4fdc8c859e
      https://github.com/D-Programming-Language/druntime/commit/cd42380a568c41c2b9bd2e1d14c39c4fdc8c859e
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-10-29 (Tue, 29 Oct 2013)

  Changed paths:
    M src/core/runtime.d
    M src/rt/dmain2.d

  Log Message:
  -----------
  keep track about how often rt_init/rt_term were called

- This is necessary because a C program might
  initialize multiple D libraries, of which
  each has to call rt_init/rt_term in their own
  init/term functions.


  Commit: dc559c3ef2916102c6f295d70c3941644e545bf2
      https://github.com/D-Programming-Language/druntime/commit/dc559c3ef2916102c6f295d70c3941644e545bf2
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-10-29 (Tue, 29 Oct 2013)

  Changed paths:
    M src/rt/dmain2.d
    M src/rt/sections_linux.d
    M test/shared/src/host.c
    M test/shared/src/lib.d
    M test/shared/src/linkD.c
    M test/shared/src/linkDR.c
    M test/shared/src/loadDR.c
    M test/shared/src/plugin.d

  Log Message:
  -----------
  make runtime initialization/finalization explicit

- fix Issue 11378 - implicit runtime initialization/finalization
  is broken

- C programs need to call rt_init in order
  to initialize the runtime and all shared
  libraries.

- After rt_init was called shared libraries are
  initialized on loading and finalized on unloading.

- C programs need to call rt_term in order
  to finalize the runtime and all shared
  libraries.


  Commit: b73e2c4554db5bb67ceb51adb053e715b2a090b5
      https://github.com/D-Programming-Language/druntime/commit/b73e2c4554db5bb67ceb51adb053e715b2a090b5
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-10-29 (Tue, 29 Oct 2013)

  Changed paths:
    M posix.mak
    M src/core/runtime.d
    M src/rt/dmain2.d
    A test/init_fini/Makefile
    A test/init_fini/src/thread_join.d
    M test/shared/Makefile

  Log Message:
  -----------
  fix Issue 11309 - std.concurrency: OwnerTerminated message doesn't work

- add regression test
- Revert "fix Issue 10976 - thread_joinAll after main exit performed too late"

This reverts commit 7d82a57c82f9a5359468680f36aa1026243e6f9e.

Conflicts:
	src/core/runtime.d
	src/rt/dmain2.d


  Commit: d3c89cf1894aefa884303344a18436841eae0744
      https://github.com/D-Programming-Language/druntime/commit/d3c89cf1894aefa884303344a18436841eae0744
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-10-29 (Tue, 29 Oct 2013)

  Changed paths:
    M test/init_fini/Makefile
    A test/init_fini/src/runtime_args.d

  Log Message:
  -----------
  fix Issue 11149 - Runtime.args no longer available in static constructor

- This got fixed by reverting the order of initialization.
- Add unittest


  Commit: 9ab0b70dc957f6f40cf9683888fe1e779b110e49
      https://github.com/D-Programming-Language/druntime/commit/9ab0b70dc957f6f40cf9683888fe1e779b110e49
  Author: Walter Bright <walter at walterbright.com>
  Date:   2013-10-30 (Wed, 30 Oct 2013)

  Changed paths:
    M posix.mak
    M src/core/runtime.d
    M src/rt/dmain2.d
    M src/rt/sections_linux.d
    A test/init_fini/Makefile
    A test/init_fini/src/runtime_args.d
    A test/init_fini/src/thread_join.d
    M test/shared/Makefile
    M test/shared/src/host.c
    M test/shared/src/lib.d
    M test/shared/src/linkD.c
    M test/shared/src/linkDR.c
    M test/shared/src/loadDR.c
    M test/shared/src/plugin.d

  Log Message:
  -----------
  Merge pull request #649 from dawgfoto/fix11378

fix Issue 11378 - implicit runtime initialization/finalization is broken


Compare: https://github.com/D-Programming-Language/druntime/compare/191b6e4b80f6...9ab0b70dc957


More information about the D-runtime mailing list