Mercurial > hg > graal-compiler
diff src/share/vm/classfile/classFileParser.cpp @ 17334:0563b652c052
Unify parsing of graal and hotspot Stable annotations
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 02 Oct 2014 10:57:03 -0700 |
parents | 4ca6dc0799b6 |
children | 9e1ec84d2899 |
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp Thu Oct 02 10:54:54 2014 -0700 +++ b/src/share/vm/classfile/classFileParser.cpp Thu Oct 02 10:57:03 2014 -0700 @@ -1787,6 +1787,12 @@ if (_location != _in_method) break; // only allow for methods if (!privileged) break; // only allow in privileged code return _method_LambdaForm_Hidden; +#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 + return _field_Stable; +#endif case vmSymbols::VM_SYMBOL_ENUM_NAME(java_lang_invoke_Stable_signature): if (_location != _in_field) break; // only allow for fields if (!privileged) break; // only allow in privileged code