Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Remove lifetime_init
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel committed Jun 17, 2022
1 parent eb95406 commit f28c1c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/rt/dmain2.d
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ extern (C) void gc_init();
extern (C) void gc_term();
extern (C) void thread_init() @nogc nothrow;
extern (C) void thread_term() @nogc nothrow;
extern (C) void lifetime_init();
extern (C) void rt_moduleCtor();
extern (C) void rt_moduleTlsCtor();
extern (C) void rt_moduleDtor();
Expand Down Expand Up @@ -131,7 +130,6 @@ extern (C) int rt_init()
thread_init();
// TODO: fixme - calls GC.addRange -> Initializes GC
initStaticDataGC();
lifetime_init();
rt_moduleCtor();
rt_moduleTlsCtor();
return 1;
Expand Down
6 changes: 4 additions & 2 deletions src/rt/lifetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ private
}
}

extern (C) void lifetime_init()
// Now-removed symbol, kept around for ABI
// Some programs are dynamically linked, so best to err on the side of keeping symbols around for a while (especially extern(C) ones)
// https://github.com/dlang/druntime/pull/3361
deprecated extern (C) void lifetime_init()
{
// this is run before static ctors, so it is safe to modify immutables
}

/**
Expand Down

0 comments on commit f28c1c8

Please sign in to comment.