Mercurial > hg > graal-compiler
comparison src/share/vm/code/compiledIC.cpp @ 15069:d1b948f9db34
restore compiledic assert until source of failures understood
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Fri, 11 Apr 2014 10:30:52 -0700 |
parents | 5c71dcf0915d |
children | 9f7eac122d61 |
comparison
equal
deleted
inserted
replaced
15068:a4ed58c2a589 | 15069:d1b948f9db34 |
---|---|
229 // Check that the cached_value is a klass for non-optimized monomorphic calls | 229 // Check that the cached_value is a klass for non-optimized monomorphic calls |
230 // This assertion is invalid for compiler1: a call that does not look optimized (no static stub) can be used | 230 // This assertion is invalid for compiler1: a call that does not look optimized (no static stub) can be used |
231 // for calling directly to vep without using the inline cache (i.e., cached_value == NULL) | 231 // for calling directly to vep without using the inline cache (i.e., cached_value == NULL) |
232 #ifdef ASSERT | 232 #ifdef ASSERT |
233 CodeBlob* caller = CodeCache::find_blob_unsafe(instruction_address()); | 233 CodeBlob* caller = CodeCache::find_blob_unsafe(instruction_address()); |
234 bool is_c1_method = caller->is_compiled_by_c1(); | 234 bool is_c1_or_graal_method = caller->is_compiled_by_c1() || caller->is_compiled_by_graal(); |
235 assert( is_c1_method || | 235 assert( is_c1_or_graal_method || |
236 !is_monomorphic || | 236 !is_monomorphic || |
237 is_optimized() || | 237 is_optimized() || |
238 (cached_metadata() != NULL && cached_metadata()->is_klass()), "sanity check"); | 238 (cached_metadata() != NULL && cached_metadata()->is_klass()), "sanity check"); |
239 #endif // ASSERT | 239 #endif // ASSERT |
240 return is_monomorphic; | 240 return is_monomorphic; |