I think read will now read integers and symbols, but it's untested.

Everything compiles.
This commit is contained in:
Simon Brooke 2026-04-01 16:06:16 +01:00
parent cc8e96eda4
commit 9eb0d3c5a0
28 changed files with 594 additions and 293 deletions

View file

@ -17,6 +17,7 @@
#include "memory/memory.h"
#include "memory/node.h"
#include "memory/page.h"
#include "memory/pso.h"
#include "memory/pso2.h"
#include "memory/pso3.h"
#include "memory/pso4.h"
@ -124,6 +125,12 @@ struct pso_pointer allocate_page( uint8_t size_class ) {
L"Initialised page %d; freelist for size class %x updated.\n",
npages_allocated, size_class );
if (npages_allocated == 0) {
// first page allocated; initialise nil and t
nil = lock_object( allocate(NILTAG, 2));
t = lock_object( allocate(TRUETAG, 2));
}
npages_allocated++;
} else {
// TODO: exception when we have one.