8258438: build error in test/hotspot/gtest/runtime/test_os.cpp

Reviewed-by: dcubed, tschatzl
This commit is contained in:
Ioi Lam 2020-12-15 21:42:01 +00:00
parent 7977e381ea
commit 8bf46c7368

View File

@ -523,7 +523,7 @@ TEST_VM(os, show_mappings_small_range) {
TEST_VM(os, show_mappings_full_range) {
// Reserve a small range and fill it with a marker string, should show up
// on implementations displaying range snippets
char* p = os::reserve_memory(1 * M, mtInternal);
char* p = os::reserve_memory(1 * M, false, mtInternal);
if (p != nullptr) {
if (os::commit_memory(p, 1 * M, false)) {
strcpy(p, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");