--- a/hotspot/src/cpu/sparc/vm/vtableStubs_sparc.cpp Thu Jan 28 07:11:45 2016 +0100
+++ b/hotspot/src/cpu/sparc/vm/vtableStubs_sparc.cpp Wed Jan 27 14:50:56 2016 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -78,7 +78,7 @@
if (DebugVtables) {
Label L;
// check offset vs vtable length
- __ ld(G3_scratch, InstanceKlass::vtable_length_offset()*wordSize, G5);
+ __ ld(G3_scratch, in_bytes(InstanceKlass::vtable_length_offset()), G5);
__ cmp_and_br_short(G5, vtable_index*vtableEntry::size(), Assembler::greaterUnsigned, Assembler::pt, L);
__ set(vtable_index, O2);
__ call_VM(noreg, CAST_FROM_FN_PTR(address, bad_compiled_vtable_index), O0, O2);