Skip to content

Commit

Permalink
Adding a condition that was removed by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
singhnitin authored and singhnitin committed Aug 19, 2024
1 parent 1616404 commit bed19ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/hotspot/gtest/runtime/test_os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,10 @@ TEST_VM(os_windows, large_page_init_decide_size) {
// Test for large page support
size_t decided_size = os::win32::large_page_init_decide_size();
size_t min_size = GetLargePageMinimum();
EXPECT_EQ(decided_size, 0) << "Expected decided size to be 0 when large page is not supported by the processor";
if (min_size == 0) {
EXPECT_EQ(decided_size, 0) << "Expected decided size to be 0 when large page is not supported by the processor";
return;
}

// Scenario 1: Test with 2MB large page size
if (min_size == 2 * M) {
Expand Down

0 comments on commit bed19ba

Please sign in to comment.