summaryrefslogtreecommitdiff
path: root/libgo/runtime/proc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-06-03 23:02:43 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-06-03 23:02:43 +0000
commita920eb0cb08da30f4d7d4345f42067fdf8ce7b9b (patch)
tree2c48ef25fbdf64d208fc06549ae1c878dda60f07 /libgo/runtime/proc.c
parentfbd4b7f39ee26f1258aff5b86ad0fba06f3edd5e (diff)
runtime: remove unnecessary functions calling between C and Go
These functions were needed during the transition of the runtime from C to Go, but are no longer necessary. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/179879 From-SVN: r271890
Diffstat (limited to 'libgo/runtime/proc.c')
-rw-r--r--libgo/runtime/proc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 5ef421f8624..26125ccf161 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -378,8 +378,6 @@ runtime_mcall(FuncVal *fv)
extern G* allocg(void)
__asm__ (GOSYM_PREFIX "runtime.allocg");
-Sched* runtime_sched;
-
bool runtime_isarchive;
extern void kickoff(void)
@@ -888,11 +886,3 @@ resetNewG(G *newg, void **sp, uintptr *spsize)
newg->gcnextsp2 = (uintptr)(newg->gcinitialsp2);
#endif
}
-
-// Return whether we are waiting for a GC. This gc toolchain uses
-// preemption instead.
-bool
-runtime_gcwaiting(void)
-{
- return runtime_sched->gcwaiting;
-}