In the Java virtual machine(JVM), traditional counter-based hotspot-detecting method usually can not get the caller-callee relationship, therefore, the dynamic compiler which applied this scheme would lose some optimization opportunities, such as method inlining. A dynamic inlining scheme based on online feedback information was proposed. Compared with the algorithms presented, the new method introduced BC Map, it was constructed by the baseline compiler when a method was compiled for the first time. BC Map can identify the index of the bytecode that invoked method M in its caller. With constructing Guarded Rec record, the compiler can get the type of virtual method’s receiver object correctly, and then identify the relationship between caller and callee. The guarded inlining guided by this information can avoid identifying the type of virtual method’s receiver object statically, get the dynamic information more precisely, and then it can increase applications’ performance.