--- old/src/share/vm/opto/library_call.cpp 2012-02-22 14:04:39.880520800 +0100 +++ new/src/share/vm/opto/library_call.cpp 2012-02-22 14:04:39.638507000 +0100 @@ -337,11 +337,6 @@ if (!JDK_Version::is_gte_jdk14x_version()) return NULL; break; - case vmIntrinsics::_bitCount_i: - case vmIntrinsics::_bitCount_l: - if (!UsePopCountInstruction) return NULL; - break; - case vmIntrinsics::_Reference_get: // It is only when G1 is enabled that we absolutely // need to use the intrinsic version of Reference.get() @@ -416,14 +411,12 @@ return kit.transfer_exceptions_into_jvms(); } - if (PrintIntrinsics) { + // The intrinsic bailed out + if (PrintIntrinsics || PrintInlining NOT_PRODUCT( || PrintOptoInlining) ) { + const char* msg = is_virtual() ? "failed to inline (intrinsic, virtual)" : "failed to inline (intrinsic)"; if (jvms->has_method()) { // Not a root compile. - tty->print("Did not inline intrinsic %s%s at bci:%d in", - vmIntrinsics::name_at(intrinsic_id()), - (is_virtual() ? " (virtual)" : ""), kit.bci()); - kit.caller()->print_short_name(tty); - tty->print_cr(" (%d bytes)", kit.caller()->code_size()); + CompileTask::print_inlining(kit.callee(), jvms->depth() - 1, kit.bci(), msg); } else { // Root compile tty->print("Did not generate intrinsic %s%s at bci:%d in",