Skip to content

Commit 6aa8eed

Browse files
committed
8258415: gtest for committed memory leaks reservation
Reviewed-by: hseigel, stuefe
1 parent 83be8a9 commit 6aa8eed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/hotspot/gtest/runtime/test_committed_virtualmemory.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -202,6 +202,8 @@ class CommittedVirtualMemoryTest {
202202
ASSERT_TRUE(result);
203203
ASSERT_EQ(2 * page_sz, committed_size);
204204
ASSERT_EQ(committed_start, (address)(base + page_sz));
205+
206+
os::release_memory(base, size);
205207
}
206208
};
207209

0 commit comments

Comments
 (0)