mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
Merge
This commit is contained in:
commit
ddec2a3aed
65 changed files with 515 additions and 481 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue