Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion clang/hvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,18 @@ typedef struct {
// Capacities
// ==========

#define HEAP_CAP (1ULL << 38)
#ifndef HEAP_CAP_BITS
#define HEAP_CAP_BITS 38
#endif
#if HEAP_CAP_BITS > VAL_BITS
#error "HEAP_CAP_BITS must be <= VAL_BITS (heap addresses must fit in term VAL field)"
#endif
#define HEAP_CAP (1ULL << HEAP_CAP_BITS)
#define BOOK_CAP (1ULL << 24)
#define WNF_CAP (1ULL << 32)
#ifndef MAX_THREADS
#define MAX_THREADS 64
#endif

// Thread Globals
// ==============
Expand Down