JDK-8247466 : AIX link error undefined MetaspaceShared::_use_optimized_module_handling
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 15
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: aix
  • CPU: ppc
  • Submitted: 2020-06-12
  • Updated: 2020-06-15
  • Resolved: 2020-06-15
Related Reports
Duplicate :  
Description
After current changes to src/hotspot/share/memory/metaspaceShared.cpp we run into this link error on AIX :

ld: 0711-317 ERROR: Undefined symbol: MetaspaceShared::_use_optimized_module_handling
ld: 0711-344 See the loadmap file /nightly/output-jdk/hotspot/variant-server/libjvm/objs/libjvm.loadmap for more information.
gmake[3]: *** [lib/CompileJvm.gmk:152: /nightly/output-jdk/support/modules_libs/java.base/server/libjvm.so] Error 8
gmake[3]: *** Waiting for unfinished jobs....
ld: 0711-317 ERROR: Undefined symbol: MetaspaceShared::_use_optimized_module_handling

Looks like we the problem is that we call into metaspaceShared , but metaspaceShared  is not built on AIX (because we have CDS disabled on AIX).
Comments
I checked JDK-8247388 and it fixes the link issue on AIX.
15-06-2020

FYI, please see JDK-8247388, which has already been reviewed. I am not sure if JDK-8247388 will solve this issue. Waiting for the push of JDK-8247388 may be a suggestion.
13-06-2020