8258415: gtest for committed memory leaks reservation
Reviewed-by: hseigel, stuefe
This commit is contained in:
parent
83be8a902c
commit
6aa8eed352
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -202,6 +202,8 @@ public:
|
|||||||
ASSERT_TRUE(result);
|
ASSERT_TRUE(result);
|
||||||
ASSERT_EQ(2 * page_sz, committed_size);
|
ASSERT_EQ(2 * page_sz, committed_size);
|
||||||
ASSERT_EQ(committed_start, (address)(base + page_sz));
|
ASSERT_EQ(committed_start, (address)(base + page_sz));
|
||||||
|
|
||||||
|
os::release_memory(base, size);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user