Tasklets were an old mono-specific extension for continuations that is no longer relevant.
DECL_OFFSET(MonoGSharedVtMethodRuntimeInfo, locals_size)
DECL_OFFSET(MonoGSharedVtMethodRuntimeInfo, entries) //XXX more to fix here
+#if !defined(ENABLE_NETCORE)
DECL_OFFSET(MonoContinuation, stack_used_size)
DECL_OFFSET(MonoContinuation, saved_stack)
DECL_OFFSET(MonoContinuation, return_sp)
DECL_OFFSET(MonoContinuation, lmf)
DECL_OFFSET(MonoContinuation, return_ip)
+#endif
DECL_OFFSET(MonoDelegateTrampInfo, method)
DECL_OFFSET(MonoDelegateTrampInfo, invoke_impl)
}
#endif /* MONO_ARCH_HAVE_UNWIND_TABLE */
-#if MONO_SUPPORT_TASKLETS && !defined(DISABLE_JIT)
+#if MONO_SUPPORT_TASKLETS && !defined(DISABLE_JIT) && !defined(ENABLE_NETCORE)
MonoContinuationRestore
mono_tasklets_arch_restore (void)
{
saved = start;
return (MonoContinuationRestore)saved;
}
-#endif /* MONO_SUPPORT_TASKLETS && !defined(DISABLE_JIT) */
+#endif /* MONO_SUPPORT_TASKLETS && !defined(DISABLE_JIT) && !defined(ENABLE_NETCORE) */
/*
* mono_arch_setup_resume_sighandler_ctx:
MONO_CONTEXT_SET_IP (ctx, func);
}
-#if !MONO_SUPPORT_TASKLETS || defined(DISABLE_JIT)
+#if (!MONO_SUPPORT_TASKLETS || defined(DISABLE_JIT)) && !defined(ENABLE_NETCORE)
MonoContinuationRestore
mono_tasklets_arch_restore (void)
{
g_assert_not_reached ();
return NULL;
}
-#endif /* !MONO_SUPPORT_TASKLETS || defined(DISABLE_JIT) */
+#endif /* (!MONO_SUPPORT_TASKLETS || defined(DISABLE_JIT)) && !defined(ENABLE_NETCORE) */
void
mono_arch_undo_ip_adjustment (MonoContext *ctx)
#endif
}
-#if MONO_SUPPORT_TASKLETS
+#if MONO_SUPPORT_TASKLETS && !defined(ENABLE_NETCORE)
MonoContinuationRestore
mono_tasklets_arch_restore (void)
{
mono_simd_intrinsics_init ();
#endif
+#ifndef ENABLE_NETCORE
mono_tasklets_init ();
+#endif
register_trampolines (domain);
#include "mono/metadata/loader-internals.h"
#include "mono/utils/mono-tls-inline.h"
+#if !defined(ENABLE_NETCORE)
#if defined(MONO_SUPPORT_TASKLETS)
#include "mono/metadata/loader-internals.h"
mono_add_internal_call_internal ("Mono.Tasklets.Continuation::restore", continuation_restore);
}
-#endif
+#endif /* MONO_SUPPORT_TASKLETS */
+
+#endif /* ENABLE_NETCORE */
#include "mini.h"
+#if !defined(ENABLE_NETCORE)
typedef struct {
MonoLMF *lmf;
gpointer top_sp;
MonoContinuationRestore mono_tasklets_arch_restore (void);
+#endif /* ENABLE_NETCORE */
+
#endif /* __MONO_TASKLETS_H__ */