Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalCodeInstaller.cpp @ 7018:17eeac928874
Put code that is used only in ASSERT mode behind #ifdef ASSERT
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 23 Nov 2012 16:03:39 +0100 |
parents | bb524ee6b8e9 |
children | b6a8f2d23057 c2a3b92c9e79 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp Fri Nov 23 12:18:01 2012 +0100 +++ b/src/share/vm/graal/graalCodeInstaller.cpp Fri Nov 23 16:03:39 2012 +0100 @@ -625,14 +625,13 @@ TRACE_graal_3("relocating (stub) at %p", inst); } else { // method != NULL assert(hotspot_method != NULL, "unexpected JavaMethod"); - assert(debug_info != NULL, "debug info expected"); - +#ifdef ASSERT Method* method = NULL; // we need to check, this might also be an unresolved method if (hotspot_method->is_a(HotSpotResolvedJavaMethod::klass())) { method = getMethodFromHotSpotMethod(hotspot_method); } - +#endif assert(debug_info != NULL, "debug info expected"); TRACE_graal_3("method call");