# HG changeset patch # User Gilles Duboscq # Date 1353683019 -3600 # Node ID 17eeac928874df1e0c25420bbccf313c2e218537 # Parent 70bff0fa64b14434f99879fbdb318dca2002c0a3 Put code that is used only in ASSERT mode behind #ifdef ASSERT diff -r 70bff0fa64b1 -r 17eeac928874 src/share/vm/graal/graalCodeInstaller.cpp --- 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");