TEXT   60
arena serves two purposes
Guest on 7th February 2023 01:51:22 PM

  1. The arena serves two purposes. It is a structure that is
  2. the top-level state of the MPS, and as such contains a lot of fields
  3. which are considered "global". And it provides raw memory to pools.
  5. An arena belongs to a particular arena class. The class is selected
  6. when the arena is created. Classes encapsulate both policy (such as
  7. how pool placement preferences map into actual placement) and
  8. mechanism (such as where the memory originates: operating system
  9. virtual memory, client provided, or via malloc). Some behaviour
  10. (mostly serving the "top-level datastructure" purpose) is implemented
  11. by generic arena code, and some by arena class code.

Raw Paste

Login or Register to edit or fork this paste. It's free.