hotspot/src/share/vm/opto/graphKit.cpp
changeset 37291 f13632a2a389
parent 37287 c2660335bf81
child 38030 93f24e7b3c43
child 37296 613278eb2a1e
--- a/hotspot/src/share/vm/opto/graphKit.cpp	Tue Apr 05 10:11:07 2016 +0000
+++ b/hotspot/src/share/vm/opto/graphKit.cpp	Tue Apr 05 17:51:44 2016 +0200
@@ -1190,11 +1190,6 @@
                                   bool speculative) {
   assert(!assert_null || null_control == NULL, "not both at once");
   if (stopped())  return top();
-  if (!GenerateCompilerNullChecks && !assert_null && null_control == NULL) {
-    // For some performance testing, we may wish to suppress null checking.
-    value = cast_not_null(value);   // Make it appear to be non-null (4962416).
-    return value;
-  }
   NOT_PRODUCT(explicit_null_checks_inserted++);
 
   // Construct NULL check