diff options
| author | Ben Gamari <ben@smart-cactus.org> | 2023-01-27 12:03:49 -0500 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2023-04-12 07:56:29 -0400 |
| commit | 67c752d1a906bfcc60e1428abb80204adfa72708 (patch) | |
| tree | 8377f569d3ac2bf20c9f57b403c9a9b791e25777 | |
| parent | 85a9026cd1f80ae1b3658256ecad56f808b25a7d (diff) | |
| download | haskell-67c752d1a906bfcc60e1428abb80204adfa72708.tar.gz | |
nonmoving: Don't call prepareUnloadCheck
When the nonmoving GC is in use we do not call `checkUnload` (since we
don't unload code) and therefore should not call `prepareUnloadCheck`,
lest we run into assertions.
(cherry picked from commit b284e1c1d1e8e2513a286e3bbc5f46d635b33dd8)
| -rw-r--r-- | rts/sm/GC.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/sm/GC.c b/rts/sm/GC.c index 826765fd32..4405de99dc 100644 --- a/rts/sm/GC.c +++ b/rts/sm/GC.c @@ -375,7 +375,8 @@ GarbageCollect (uint32_t collect_gen, static_flag == STATIC_FLAG_A ? STATIC_FLAG_B : STATIC_FLAG_A; } - if (major_gc) { + /* N.B. We currently don't unload code with the non-moving collector. */ + if (major_gc && !RtsFlags.GcFlags.useNonmoving) { unload_mark_needed = prepareUnloadCheck(); } else { unload_mark_needed = false; |
