Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8302817

Disabling RTTI with MSVC causes some serviceability tests to fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P4
    • None
    • None
    • hotspot
    • None

    Description

      With GCC and Clang we disable exceptions and RTTI when compiling C++. On Windows we currently do not disable RTTI. In https://github.com/openjdk/jdk/pull/12073 I tried to do so, but for some unknown reason it causes a subset of serviceability agent tests to fail. The exact reasoning is unknown. It seems to have something to do with either DbgHelp or DbgEng, but that is a guesstimate. We should figure out what is going on so we can eventually disable RTTI on Windows, which will reduce the binary size for Hotspot by at least 1 MB.

      The tests in question that fail are:
      serviceability/sa/ClhsdbCDSCore
      serviceability/sa/ClhsdbCDSJstackPrintAll
      serviceability/sa/ClhsdbDumpheap
      serviceability/sa/ClhsdbFindPC#no-xcomp-core
      serviceability/sa/ClhsdbFindPC#no-xcomp-process
      serviceability/sa/ClhsdbFindPC#xcomp-core
      serviceability/sa/ClhsdbFindPC#xcomp-process
      serviceability/sa/ClhsdbInspect
      serviceability/sa/ClhsdbJdis
      serviceability/sa/ClhsdbJstack#id0
      serviceability/sa/ClhsdbJstack#id1
      serviceability/sa/ClhsdbJstackXcompStress.java
      serviceability/sa/ClhsdbPrintAs
      serviceability/sa/ClhsdbSource
      serviceability/sa/JhsdbThreadInfoTest
      serviceability/sa/TestClhsdbJstackLock
      serviceability/sa/TestJhsdbJstackLineNumbers
      serviceability/sa/TestJhsdbJstackLock

      Attachments

        Issue Links

          Activity

            People

              amenkov Alex Menkov
              jcking Justin King
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: