Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Fix Bdescr Cmm macro #466

Merged
merged 1 commit into from
Mar 27, 2020
Merged

Fix Bdescr Cmm macro #466

merged 1 commit into from
Mar 27, 2020

Conversation

acondolu
Copy link
Contributor

@acondolu acondolu commented Feb 28, 2020

This PR fixes the Cmm macro Bdescr which computes the address of the block descriptor given a block address. Its definition is different from GHC's one (due to the different usage of blocks/mblocks) and follows closely the definition in the RTS (GC.bdescr).
In order implement Bdescr, it was necessary to port also the C macros FIRST_BDESCR, BLOCK_ROUND_UP, FIRST_BLOCK_OFF to the Cmm world.

@acondolu acondolu force-pushed the wip-bdescr branch 5 times, most recently from 8a7abd3 to 5539e8c Compare March 4, 2020 09:50
@acondolu acondolu changed the title Fix a couple of Cmm macros Fix Bdescr Cmm macro Mar 4, 2020
@acondolu acondolu force-pushed the wip-bdescr branch 2 times, most recently from 720362c to a573eb9 Compare March 5, 2020 09:04
@acondolu acondolu mentioned this pull request Mar 9, 2020
4 tasks
@acondolu acondolu requested a review from TerrorJack March 12, 2020 15:13
@TerrorJack TerrorJack merged commit 8476b09 into master Mar 27, 2020
@TerrorJack TerrorJack deleted the wip-bdescr branch March 27, 2020 22:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants