8263236: runtime/os/TestTracePageSizes.java fails on old kernels

Reviewed-by: dholmes, sjohanss, stuefe
This commit is contained in:
Aleksey Shipilev 2021-05-06 20:34:49 +00:00
parent 0ca86da0e3
commit 36e5ad61e6

View File

@ -103,7 +103,7 @@ public class TestTracePageSizes {
private static void parseSmaps() throws Exception {
String smapsPatternString = "(\\w+)-(\\w+).*?" +
"KernelPageSize:\\s*(\\d*) kB.*?" +
"VmFlags: ([\\w ]*)";
"VmFlags: ([\\w\\? ]*)";
Pattern smapsPattern = Pattern.compile(smapsPatternString, Pattern.DOTALL);
Scanner smapsScanner = new Scanner(new File("/proc/self/smaps"));
// Find all memory segments in the smaps-file.