From 4e22826716dc0d3b4ab8bdd538c569a280cd8083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Mon, 22 Apr 2019 09:58:56 +0300 Subject: Minor RTS refactoring: - Remove redundant casting in evacuate_static_object - Remove redundant parens in STATIC_LINK - Fix a typo in GC.c --- rts/sm/Evac.c | 2 +- rts/sm/GC.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'rts/sm') diff --git a/rts/sm/Evac.c b/rts/sm/Evac.c index b4050512a6..2a2a26ec09 100644 --- a/rts/sm/Evac.c +++ b/rts/sm/Evac.c @@ -333,7 +333,7 @@ evacuate_static_object (StgClosure **link_field, StgClosure *q) StgWord link = (StgWord)*link_field; // See Note [STATIC_LINK fields] for how the link field bits work - if ((((StgWord)(link)&STATIC_BITS) | prev_static_flag) != 3) { + if (((link & STATIC_BITS) | prev_static_flag) != 3) { StgWord new_list_head = (StgWord)q | static_flag; #if !defined(THREADED_RTS) *link_field = gct->static_objects; diff --git a/rts/sm/GC.c b/rts/sm/GC.c index 5aa2d1bc85..4bf540a4a7 100644 --- a/rts/sm/GC.c +++ b/rts/sm/GC.c @@ -281,7 +281,7 @@ GarbageCollect (uint32_t collect_gen, // lose locality by moving cached data into another CPU's cache // (this effect can be quite significant). // - // We could have a more complex way to deterimine whether to do + // We could have a more complex way to determine whether to do // work stealing or not, e.g. it might be a good idea to do it // if the heap is big. For now, we just turn it on or off with // a flag. -- cgit v1.2.1