test/hotspot/jtreg/runtime/logging/SafepointCleanupTest.java
changeset 52703 e7fdc9d9c376
parent 47216 71c04702a3d5
child 54961 30c8a21ce002
equal deleted inserted replaced
52702:10c6e9066819 52703:e7fdc9d9c376
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    37 public class SafepointCleanupTest {
    37 public class SafepointCleanupTest {
    38     static void analyzeOutputOn(ProcessBuilder pb) throws Exception {
    38     static void analyzeOutputOn(ProcessBuilder pb) throws Exception {
    39         OutputAnalyzer output = new OutputAnalyzer(pb.start());
    39         OutputAnalyzer output = new OutputAnalyzer(pb.start());
    40         output.shouldContain("[safepoint,cleanup]");
    40         output.shouldContain("[safepoint,cleanup]");
    41         output.shouldContain("safepoint cleanup tasks");
    41         output.shouldContain("safepoint cleanup tasks");
    42         output.shouldContain("deflating idle monitors");
    42         output.shouldContain("deflating global idle monitors");
       
    43         output.shouldContain("deflating per-thread idle monitors");
    43         output.shouldContain("updating inline caches");
    44         output.shouldContain("updating inline caches");
    44         output.shouldContain("compilation policy safepoint handler");
    45         output.shouldContain("compilation policy safepoint handler");
    45         output.shouldContain("purging class loader data graph");
    46         output.shouldContain("purging class loader data graph");
    46         output.shouldHaveExitValue(0);
    47         output.shouldHaveExitValue(0);
    47     }
    48     }