This commit is contained in:
Coleen Phillimore 2012-11-16 09:19:12 -05:00
commit ddec2a3aed
65 changed files with 515 additions and 481 deletions

View file

@ -582,7 +582,9 @@ void* os::malloc(size_t size, MEMFLAGS memflags, address caller) {
// if NULL is returned the calling functions assume out of memory.
size = 1;
}
if (size > size + space_before + space_after) { // Check for rollover.
return NULL;
}
NOT_PRODUCT(if (MallocVerifyInterval > 0) check_heap());
u_char* ptr = (u_char*)::malloc(size + space_before + space_after);