< prev index next >

src/hotspot/share/opto/doCall.cpp

Print this page

        

*** 79,88 **** --- 79,94 ---- // Note: When we get profiling during stage-1 compiles, we want to pull // from more specific profile data which pertains to this inlining. // Right now, ignore the information in jvms->caller(), and do method[bci]. ciCallProfile profile = caller->call_profile_at_bci(bci); + #ifndef _LP64 + // Check and handle overflow condition + if (profile.count() < -1) { + profile.set_count(max_jint); + } + #endif // See how many times this site has been invoked. int site_count = profile.count(); int receiver_count = -1; if (call_does_dispatch && UseTypeProfile && profile.has_receiver(0)) { // Receivers in the profile structure are ordered by call counts
< prev index next >