src/share/vm/runtime/deoptimization.cpp

changeset 8584
c48b303692bb
parent 8395
1442c833c50e
child 8604
04d83ba48607
child 9327
f96fcd9e1e1b
equal deleted inserted replaced
8580:632e5df21897 8584:c48b303692bb
1879 } else { 1879 } else {
1880 len = jio_snprintf(buf, buflen, "%s%s", 1880 len = jio_snprintf(buf, buflen, "%s%s",
1881 trap_reason_name(reason), 1881 trap_reason_name(reason),
1882 recomp_flag ? " recompiled" : ""); 1882 recomp_flag ? " recompiled" : "");
1883 } 1883 }
1884 if (len >= buflen)
1885 buf[buflen-1] = '\0';
1886 return buf; 1884 return buf;
1887 } 1885 }
1888 1886
1889 1887
1890 //--------------------------------statics-------------------------------------- 1888 //--------------------------------statics--------------------------------------
1950 reason, action); 1948 reason, action);
1951 } else { 1949 } else {
1952 len = jio_snprintf(buf, buflen, "reason='%s' action='%s' index='%d'", 1950 len = jio_snprintf(buf, buflen, "reason='%s' action='%s' index='%d'",
1953 reason, action, unloaded_class_index); 1951 reason, action, unloaded_class_index);
1954 } 1952 }
1955 if (len >= buflen)
1956 buf[buflen-1] = '\0';
1957 return buf; 1953 return buf;
1958 } 1954 }
1959 1955
1960 juint Deoptimization::_deoptimization_hist 1956 juint Deoptimization::_deoptimization_hist
1961 [Deoptimization::Reason_LIMIT] 1957 [Deoptimization::Reason_LIMIT]

mercurial