why does AOTLib::verify_config check for UseConcMarkSweepGC?

Christian Thalinger cthalinger at twitter.com
Fri Jun 16 15:09:08 UTC 2017


Could someone remind me, why are we checking for UseConcMarkSweepGC?

  // Check flags
  verify_flag(_config->_useCompressedOops, UseCompressedOops, "UseCompressedOops");
  verify_flag(_config->_useCompressedClassPointers, UseCompressedClassPointers, "UseCompressedClassPointers");
  verify_flag(_config->_useG1GC, UseG1GC, "UseG1GC");
  verify_flag(_config->_useCMSGC, UseConcMarkSweepGC, "UseConcMarkSweepGC");

useCMSGC does not affect code generation:

~/jdk9/hotspot$ ack useCMSGC 
src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/BinaryContainer.java
303:                                   graalHotSpotVMConfig.useCMSGC,

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/GraalHotSpotVMConfig.java
213:    public final boolean useCMSGC = getFlag("UseConcMarkSweepGC", Boolean.class);

src/share/vm/aot/aotCodeHeap.cpp
155:  verify_flag(_config->_useCMSGC, UseConcMarkSweepGC, "UseConcMarkSweepGC");

src/share/vm/aot/aotCodeHeap.hpp
105:  bool _useCMSGC;

Is there some object-layout thing I am forgetting?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20170616/3ab0f6b8/attachment.html>


More information about the hotspot-compiler-dev mailing list