-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8347997: assert(false) failed: EA: missing memory path #23284
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
679d49c
8347997: assert(false) failed: EA: missing memory path
vnkozlov dd1b1b9
Remove trailing space
vnkozlov fad42ec
Update test
vnkozlov fee3b72
Update test/hotspot/jtreg/compiler/intrinsics/TestContinuationPinning…
vnkozlov e502568
Address comments
vnkozlov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,45 +25,30 @@ | |
| * @test | ||
| * @bug 8347997 | ||
| * @summary Test that Cintinuation.pin() and unpin() intrinsics work with EA. | ||
| * @run main/othervm --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED | ||
| * TestContinuationPinningAndEA | ||
| * @modules java.base/jdk.internal.vm | ||
| * @run main TestContinuationPinningAndEA | ||
| */ | ||
|
|
||
| import java.lang.invoke.MethodHandle; | ||
| import java.lang.invoke.MethodHandles; | ||
| import java.lang.invoke.MethodType; | ||
| import jdk.internal.vm.Continuation; | ||
|
|
||
| public class TestContinuationPinningAndEA { | ||
| public static final MethodHandle pin; | ||
| public static final MethodHandle unpin; | ||
|
|
||
| static { | ||
| try { | ||
| MethodHandles.Lookup lookup = MethodHandles.lookup(); | ||
| Class<?> Continuation = lookup.findClass("jdk.internal.vm.Continuation"); | ||
| pin = lookup.findStatic(Continuation, "pin", MethodType.methodType(void.class)); | ||
| unpin = lookup.findStatic(Continuation, "unpin", MethodType.methodType(void.class)); | ||
| } catch (Throwable e) { | ||
| throw new RuntimeException(e); | ||
| } | ||
| } | ||
|
|
||
| static class FailsEA { | ||
|
||
| final Object o; | ||
|
|
||
| public FailsEA() throws Throwable { | ||
| o = new Object(); | ||
| pin.invokeExact(); | ||
| unpin.invokeExact(); | ||
| Continuation.pin(); | ||
| Continuation.unpin(); | ||
| } | ||
| } | ||
|
|
||
| static class Crashes { | ||
| final Object o; | ||
|
|
||
| public Crashes() throws Throwable { | ||
| pin.invokeExact(); | ||
| unpin.invokeExact(); | ||
| Continuation.pin(); | ||
| Continuation.unpin(); | ||
| o = new Object(); | ||
| } | ||
| } | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.