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

Add a comment to ResetNoHandleMark to explain its usage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 17
    • 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.

            coleenp Coleen Phillimore
            rpressler Ron Pressler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: