Skip to content
Browse files
8263236: runtime/os/ fails on old kernels
Reviewed-by: dholmes, sjohanss, stuefe
  • Loading branch information
shipilev committed May 6, 2021
1 parent 0ca86da commit 36e5ad61e63e2f1da9cf565c607db28f23622ea9
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.

1 comment on commit 36e5ad6

Copy link

@openjdk-notifier openjdk-notifier bot commented on 36e5ad6 May 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.