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

Don't use TRAPS if no exceptions are thrown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • None
    • b15

      Remove TRAPS declarations in functions that don't throw exceptions. TRAPS was used because one of the constant pool functions called klass_at() when it really could call resolved_klass_at() which doesn't try to resolve the klass (since it's already resolved).
      This removes a use of passing THREAD as the trailing argument and then not handling the exception.

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

              Created:
              Updated:
              Resolved: