JDK-8185102 : TestSAServer.java fails due to "sun.jvm.hotspot.types.WrongTypeException: field "_stack_traversal_mark"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-07-23
  • Updated: 2020-09-01
  • Resolved: 2017-07-24
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
10 b21Fixed
Related Reports
Relates :  
Description
The following test failed in the 2017-07-21 JDK10-hs nightly:

compiler/ciReplay/TestSAServer.java
    Test failed due to "sun.jvm.hotspot.types.WrongTypeException: field
    "_stack_traversal_mark" in type nmethod is not of C integer type, but
    instead of type jlong" on Linux-AArch64 64-bit Server VM, Linux-X64
    64-bit Server VM, Linux-X64 32-bit Server VM, and Solaris SPARCv9
    64-bit Server VM.

    Looks like the _stack_traversal_mark was recently touched by this
    changeset:

    $ hg annot src/share/vm/code/nmethod.hpp | grep 'volatile jlong'
    13298:   volatile jlong _stack_traversal_mark;

    $ hg annot src/share/vm/runtime/vmStructs.cpp | grep '_stack_traversal_mark'
    13298:   volatile_nonstatic_field(nmethod,            _stack_traversal_mark,                         jlong)                                 \

    $ hg log -r 13298
    changeset:   13298:a3b8c747b6bf
    user:        rkennke
    date:        Fri Jul 07 12:49:11 2017 +0200
    summary:     8180932: Parallelize safepoint cleanup
Comments
The following test failed in the 2017-07-21 JDK10-hs nightly: compiler/ciReplay/TestSAClient.java Test failed due to "sun.jvm.hotspot.types.WrongTypeException: field "_stack_traversal_mark" in type nmethod is not of C integer type, but instead of type jlong" on Linux AArch64 32-bit Client VM.
23-07-2017

Roman, can you take a look at this test failure: hotspot/test/compiler/ciReplay/TestSAServer.java It appears to be failing due to your changes to JDK-8180932.
23-07-2017

Moving from hotspot/svc -> hotspot/runtime since it looks like this is a regression caused by JDK-8180932.
23-07-2017