Skip to content
Permalink
Browse files
8242188: [TESTBUG] error in jtreg test jdk/jfr/api/consumer/TestRecor…
…dedFrame.java on linux-aarch64

Reviewed-by: egahlin
  • Loading branch information
nick-arm committed Apr 29, 2020
1 parent e48410a commit 820f7227b776658db13c108c29a79f38fb8a7ffa
Showing with 9 additions and 2 deletions.
  1. +9 −2 test/jdk/jdk/jfr/api/consumer/TestRecordedFrame.java
@@ -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 @@
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();

0 comments on commit 820f722

Please sign in to comment.