8318594: NMT: VM.native_memory crashes on assert if functionality isn't supported by OS
Reviewed-by: zgu, jsjolen
This commit is contained in:
parent
45e68ae207
commit
0dcd730f5c
@ -3398,6 +3398,11 @@ bool os::committed_in_range(address start, size_t size, address& committed_start
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If mincore is not supported.
|
||||||
|
if (mincore_return_value == -1 && errno == ENOSYS) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
assert(vec[stripe] == 'X', "overflow guard");
|
assert(vec[stripe] == 'X', "overflow guard");
|
||||||
assert(mincore_return_value == 0, "Range must be valid");
|
assert(mincore_return_value == 0, "Range must be valid");
|
||||||
// Process this stripe
|
// Process this stripe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user