[D-runtime] [D-Programming-Language/druntime] 619373: add explicit thread_term call to replace atexit

GitHub noreply at github.com
Sun Sep 1 01:43:42 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/druntime
  Commit: 619373bbb9cbc700fb8469f92fa5779c836be007
      https://github.com/D-Programming-Language/druntime/commit/619373bbb9cbc700fb8469f92fa5779c836be007
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-08-26 (Mon, 26 Aug 2013)

  Changed paths:
    M src/core/thread.d
    M src/core/thread.di
    M src/gc/proxy.d

  Log Message:
  -----------
  add explicit thread_term call to replace atexit

- When calling rt_init/rt_term from ELF's .ctors/.dtors section
  atexit runs before rt_term, which causes a crash because the
  thread locks are already destroyed.


  Commit: fa39a3252912da4456ce8f8f76f2887370464675
      https://github.com/D-Programming-Language/druntime/commit/fa39a3252912da4456ce8f8f76f2887370464675
  Author: Walter Bright <walter at walterbright.com>
  Date:   2013-09-01 (Sun, 01 Sep 2013)

  Changed paths:
    M src/core/thread.d
    M src/core/thread.di
    M src/gc/proxy.d

  Log Message:
  -----------
  Merge pull request #589 from dawgfoto/threadTermLocks

add explicit thread_term call to replace atexit


Compare: https://github.com/D-Programming-Language/druntime/compare/7ad4524db2e8...fa39a3252912


More information about the D-runtime mailing list