Mercurial > hg > graal-compiler
diff src/share/vm/graal/graalRuntime.hpp @ 16628:d3fec84757ed
improved generated sources up-to-date check by using SHA1 digests
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 31 Jul 2014 13:42:56 +0200 |
parents | addc0564e5b5 |
children | 4d0d1dc5db00 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.hpp Thu Jul 31 12:00:23 2014 +0200 +++ b/src/share/vm/graal/graalRuntime.hpp Thu Jul 31 13:42:56 2014 +0200 @@ -33,6 +33,7 @@ static jobject _HotSpotGraalRuntime_instance; static address _external_deopt_i2c_entry; + static const char* _generated_sources_sha1; /** * Reads the OptionValue object from a specified static field. @@ -101,6 +102,11 @@ */ static Handle create_Service(const char* name, TRAPS); + /** + * Checks that _generated_sources_sha1 equals GeneratedSourcesSha1.value. + */ + static void check_generated_sources_sha1(TRAPS); + public: static void initialize_natives(JNIEnv *env, jclass c2vmClass);