Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalEnv.cpp @ 20970:a560c9b81f0f
Add suport for oops in vector registers at safepoints
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 14 Apr 2015 22:20:07 -0700 |
parents | 29916dcee0b8 |
children | 2e35a4ea22ac |
line wrap: on
line diff
--- a/src/share/vm/graal/graalEnv.cpp Tue Apr 14 17:26:29 2015 -0700 +++ b/src/share/vm/graal/graalEnv.cpp Tue Apr 14 22:20:07 2015 -0700 @@ -546,6 +546,12 @@ } } else { nm->set_has_unsafe_access(has_unsafe_access); +#ifdef TARGET_ARCH_x86 + // It might be preferable to set this only for methods which + // use vector instructions but we currently don't track this + // and it probably wouldn't make much difference. + nm->set_has_wide_vectors(UseAVX >= 2); +#endif // Record successful registration. // (Put nm into the task handle *before* publishing to the Java heap.)