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

Remove ReferentBasedDiscovery reference discovery policy

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 21
    • hotspot
    • None
    • gc
    • behavioral
    • minimal
    • Searching for affected flag doesn't return much info (blog posts/tutorials) covering or suggesting using it.
    • add/remove/modify command line option
    • JDK

      Summary

      Obsolete the VM product option RefDiscoveryPolicy due to removal of the corresponding functionality.

      Problem

      RefDiscoveryPolicy accepts two values:

      • 0: ReferenceBasedDiscovery (default)
      • 1: ReferentBasedDiscovery

      The non-default one is incorrectly implemented, but properly supporting it in Serial/Parallel/G1 is non-trivial. Since the default policy works fine and there is no observed inefficiency in reference-discovery using various benchmarks, it's best to remove the defective policy for now.

      Solution

      Obsolete RefDiscoveryPolicy without any deprecation period.

      Specification

      -  product(intx, RefDiscoveryPolicy, 0,                                      \
      -          "Select type of reference discovery policy: "                     \
      -          "reference-based(0) or referent-based(1)")                        \
      -          range(ReferenceProcessor::DiscoveryPolicyMin,                     \
      -                ReferenceProcessor::DiscoveryPolicyMax)                     \
      -                                                                            \

            ayang Albert Yang
            ayang Albert Yang
            David Holmes, Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: