hotspot/src/share/vm/code/codeBlob.cpp
changeset 17016 78b1c3670525
parent 16368 713209c45a82
child 19696 bd5a0131bde1
equal deleted inserted replaced
17015:92390f57e8b1 17016:78b1c3670525
   346   return stub;
   346   return stub;
   347 }
   347 }
   348 
   348 
   349 
   349 
   350 void* RuntimeStub::operator new(size_t s, unsigned size) {
   350 void* RuntimeStub::operator new(size_t s, unsigned size) {
   351   void* p = CodeCache::allocate(size);
   351   void* p = CodeCache::allocate(size, true);
   352   if (!p) fatal("Initial size of CodeCache is too small");
   352   if (!p) fatal("Initial size of CodeCache is too small");
   353   return p;
   353   return p;
   354 }
   354 }
   355 
   355 
   356 // operator new shared by all singletons:
   356 // operator new shared by all singletons:
   357 void* SingletonBlob::operator new(size_t s, unsigned size) {
   357 void* SingletonBlob::operator new(size_t s, unsigned size) {
   358   void* p = CodeCache::allocate(size);
   358   void* p = CodeCache::allocate(size, true);
   359   if (!p) fatal("Initial size of CodeCache is too small");
   359   if (!p) fatal("Initial size of CodeCache is too small");
   360   return p;
   360   return p;
   361 }
   361 }
   362 
   362 
   363 
   363