Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[llvm] Add a wrapper around the GC poll icall so it can be ca…
…lled with a cold calling convention." This reverts commit ad86022. The commit was part of 870aec4 ( mono#16191 ). It breaks `block_guard_restore_aligment_on_exit.exe` on Linux/AMD64 FullAOT+LLVM. ``` (lldb) p obj->vtable->klass->name (const char *) $6 = 0x00007ffff431952a "ThreadAbortException" (lldb) bt * thread mono#4, name = 'mono-sgen', stop reason = step over * frame #0: 0x000055555587dfc8 mono-sgen`mono_handle_exception_internal(ctx=0x00007ffff2f89330, obj=0x00007ffff5c077f8, resume=0, out_ji=0x0000000000000000) at mini-exceptions.c:2485 frame #1: 0x000055555587fbf1 mono-sgen`mono_handle_exception(ctx=0x00007ffff2f89330, void_obj=0x00007ffff5c077f8) at mini-exceptions.c:3034 frame #2: 0x0000555555945ed6 mono-sgen`mono_amd64_throw_exception(dummy1=140737316419576, dummy2=140737269765200, dummy3=140737018598112, dummy4=0, dummy5=0, dummy6=0, mctx=0x00007ffff2f894f0, exc=0x00007ffff5c077f8, rethrow=1, preserve_ips=1) at exceptions-amd64.c:403 frame mono#3: 0x00007ffff3ad091d mscorlib.dll.so`rethrow_preserve_exception + 173 frame mono#4: 0x00007ffff2f8b648 block_guard_restore_aligment_on_exit.exe.so`icall_cold_wrapper_263 + 136 frame mono#5: 0x00007ffff2f8bc3d block_guard_restore_aligment_on_exit.exe.so`Driver_InnerFunc + 141 frame mono#6: 0x00007ffff2f8bd20 block_guard_restore_aligment_on_exit.exe.so`Driver_Func + 32 frame mono#7: 0x00007ffff344c6d8 mscorlib.dll.so`System_Threading_ThreadHelper_ThreadStart_Context_object + 168 frame mono#8: 0x00007ffff344a5c3 mscorlib.dll.so`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 35 frame mono#9: 0x00007ffff344a555 mscorlib.dll.so`System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object + 53 frame mono#10: 0x00007ffff344c7e8 mscorlib.dll.so`System_Threading_ThreadHelper_ThreadStart + 56 frame mono#11: 0x00007ffff3ab2d92 mscorlib.dll.so`wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 290 frame mono#12: 0x000055555582e3ae mono-sgen`mono_jit_runtime_invoke(method=0x0000555557626f58, obj=0x00007ffff5c00630, params=0x00007ffff2f89df8, exc=0x00007ffff2f89ae0, error=0x00007ffff2f89e00) at mini-runtime.c:3152 frame mono#13: 0x0000555555bb0da2 mono-sgen`do_runtime_invoke(method=0x0000555557626f58, obj=0x00007ffff5c00630, params=0x00007ffff2f89df8, exc=0x0000000000000000, error=0x00007ffff2f89e00) at object.c:3017 frame mono#14: 0x0000555555bb1155 mono-sgen`mono_runtime_invoke_checked(method=0x0000555557626f58, obj=0x00007ffff5c00630, params=0x00007ffff2f89df8, error=0x00007ffff2f89e00) at object.c:3185 frame mono#15: 0x0000555555bb3572 mono-sgen`mono_runtime_delegate_try_invoke(delegate=0x00007ffff5c00630, params=0x00007ffff2f89df8, exc=0x0000000000000000, error=0x00007ffff2f89e00) at object.c:4386 frame mono#16: 0x0000555555bb3698 mono-sgen`mono_runtime_delegate_invoke_checked(delegate=0x00007ffff5c00630, params=0x00007ffff2f89df8, error=0x00007ffff2f89e00) at object.c:4417 frame mono#17: 0x0000555555bd61be mono-sgen`start_wrapper_internal(start_info=0x0000000000000000, stack_ptr=0x00007ffff2f8b000) at threads.c:1242 frame mono#18: 0x0000555555bd6334 mono-sgen`start_wrapper(data=0x000055555762ab80) at threads.c:1295 frame mono#19: 0x00007ffff736a6db libpthread.so.0`start_thread + 219 frame mono#20: 0x00007ffff675488f libc.so.6`__GI___clone at clone.S:95 ``` EH doesn't know how to unwind `icall_cold_wrapper_263`. Solution isn't obvious so let's revert it for now.
- Loading branch information