equal
deleted
inserted
replaced
1691 // Here is where parsing particular annotations will take place. |
1691 // Here is where parsing particular annotations will take place. |
1692 AnnotationCollector::ID id = coll->annotation_index(_loader_data, aname); |
1692 AnnotationCollector::ID id = coll->annotation_index(_loader_data, aname); |
1693 if (id == AnnotationCollector::_unknown) continue; |
1693 if (id == AnnotationCollector::_unknown) continue; |
1694 coll->set_annotation(id); |
1694 coll->set_annotation(id); |
1695 |
1695 |
1696 if (id == AnnotationCollector::_sun_misc_Contended) { |
1696 if (id == AnnotationCollector::_jdk_internal_vm_annotation_Contended) { |
1697 // @Contended can optionally specify the contention group. |
1697 // @Contended can optionally specify the contention group. |
1698 // |
1698 // |
1699 // Contended group defines the equivalence class over the fields: |
1699 // Contended group defines the equivalence class over the fields: |
1700 // the fields within the same contended group are not treated distinct. |
1700 // the fields within the same contended group are not treated distinct. |
1701 // The only exception is default group, which does not incur the |
1701 // The only exception is default group, which does not incur the |
1765 #endif |
1765 #endif |
1766 case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_Stable_signature): |
1766 case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_Stable_signature): |
1767 if (_location != _in_field) break; // only allow for fields |
1767 if (_location != _in_field) break; // only allow for fields |
1768 if (!privileged) break; // only allow in privileged code |
1768 if (!privileged) break; // only allow in privileged code |
1769 return _field_Stable; |
1769 return _field_Stable; |
1770 case vmSymbols::VM_SYMBOL_ENUM_NAME(sun_misc_Contended_signature): |
1770 case vmSymbols::VM_SYMBOL_ENUM_NAME(jdk_internal_vm_annotation_Contended_signature): |
1771 if (_location != _in_field && _location != _in_class) break; // only allow for fields and classes |
1771 if (_location != _in_field && _location != _in_class) break; // only allow for fields and classes |
1772 if (!EnableContended || (RestrictContended && !privileged)) break; // honor privileges |
1772 if (!EnableContended || (RestrictContended && !privileged)) break; // honor privileges |
1773 return _sun_misc_Contended; |
1773 return _jdk_internal_vm_annotation_Contended; |
1774 default: break; |
1774 default: break; |
1775 } |
1775 } |
1776 return AnnotationCollector::_unknown; |
1776 return AnnotationCollector::_unknown; |
1777 } |
1777 } |
1778 |
1778 |