3 #if defined(WINDOWS) && defined(FACTOR_64)
4 const cell seh_area_size = 1024;
6 const cell seh_area_size = 0;
10 /* The actual memory area */
13 /* Memory area reserved for safepoint guard page */
16 /* Memory area reserved for SEH. Only used on Windows */
19 /* Memory allocator */
20 free_list_allocator<code_block>* allocator;
22 std::set<cell> all_blocks;
24 /* Keys are blocks which need to be initialized by initialize_code_block().
25 Values are literal tables. Literal table arrays are GC roots until the
26 time the block is initialized, after which point they are discarded. */
27 std::map<code_block*, cell> uninitialized_blocks;
29 /* Code blocks which may reference objects in the nursery */
30 std::set<code_block*> points_to_nursery;
32 /* Code blocks which may reference objects in aging space or the nursery */
33 std::set<code_block*> points_to_aging;
35 explicit code_heap(cell size);
37 void write_barrier(code_block* compiled);
38 void clear_remembered_set();
39 bool uninitialized_p(code_block* compiled);
40 bool marked_p(code_block* compiled);
41 void set_marked_p(code_block* compiled);
42 void clear_mark_bits();
43 void free(code_block* compiled);
45 void guard_safepoint();
46 void unguard_safepoint();
47 void verify_all_blocks_set();
48 void initialize_all_blocks_set();
52 code_block* code_block_for_address(cell address);
54 bool safepoint_p(cell addr) {
55 cell page_mask = ~(getpagesize() - 1);
56 return (addr & page_mask) == (cell) safepoint_page;
60 struct code_heap_room {
65 cell free_block_count;