Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp Thu Oct 09 16:30:49 2014 +0200 +++ b/src/share/vm/classfile/classFileParser.cpp Thu Oct 09 11:32:21 2014 -0700 @@ -1790,7 +1790,7 @@ #ifdef GRAAL case vmSymbols::VM_SYMBOL_ENUM_NAME(com_oracle_graal_hotspot_Stable_signature): if (_location != _in_field) break; // only allow for fields - // Ignore privilged for now + if (!privileged && loader_data->class_loader() != SystemDictionary::graal_loader()) break; // only allow in privileged code return _field_Stable; #endif case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_Stable_signature):