Descriptionruntime: correct seh installation during callbacks
Every time we enter callback from Windows, it is
possible that go exception handler is not at the top
of per-thread exception handlers chain. So it needs
to be installed again. At this moment this is done
by replacing top SEH frame with SEH frame as at time
of syscall for the time of callback. This is incorrect,
because, if exception strike, we won't be able to call
any exception handlers installed inside syscall,
because they are not in the chain. This changes
procedure to add new SEH frame on top of existing
chain instead.
I also removed m sehframe field, because I don't
think it is needed. We use single global exception
handler everywhere.
Patch Set 1 #Patch Set 2 : diff -r 40194af9cb12 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 40194af9cb12 https://go.googlecode.com/hg/ #
Total comments: 4
Patch Set 4 : diff -r a4abbe9321b0 https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|