Lines Matching refs:size

62   // align the size to CodeEntryAlignment
71 unsigned int size = header_size;
72 size += round_to(cb->total_relocation_size(), oopSize);
73 // align the size to CodeEntryAlignment
74 size = align_code_offset(size);
75 size += round_to(cb->total_content_size(), oopSize);
76 size += round_to(cb->total_oop_size(), oopSize);
77 return size;
81 // Creates a simple CodeBlob. Sets up the size of the different regions.
82 CodeBlob::CodeBlob(const char* name, int header_size, int size, int frame_complete, int locs_size) {
83 assert(size == round_to(size, oopSize), "unaligned size");
84 assert(locs_size == round_to(locs_size, oopSize), "unaligned size");
85 assert(header_size == round_to(header_size, oopSize), "unaligned size");
96 _size = size;
102 _data_offset = size;
108 // Creates a CodeBlob from a CodeBuffer. Sets up the size of the different regions,
114 int size,
119 assert(size == round_to(size, oopSize), "unaligned size");
120 assert(header_size == round_to(header_size, oopSize), "unaligned size");
123 _size = size;
130 assert(_data_offset <= size, "codeBlob is too small");
137 assert(_frame_size >= -1, "must use frame size or -1 for runtime stubs");
202 BufferBlob::BufferBlob(const char* name, int size)
203 : CodeBlob(name, sizeof(BufferBlob), size, CodeOffsets::frame_never_safe, /*locs_size:*/ 0)
210 unsigned int size = sizeof(BufferBlob);
211 // align the size to CodeEntryAlignment
212 size = align_code_offset(size);
213 size += round_to(buffer_size, oopSize);
217 blob = new (size) BufferBlob(name, size);
226 BufferBlob::BufferBlob(const char* name, int size, CodeBuffer* cb)
227 : CodeBlob(name, cb, sizeof(BufferBlob), size, CodeOffsets::frame_never_safe, 0, NULL)
234 unsigned int size = allocation_size(cb, sizeof(BufferBlob));
238 blob = new (size) BufferBlob(name, size, cb);
247 void* BufferBlob::operator new(size_t s, unsigned size) {
248 void* p = CodeCache::allocate(size);
267 AdapterBlob::AdapterBlob(int size, CodeBuffer* cb) :
268 BufferBlob("I2C/C2I adapters", size, cb) {
276 unsigned int size = allocation_size(cb, sizeof(AdapterBlob));
279 blob = new (size) AdapterBlob(size, cb);
295 unsigned int size = sizeof(MethodHandlesAdapterBlob);
296 // align the size to CodeEntryAlignment
297 size = align_code_offset(size);
298 size += round_to(buffer_size, oopSize);
301 blob = new (size) MethodHandlesAdapterBlob(size);
316 int size,
322 : CodeBlob(name, cb, sizeof(RuntimeStub), size, frame_complete, frame_size, oop_maps)
339 unsigned int size = allocation_size(cb, sizeof(RuntimeStub));
340 stub = new (size) RuntimeStub(stub_name, cb, size, frame_complete, frame_size, oop_maps, caller_must_gc_arguments);
349 void* RuntimeStub::operator new(size_t s, unsigned size) {
350 void* p = CodeCache::allocate(size);
351 if (!p) fatal("Initial size of CodeCache is too small");
356 void* SingletonBlob::operator new(size_t s, unsigned size) {
357 void* p = CodeCache::allocate(size);
358 if (!p) fatal("Initial size of CodeCache is too small");
368 int size,
375 : SingletonBlob("DeoptimizationBlob", cb, sizeof(DeoptimizationBlob), size, frame_size, oop_maps)
398 unsigned int size = allocation_size(cb, sizeof(DeoptimizationBlob));
399 blob = new (size) DeoptimizationBlob(cb,
400 size,
420 int size,
424 : SingletonBlob("UncommonTrapBlob", cb, sizeof(UncommonTrapBlob), size, frame_size, oop_maps)
437 unsigned int size = allocation_size(cb, sizeof(UncommonTrapBlob));
438 blob = new (size) UncommonTrapBlob(cb, size, oop_maps, frame_size);
456 int size,
460 : SingletonBlob("ExceptionBlob", cb, sizeof(ExceptionBlob), size, frame_size, oop_maps)
473 unsigned int size = allocation_size(cb, sizeof(ExceptionBlob));
474 blob = new (size) ExceptionBlob(cb, size, oop_maps, frame_size);
491 int size,
495 : SingletonBlob("SafepointBlob", cb, sizeof(SafepointBlob), size, frame_size, oop_maps)
508 unsigned int size = allocation_size(cb, sizeof(SafepointBlob));
509 blob = new (size) SafepointBlob(cb, size, oop_maps, frame_size);