#endif
}
-/* Allocate a code heap during startup */
-void factor_vm::init_code_heap(cell size) { code = new code_heap(size); }
-
/* Update pointers to words referenced from all code blocks.
Only needed after redefining an existing word.
If generic words were redefined, inline caches need to be reset. */
if (h->code_size > p->code_size)
fatal_error("Code heap too small to fit image", h->code_size);
- init_code_heap(p->code_size);
+ code = new code_heap(p->code_size);
if (h->code_size != 0) {
size_t bytes_read =
code->allocator->iterate(iter);
}
- void init_code_heap(cell size);
void update_code_heap_words(bool reset_inline_caches);
void initialize_code_blocks();
void primitive_modify_code_heap();