Mercurial > hg > graal-compiler
diff src/share/vm/runtime/vmStructs.cpp @ 15805:dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 20 May 2014 13:46:34 -0700 |
parents | 55be15d24e45 |
children | 52b4284cb496 |
line wrap: on
line diff
--- a/src/share/vm/runtime/vmStructs.cpp Tue May 20 21:38:31 2014 +0200 +++ b/src/share/vm/runtime/vmStructs.cpp Tue May 20 13:46:34 2014 -0700 @@ -70,6 +70,9 @@ #include "oops/constMethod.hpp" #include "oops/constantPool.hpp" #include "oops/cpCache.hpp" +#ifdef GRAAL +#include "oops/fieldStreams.hpp" +#endif #include "oops/instanceClassLoaderKlass.hpp" #include "oops/instanceKlass.hpp" #include "oops/instanceMirrorKlass.hpp" @@ -105,6 +108,7 @@ #include "utilities/hashtable.hpp" #include "utilities/macros.hpp" #ifdef GRAAL +# include "graal/graalRuntime.hpp" # include "graal/vmStructs_graal.hpp" # include "hsail/vm/vmStructs_hsail.hpp" #endif @@ -3479,3 +3483,11 @@ } } #endif + + +#ifdef GRAAL +// Emit intialization code for HotSpotVMConfig. It's placed here so +// it can take advantage of the relaxed access checking enjoyed by +// VMStructs. +#include "HotSpotVMConfig.inline.hpp" +#endif