View | Details | Raw Unified | Return to bug 194988
Collapse All | Expand All

(-)hotspot/src/share/vm/classfile/javaClasses.cpp (-1 / +1 lines)
Lines 1242-1248 Link Here
1242
// Helper backtrace functions to store bci|version together.
1242
// Helper backtrace functions to store bci|version together.
1243
static inline int merge_bci_and_version(int bci, int version) {
1243
static inline int merge_bci_and_version(int bci, int version) {
1244
  // only store u2 for version, checking for overflow.
1244
  // only store u2 for version, checking for overflow.
1245
  if (version > USHRT_MAX || version < 0) version = MAX_VERSION;
1245
  if (version < 0 || (static_cast<unsigned int>(version) > USHRT_MAX)) version = MAX_VERSION;
1246
  assert((jushort)bci == bci, "bci should be short");
1246
  assert((jushort)bci == bci, "bci should be short");
1247
  return build_int_from_shorts(version, bci);
1247
  return build_int_from_shorts(version, bci);
1248
}
1248
}

Return to bug 194988