--- old/src/hotspot/share/opto/bytecodeInfo.cpp 2019-03-30 14:23:22.646961903 +0800 +++ new/src/hotspot/share/opto/bytecodeInfo.cpp 2019-03-30 14:23:22.454962064 +0800 @@ -1,5 +1,5 @@ /* - * 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 @@ -366,10 +366,11 @@ } } - 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) {