Skip to content

Commit f28c1c8

Browse files
committed
Remove lifetime_init
1 parent eb95406 commit f28c1c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rt/dmain2.d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ extern (C) void gc_init();
6767
extern (C) void gc_term();
6868
extern (C) void thread_init() @nogc nothrow;
6969
extern (C) void thread_term() @nogc nothrow;
70-
extern (C) void lifetime_init();
7170
extern (C) void rt_moduleCtor();
7271
extern (C) void rt_moduleTlsCtor();
7372
extern (C) void rt_moduleDtor();
@@ -131,7 +130,6 @@ extern (C) int rt_init()
131130
thread_init();
132131
// TODO: fixme - calls GC.addRange -> Initializes GC
133132
initStaticDataGC();
134-
lifetime_init();
135133
rt_moduleCtor();
136134
rt_moduleTlsCtor();
137135
return 1;

src/rt/lifetime.d

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ private
4040
}
4141
}
4242

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

4850
/**

0 commit comments

Comments
 (0)