void do_region(u_char* start, size_t size) { assert((intptr_t)start % sizeof(oop) == 0, "bad alignment"); assert(size % sizeof(oop) == 0, "bad size"); do_tag((int)size); while (size > 0) { *(oop*)start = nextOop(); start += sizeof(oop); size -= sizeof(oop); } }
void do_region(u_char* start, size_t size) { if ((char*)top + size > end) { report_out_of_shared_space(SharedMiscData); } assert((intptr_t)start % sizeof(intptr_t) == 0, "bad alignment"); assert(size % sizeof(intptr_t) == 0, "bad size"); do_tag((int)size); while (size > 0) { *top = *(intptr_t*)start; ++top; start += sizeof(intptr_t); size -= sizeof(intptr_t); } }
void do_region(u_char* start, size_t size) { if ((char*)top + size > end) { out_of_space(); } assert((intptr_t)start % sizeof(oop) == 0, "bad alignment"); assert(size % sizeof(oop) == 0, "bad size"); do_tag((int)size); while (size > 0) { *top = *(oop*)start; ++top; start += sizeof(oop); size -= sizeof(oop); } }