Skip to content

Commit

Permalink
svm/libcontainer: improve Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
zapster committed Jul 3, 2024
1 parent 55c4887 commit 4329bec
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,13 +533,15 @@ public static boolean isContainerized() {
return Container.singleton().isContainerized();
}

/**
* Return the total memory available on the host.
*
* This is unconditionally using {@link OperatingSystem#getPhysicalMemorySize} since we are
* interested in the host values (and not the containerized values).
*/
@Substitute
@TargetElement(onlyWith = JDK22OrLater.class) //
public static long hostTotalMemory() {
/*
* This is unconditionally using Machine#getPhysicalMemorySize since we are interested in
* the host values (and not the containerized values).
*/
return OperatingSystem.singleton().getPhysicalMemorySize().rawValue();
}

Expand Down

0 comments on commit 4329bec

Please # to comment.