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
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 void free(code_block* compiled);
42 void set_safepoint_guard(bool locked);
43 void verify_all_blocks_set();
44 void initialize_all_blocks_set();
48 code_block* code_block_for_address(cell address);
49 cell frame_predecessor(cell frame_top);
51 bool safepoint_p(cell addr) {
52 cell page_mask = ~(getpagesize() - 1);
53 return (addr & page_mask) == safepoint_page;