9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 package compiler.compilercontrol.share.processors;
25
26 import com.sun.management.HotSpotDiagnosticMXBean;
27 import compiler.compilercontrol.share.method.MethodDescriptor;
28 import compiler.compilercontrol.share.method.MethodGenerator;
29 import compiler.compilercontrol.share.scenario.State;
30 import jdk.test.lib.OutputAnalyzer;
31 import jdk.test.lib.Pair;
32 import pool.PoolHelper;
33
34 import java.lang.management.ManagementFactory;
35 import java.lang.reflect.Executable;
36 import java.util.List;
37 import java.util.Map;
38 import java.util.function.Consumer;
39 import java.util.regex.Matcher;
40 import java.util.regex.Pattern;
41 import java.util.stream.Collectors;
42
43 /**
44 * Process output to find compiled methods assemblies printed by print command
45 */
46 public class PrintProcessor implements Consumer<OutputAnalyzer> {
47 /**
48 * Compiled method string pattern.
49 * Capturing groups are
50 * 1. Compiler used to compile this method
51 * 2. Time stamp
52 * 3. Compile ID
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 package compiler.compilercontrol.share.processors;
25
26 import com.sun.management.HotSpotDiagnosticMXBean;
27 import compiler.compilercontrol.share.method.MethodDescriptor;
28 import compiler.compilercontrol.share.method.MethodGenerator;
29 import compiler.compilercontrol.share.pool.PoolHelper;
30 import compiler.compilercontrol.share.scenario.State;
31 import jdk.test.lib.OutputAnalyzer;
32
33 import java.lang.management.ManagementFactory;
34 import java.lang.reflect.Executable;
35 import java.util.List;
36 import java.util.Map;
37 import java.util.function.Consumer;
38 import java.util.regex.Matcher;
39 import java.util.regex.Pattern;
40 import java.util.stream.Collectors;
41
42 /**
43 * Process output to find compiled methods assemblies printed by print command
44 */
45 public class PrintProcessor implements Consumer<OutputAnalyzer> {
46 /**
47 * Compiled method string pattern.
48 * Capturing groups are
49 * 1. Compiler used to compile this method
50 * 2. Time stamp
51 * 3. Compile ID
|