mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8242188: [TESTBUG] error in jtreg test jdk/jfr/api/consumer/TestRecordedFrame.java on linux-aarch64
Reviewed-by: egahlin
This commit is contained in:
parent
e48410a466
commit
820f7227b7
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -50,10 +50,17 @@ import jdk.test.lib.jfr.SimpleEvent;
|
||||
public final class TestRecordedFrame {
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
System.out.println(); // Makes BCI for method larger than 0
|
||||
doSomething(); // Makes BCI for method larger than 0
|
||||
test(); // Records the line number and BCI for the main method/frame
|
||||
}
|
||||
|
||||
static void doSomething() {
|
||||
// Don't actually do anything: on platforms that do not support
|
||||
// patching (AArch64) -Xcomp is very sensitive to class load
|
||||
// order and calling other methods here might result in main()
|
||||
// being deoptimized, failing the test below.
|
||||
}
|
||||
|
||||
static void test() throws IOException {
|
||||
try (Recording recording = new Recording()) {
|
||||
recording.start();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user