-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8347463: jdk/jfr/threading/TestManyVirtualThreads.java crashes with assert(oopDesc::is_oop_or_null(val)) #27913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
39922ef
2c1c8cf
a6225eb
4b322a3
f25723c
df0fa4c
c85142e
51fb388
e91cd48
9191c3b
280141b
922d03f
9ff84e7
aa09c1b
1f92256
80f572a
72202ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| /* | ||
| * Copyright (c) 2025, 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 | ||
| * under the terms of the GNU General Public License version 2 only, as | ||
| * published by the Free Software Foundation. | ||
| * | ||
| * This code is distributed in the hope that it will be useful, but WITHOUT | ||
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
| * version 2 for more details (a copy is included in the LICENSE file that | ||
| * accompanied this code). | ||
| * | ||
| * You should have received a copy of the GNU General Public License version | ||
| * 2 along with this work; if not, write to the Free Software Foundation, | ||
| * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| * | ||
| * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
| * or visit www.oracle.com if you need additional information or have any | ||
| * questions. | ||
| */ | ||
|
|
||
| package compiler.intrinsics; | ||
|
|
||
| import compiler.lib.ir_framework.*; | ||
|
|
||
| import jdk.jfr.Event; | ||
| import jdk.jfr.Name; | ||
anton-seoane marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| import jdk.jfr.Recording; | ||
|
|
||
| /** | ||
| * @test | ||
| * @summary Tests that the getEventWriter call to write_checkpoint correctly | ||
| * reports returning an oop | ||
| * @requires vm.hasJFR & vm.continuations | ||
|
||
| * @library /test/lib / | ||
| * @modules jdk.jfr/jdk.jfr.internal | ||
|
||
| * @run driver compiler.intrinsics.TestReturnsOopSetForJFRWriteCheckpoint | ||
| */ | ||
| public class TestReturnsOopSetForJFRWriteCheckpoint { | ||
|
|
||
| private static class TestEvent extends Event { | ||
| } | ||
|
|
||
| public static void main(String... args) { | ||
| TestFramework.run(); | ||
| } | ||
|
|
||
| // JDK-8347463: crash was due to the returns_oop field not being set | ||
| // for the write_checkpoint call. Instead of explicitly checking for | ||
| // it, we look for a non-void return type (which comes hand-in-hand | ||
anton-seoane marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| // with the returns_oop information) | ||
anton-seoane marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| @Test | ||
| @IR(failOn = { IRNode.STATIC_CALL_OF_METHOD, "write_checkpoint.*void"}) | ||
anton-seoane marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| public void myTest() { | ||
anton-seoane marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| try (Recording r = new Recording()) { | ||
| r.start(); | ||
|
|
||
| emitEvent(); | ||
| } | ||
|
|
||
| } | ||
anton-seoane marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| @ForceInline | ||
| public void emitEvent() { | ||
| TestEvent t = new TestEvent(); | ||
| t.commit(); | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.