Mercurial > hg > truffle
changeset 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 | 70bff0fa64b1 |
children | 6838696d54ac 231cfb5490d3 c2a3b92c9e79 |
files | src/share/vm/graal/graalCodeInstaller.cpp |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
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");