JDK-8003879 : Duplicate definitions in vmStructs
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-11-21
  • Updated: 2013-04-30
  • Resolved: 2012-11-28
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 8 Other
8Fixed hs25Fixed
Description
In vmStructs.cpp MetablockTreeDictionary is defined twice. In vmStructs_cms.cpp AFLBinaryTreeDictionary is likewise defined twice. Looks like the code was introduced by 

7045397: NPG: Add freelists to class loader arenas.

This shows up when running jmap:

Attaching to process ID 25561, please wait...
Warning: the type "MetablockTreeDictionary" (declared in the remote VM in VMStructs::localHotSpotVMTypes) had its size declared as 32 twice. Continuing.
Warning: the type "AFLBinaryTreeDictionary" (declared in the remote VM in VMStructs::localHotSpotVMTypes) had its size declared as 32 twice. Continuing.
Debugger attached successfully.
Server compiler detected.
JVM version is 25.0-b09

I think it still works, but it's not pretty.