Add a comment to ResetNoHandleMark to explain its usage

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 17
    • Component/s: hotspot

      LEAF entries include a NoHandleMark, but that is a conservative restriction as such methods must not rely on Handles actually being processed, but can allow code that allocates handles but does not introduce safepoints. Such code can be safely used in both safepoint-friendly entries as well as in LEAF entries, although the latter requires a ResetNoHandleMark.

      A comment before that class in handles.hpp should clarify its safe use.

            Assignee:
            Coleen Phillimore
            Reporter:
            Ron Pressler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: