mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-20 15:25:27 +00:00
8263236: runtime/os/TestTracePageSizes.java fails on old kernels
Reviewed-by: dholmes, sjohanss, stuefe
This commit is contained in:
parent
0ca86da0e3
commit
36e5ad61e6
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user