Skip to content

Commit

Permalink
README.md hard-wrapped at 80 chars
Browse files Browse the repository at this point in the history
From [review feedback from
Laurie](capablevms#88 (comment)); thanks!
  • Loading branch information
probablytom committed Nov 7, 2023
1 parent 6165f93 commit 9c09bab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions example_allocators/compartment_alloc/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Compartmentalising Allocator

A modification of the "bump allocator" in this repo.
This allocator creates compartments on the heap, and returns capabilities
to allocations within the compartment.
A modification of the "bump allocator" in this repo. This allocator creates
compartments on the heap, and returns capabilities to allocations within the
compartment.

Because allocations are made against a compartment's (previously `mmap`'d)
buffer, we need to identify the compartment being used when we call `malloc`.
`init_compartment` returns a capability used to identify the compartment it
`init_compartment` returns a capability used to identify the compartment it
creates; calls to `malloc_compartment` accept this identifier as a parameter.

`main.c` shows a simple use, with allocations against two different
compartments.

Example is run using `make` in the typical fashion for the repo
(i.e. along the lines of `make -f Makefile.morello-hybrid run-main`).
Example is run using `make` in the typical fashion for the repo (i.e. along the
lines of `make -f Makefile.morello-hybrid run-main`).

0 comments on commit 9c09bab

Please sign in to comment.