Mercurial > hg > truffle
comparison src/share/vm/classfile/classFileParser.cpp @ 17398:9e1ec84d2899
fix privileged check for Stable
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 09 Oct 2014 11:32:21 -0700 |
parents | 0563b652c052 |
children | 89152779163c |
comparison
equal
deleted
inserted
replaced
17397:0c8442b0d4c4 | 17398:9e1ec84d2899 |
---|---|
1788 if (!privileged) break; // only allow in privileged code | 1788 if (!privileged) break; // only allow in privileged code |
1789 return _method_LambdaForm_Hidden; | 1789 return _method_LambdaForm_Hidden; |
1790 #ifdef GRAAL | 1790 #ifdef GRAAL |
1791 case vmSymbols::VM_SYMBOL_ENUM_NAME(com_oracle_graal_hotspot_Stable_signature): | 1791 case vmSymbols::VM_SYMBOL_ENUM_NAME(com_oracle_graal_hotspot_Stable_signature): |
1792 if (_location != _in_field) break; // only allow for fields | 1792 if (_location != _in_field) break; // only allow for fields |
1793 // Ignore privilged for now | 1793 if (!privileged && loader_data->class_loader() != SystemDictionary::graal_loader()) break; // only allow in privileged code |
1794 return _field_Stable; | 1794 return _field_Stable; |
1795 #endif | 1795 #endif |
1796 case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_Stable_signature): | 1796 case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_Stable_signature): |
1797 if (_location != _in_field) break; // only allow for fields | 1797 if (_location != _in_field) break; // only allow for fields |
1798 if (!privileged) break; // only allow in privileged code | 1798 if (!privileged) break; // only allow in privileged code |