JDK-8180785 : [AOT][GRAAL] java.lang.AssertionError: Method not found: jdk.internal.misc.Unsafe.compareAndSwapInt
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-05-22
  • Updated: 2019-09-13
  • Resolved: 2017-07-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10Fixed
Related Reports
Duplicate :  
Relates :  
Description
AOT jtreg tests fail due to JDK-8159995 changes when run with '-ea -esa':

java.lang.AssertionError: Method not found: jdk.internal.misc.Unsafe.compareAndSwapInt

Comments
Fixed by JDK-8181292 changes: http://hg.openjdk.java.net/jdk10/hs/hotspot/rev/5242609b8088
06-07-2017

I verified that changing compareAndSwap to compareAndSet in that code allow to pass AOT jtreg tests. Thank you Dean.
05-06-2017

May be that is causing the assert but there are other places in Graal which may use jdk.internal.misc.Unsafe.compareAndSwap* methods according to 'grep' and have to be fix.
02-06-2017

Is this the problem: https://github.com/graalvm/graal/blob/1c5e3a5e544335e85dd271853161bceb635ac376/compiler/src/org.graalvm.compiler.replacements/src/org/graalvm/compiler/replacements/StandardGraphBuilderPlugins.java#L251
02-06-2017

ILW = Tests fail because Unsafe method is not found, AOT tests with '-ea -esa', no workaround = MMH = P3
23-05-2017

JDK-8159995 did not fix Graal or JVMCI. It only fixed test: src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java
22-05-2017