Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciEnv.cpp @ 22299:7b4a47fcc4c0
Move most of jdk.internal.jvmci.debug back into com.oracle.graal.debug
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 22 Jul 2015 23:27:39 -0700 |
parents | df9d2375512a |
children | 0915f5bfdfaa |
comparison
equal
deleted
inserted
replaced
22298:c28cb37b2e1d | 22299:7b4a47fcc4c0 |
---|---|
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 #include "precompiled.hpp" | 25 #include "precompiled.hpp" |
26 #include "jvmci/jvmciEnv.hpp" | 26 #include "jvmci/jvmciEnv.hpp" |
27 #include "classfile/javaAssertions.hpp" | |
27 #include "classfile/systemDictionary.hpp" | 28 #include "classfile/systemDictionary.hpp" |
28 #include "classfile/vmSymbols.hpp" | 29 #include "classfile/vmSymbols.hpp" |
29 #include "code/scopeDesc.hpp" | 30 #include "code/scopeDesc.hpp" |
30 #include "runtime/sweeper.hpp" | 31 #include "runtime/sweeper.hpp" |
31 #include "compiler/compileBroker.hpp" | 32 #include "compiler/compileBroker.hpp" |
433 | 434 |
434 // Dependencies must be checked when the system dictionary changes | 435 // Dependencies must be checked when the system dictionary changes |
435 // or if we don't know whether it has changed (i.e., env == NULL). | 436 // or if we don't know whether it has changed (i.e., env == NULL). |
436 // In debug mode, always check dependencies. | 437 // In debug mode, always check dependencies. |
437 bool counter_changed = env != NULL && env->_system_dictionary_modification_counter != SystemDictionary::number_of_modifications(); | 438 bool counter_changed = env != NULL && env->_system_dictionary_modification_counter != SystemDictionary::number_of_modifications(); |
438 bool verify_deps = env == NULL || trueInDebug || Debug::ENABLED(); | 439 bool verify_deps = env == NULL || trueInDebug || JavaAssertions::enabled(SystemDictionary::HotSpotInstalledCode_klass()->name()->as_C_string(), true); |
439 if (!counter_changed && !verify_deps) { | 440 if (!counter_changed && !verify_deps) { |
440 return JVMCIEnv::ok; | 441 return JVMCIEnv::ok; |
441 } | 442 } |
442 | 443 |
443 for (Dependencies::DepStream deps(dependencies); deps.next(); ) { | 444 for (Dependencies::DepStream deps(dependencies); deps.next(); ) { |