< prev index next >

src/hotspot/share/opto/bytecodeInfo.cpp

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -364,14 +364,15 @@
       } else {
         should_delay = true;
       }
     }
 
-    if (!UseInterpreter &&
+    if ((!UseInterpreter || InlineConstructors) &&
         is_init_with_ea(callee_method, caller_method, C)) {
-      // Escape Analysis stress testing when running Xcomp:
+      // Escape Analysis stress testing when running Xcomp or if InlineConstructors is true:
       // inline constructors even if they are not reached.
+      set_msg("constructor");
     } else if (forced_inline()) {
       // Inlining was forced by CompilerOracle, ciReplay or annotation
     } else if (profile.count() == 0) {
       // don't inline unreached call sites
        set_msg("call site not reached");
< prev index next >