Mercurial > hg > truffle
diff src/share/vm/graal/graalEnv.cpp @ 3636:c7d4198a9bce
Use GraalEnv for installing code.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 15 Nov 2011 22:06:02 +0100 |
parents | cb1181db8bec |
children | 2fd96b3040b9 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalEnv.cpp Tue Nov 15 21:15:26 2011 +0100 +++ b/src/share/vm/graal/graalEnv.cpp Tue Nov 15 22:06:02 2011 +0100 @@ -73,7 +73,6 @@ constantPoolHandle cpool, Symbol* sym, bool require_local) { - ASSERT_IN_VM; EXCEPTION_CONTEXT; // Now we need to check the SystemDictionary @@ -243,7 +242,7 @@ int index) { EXCEPTION_CONTEXT; - assert(klass->get_instanceKlass()->is_linked(), "must be linked before using its constan-pool"); + assert(klass->is_linked(), "must be linked before using its constan-pool"); constantPoolHandle cpool(thread, klass->constants()); @@ -416,24 +415,14 @@ //DEBUG_ONLY(test_deps = true); //if (!test_deps) return; - bool print_failures = false; - DEBUG_ONLY(print_failures = !counter_changed); - - bool keep_going = (print_failures || xtty != NULL); - - int violated = 0; - for (Dependencies::DepStream deps(dependencies); deps.next(); ) { klassOop witness = deps.check_dependency(); if (witness != NULL) { - ++violated; - if (print_failures) deps.print_dependency(witness, /*verbose=*/ true); - // If there's no log and we're not sanity-checking, we're done. - if (!keep_going) break; + return false; } } - return violated == 0; + return true; } // ------------------------------------------------------------------