Skip to content

Commit 9a9b01b

Browse files
committed
Add comment for cgv1 and cpu.cfs_quota_us file (-1)
1 parent 4d22424 commit 9a9b01b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/hotspot/gtest/runtime/test_cgroupSubsystem_linux.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ TEST(cgroupTest, read_number_tests) {
258258
EXPECT_EQ((size_t)8888, foo) << "Wrong value for 'foo' (NOTE: 0xBAD == " << 0xBAD << ")";
259259

260260
// Some interface files might have negative values, ensure we can read
261-
// them and manually cast them as needed.
261+
// them and manually cast them as needed. For example, on cgv1, the cpu.cfs_quota_us
262+
// file might be set to -1 to indicate no cpu quota setup.
262263
fill_file(test_file, "-1");
263264
foo = bad;
264265
ok = controller->read_number(base_with_slash, foo);

0 commit comments

Comments
 (0)