Skip to contentSkip to conversation

w32: Fix regression caused by new g_poll implementation

PATCH Peter Maydell 2 participants 3 messages Jun 19, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Peter Maydell

author Reviewed-by
#1 lore raw
Quoted 11 lines · Stefan Weil

Commit 5a007547df76446ab891df93ebc55749716609bf tried to fix a performance degradation caused by bad handling of small timeouts in the original implementation of g_poll.

Since that commit, hard disk I/O no longer works.

Instead of rewriting the g_poll implementation, this patch simply copies the original code (released under LGPL) from latest glib and only modifies it where needed (see comments in the code). URL of the original code:
https://git.gnome.org/browse/glib/tree/glib/gpoll.c

Quoted 6 lines

---

v2: Adjust top-of-file comment to indicate which parts of the code use
a different license (LGPL2+ is incompatible with the original license used for util/oslib-win32.c).

Oops, I'd forgotten about this (until I needed to do something with the Windows build ;-)). Are you planning a pullreq for it or do you want me to just apply it directly?

thanks
-- PMM

#2 lore raw

Am 19.06.2014 10:55, schrieb Peter Maydell:

Quoted 19 lines · Stefan Weil
Quoted 11 lines

Commit 5a007547df76446ab891df93ebc55749716609bf tried to fix a performance degradation caused by bad handling of small timeouts in the original implementation of g_poll.

Since that commit, hard disk I/O no longer works.

Instead of rewriting the g_poll implementation, this patch simply copies the original code (released under LGPL) from latest glib and only modifies it where needed (see comments in the code). URL of the original code:
https://git.gnome.org/browse/glib/tree/glib/gpoll.c

Quoted 6 lines

---

v2: Adjust top-of-file comment to indicate which parts of the code use
a different license (LGPL2+ is incompatible with the original license used for util/oslib-win32.c).

Quoted 8 lines

Oops, I'd forgotten about this (until I needed to do something with the Windows build ;-)). Are you planning a pullreq for it or do you want me to just apply it directly?

thanks
-- PMM

Please apply it directly.

Thanks,
Stefan

author Applied
#3 lore raw
Quoted 6 lines · Stefan Weil

Am 19.06.2014 10:55, schrieb Peter Maydell:

Quoted 3 lines

Oops, I'd forgotten about this (until I needed to do something with the Windows build ;-)). Are you planning a pullreq for it or do you want me to just apply it directly?

Please apply it directly.

Applied, thanks.

-- PMM