equal
deleted
inserted
replaced
32 void AbstractICache::initialize() { |
32 void AbstractICache::initialize() { |
33 // Making this stub must be FIRST use of assembler |
33 // Making this stub must be FIRST use of assembler |
34 ResourceMark rm; |
34 ResourceMark rm; |
35 |
35 |
36 BufferBlob* b = BufferBlob::create("flush_icache_stub", ICache::stub_size); |
36 BufferBlob* b = BufferBlob::create("flush_icache_stub", ICache::stub_size); |
|
37 if (b == NULL) { |
|
38 vm_exit_out_of_memory(ICache::stub_size, OOM_MALLOC_ERROR, "CodeCache: no space for flush_icache_stub"); |
|
39 } |
37 CodeBuffer c(b); |
40 CodeBuffer c(b); |
38 |
41 |
39 ICacheStubGenerator g(&c); |
42 ICacheStubGenerator g(&c); |
40 g.generate_icache_flush(&_flush_icache_stub); |
43 g.generate_icache_flush(&_flush_icache_stub); |
41 |
44 |