--- 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