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

Experiment with ThreadSanitizer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • None

      This is an exploratory task to experiment with ThreadSanitizer in Hotspot and see if it is actually useful. Note that this is not related to the WIP JEP related to ThreadSanitizer for Java, this is purely for Hotspot itself. There are doubts on its potential usefulness due to some of the algorithms used in Hotspot not being compatible with what ThreadSanitizer supports or understands, potentially leading to lots of false positives.

      In order to make it work, we would need to instrument all custom synchronization primitives (not pthread) and replace the hand rolled atomic code with `__atomic_*`.

      If after experimentation ThreadSanitizer proves useful, we will facilitate further discussion based on the findings and changes required, and move forward based on the outcome of those discussions. If it does not prove useful, we will document our findings so that future contributors are aware and can avoid attempting the same thing unless something changes.

            jcking Justin King
            jcking Justin King
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: