-
Notifications
You must be signed in to change notification settings - Fork 734
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
IProfiler assertion failure while building JDK with compiler in debug mode: some entries were still locked on shutdown #20344
Comments
Issue Number: 20344 |
My guess is that this is very rare, and I can't reproduce it. The core that I got from the failure is unhelpful as well, since the assert is located just after the |
It definitely seems like the locks on entries are always released if acquired. The only time a lock isn't released in the scope of a So maybe what had to have happened was:
If that's the case, the assert probably isn't an indication that anything is too wrong. At least, the situation is no worse than the race between threads A and B above, which is known and documented in a comment in |
Issue Number: 20344 |
I tried building the compiler in debug mode, with the environment variable
OPENJ9_JAVA_OPTIONS='-Xjit:ignoreAssert -Xaot:ignoreAssert'
set so that the full JDK would at least be built, and got the following assertion failure:I thought it was a little strange that there was an assertion failure at all, but it seems that in the definition in OMR:
https://github.com/eclipse/omr/blob/46f74f6599f42ec07c72791f752738d10f814fd1/compiler/infra/Assert.cpp#L142
only the options of the current
TR::Compilation
are checked, and this assert evidently happened at shutdown, outside of any compilation. That function should probably check the top-levelTR::Options::getCmdLineOptions()
as a fallback if thecomp
doesn't exist, but that's a separate issue.This is the first time I've rebased onto the latest
master
in a few weeks, so this may have arisen due to some commit in that time frame. Though, I've not built with-Xjit:ignoreAssert -Xaot:ignoreAssert
before, so this may be older.The text was updated successfully, but these errors were encountered: