From 01de71981b45d59c059864cd3b071b6e6449a167 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 25 Sep 2019 09:15:53 -0600 Subject: [PATCH] unsafe-poller: remove overly-conservative false positives Trying to be more helpful about the thread running an `unsafe-poller` callback gets in the way of making the process sleep when multiple threads are blocked on unsafe pollers. Closes #2833 --- racket/src/racket/src/struct.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/racket/src/racket/src/struct.c b/racket/src/racket/src/struct.c index d75f84dbd7..14ae50d51b 100644 --- a/racket/src/racket/src/struct.c +++ b/racket/src/racket/src/struct.c @@ -1565,11 +1565,6 @@ static int evt_struct_is_ready(Scheme_Object *o, Scheme_Schedule_Info *sinfo) { Scheme_Object *v; - if (sinfo->false_positive_ok) { - sinfo->potentially_false_positive = 1; - return 1; - } - v = scheme_struct_type_property_ref(evt_property, o); if (!v) { @@ -3857,12 +3852,6 @@ static int chaperone_evt_is_ready(Scheme_Object *obj, Scheme_Schedule_Info *sinf Scheme_Chaperone *px; int redirected = 0; - if (sinfo->false_positive_ok) { - /* Safer, though maybe unnecessarily conservative: */ - sinfo->potentially_false_positive = 1; - return 1; - } - while (SCHEME_CHAPERONEP(o)) { px = (Scheme_Chaperone *)o; if (SAME_TYPE(SCHEME_TYPE(px->redirects), scheme_nack_guard_evt_type)) {