diff src/share/vm/code/compiledIC.cpp @ 7125:1baf7f1e3f23

decoupled C++ Graal runtime from C1
author Doug Simon <doug.simon@oracle.com>
date Mon, 03 Dec 2012 15:32:17 +0100
parents 1d419abb0081
children c66aa27ef4da
line wrap: on
line diff
--- a/src/share/vm/code/compiledIC.cpp	Mon Dec 03 13:56:13 2012 +0100
+++ b/src/share/vm/code/compiledIC.cpp	Mon Dec 03 15:32:17 2012 +0100
@@ -239,8 +239,8 @@
   // for calling directly to vep without using the inline cache (i.e., cached_value == NULL)
 #ifdef ASSERT
   CodeBlob* caller = CodeCache::find_blob_unsafe(instruction_address());
-  bool is_c1_method = caller->is_compiled_by_c1();
-  assert( is_c1_method ||
+  bool is_c1_or_graal_method = caller->is_compiled_by_c1() || caller->is_compiled_by_graal();
+  assert( is_c1_or_graal_method ||
          !is_monomorphic ||
          is_optimized() ||
          (cached_metadata() != NULL && cached_metadata()->is_klass()), "sanity check");