hotspot/src/share/vm/runtime/icache.cpp
changeset 25495 aeb87692dfd0
parent 7397 5b173b4ca846
child 46620 750c6edff33b
equal deleted inserted replaced
25494:c18718ecf276 25495:aeb87692dfd0
    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