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

Remove develop flag StrictSafepointChecks

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 14
    • hotspot
    • b08

      There doesn't seem to be a reason to turn off these checks.

      One reason may have been to have a quick return for product:

      - debug_only(if (StrictSafepointChecks) _thread->check_for_valid_safepoint_state(false);)
      + _thread->check_for_valid_safepoint_state(false);

      But, check_for_valid-safepoint_state is declared in thread.hpp as:

        void check_for_valid_safepoint_state(bool potential_vm_operation) PRODUCT_RETURN;


      So doesn't require debug_only or a const false flag to not generate a call in production.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: