File tree 2 files changed +3
-5
lines changed
druntime/src/core/thread/fiber
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ package
27
27
import core.exception : onOutOfMemoryError;
28
28
import core.stdc.stdlib : abort;
29
29
30
- extern (C ) void fiber_entryPoint() nothrow
30
+ extern (C ) noreturn fiber_entryPoint() nothrow
31
31
{
32
32
FiberBase obj = FiberBase.getThis();
33
33
assert ( obj );
@@ -51,6 +51,8 @@ package
51
51
52
52
obj.m_state = Fiber .State.TERM ;
53
53
obj.switchOut();
54
+
55
+ assert (false , " It is impossible to return from switchOut" );
54
56
}
55
57
}
56
58
@@ -173,8 +175,6 @@ package
173
175
*
174
176
* The ARM implementation is meant to be used as a kind of documented example implementation.
175
177
* Look there for a concrete example.
176
- *
177
- * FIXME: fiber_entrypoint might benefit from a @noreturn attribute, but D doesn't have one.
178
178
*/
179
179
180
180
/**
Original file line number Diff line number Diff line change @@ -497,8 +497,6 @@ package
497
497
*
498
498
* The ARM implementation is meant to be used as a kind of documented example implementation.
499
499
* Look there for a concrete example.
500
- *
501
- * FIXME: fiber_entrypoint might benefit from a @noreturn attribute, but D doesn't have one.
502
500
*/
503
501
504
502
/**
You can’t perform that action at this time.
0 commit comments