... | @@ -151,7 +151,7 @@ Objects fall into two categories: |
... | @@ -151,7 +151,7 @@ Objects fall into two categories: |
|
scattered through the object code, and only the linker knows where.
|
|
scattered through the object code, and only the linker knows where.
|
|
|
|
|
|
|
|
|
|
To find out whether a particular object is dynamic or static, use the `HEAP_ALLOCED()` macro, from [rts/MBlock.h](/trac/ghc/browser/ghc/rts/MBlock.h).
|
|
To find out whether a particular object is dynamic or static, use the `HEAP_ALLOCED()` macro, from [rts/MBlock.h](/trac/ghc/browser/ghc/rts/MBlock.h). This macro works by consulting a bitmap (or structured bitmap) that tells for each [megablock](commentary/rts/storage#structure-of-blocks) of memory whether it is part of the dynamic heap or not.
|
|
|
|
|
|
### Dynamic objects
|
|
### Dynamic objects
|
|
|
|
|
... | | ... | |