equal
deleted
inserted
replaced
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 |