Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ void MacroAssembler::lookup_interface_method(Register recv_klass,

ldrw(scan_temp, Address(recv_klass, Klass::vtable_length_offset()));

// %%% Could store the aligned, prescaled offset in the klass.
// Could store the aligned, prescaled offset in the klass.
// lea(scan_temp, Address(recv_klass, scan_temp, times_vte_scale, vtable_base));
lea(scan_temp, Address(recv_klass, scan_temp, Address::lsl(3)));
add(scan_temp, scan_temp, vtable_base);
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/ppc/macroAssembler_ppc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ void MacroAssembler::lookup_interface_method(Register recv_klass,
int log_vte_size= exact_log2(vtableEntry::size_in_bytes());

lwz(scan_temp, in_bytes(Klass::vtable_length_offset()), recv_klass);
// %%% We should store the aligned, prescaled offset in the klass.
// We should store the aligned, prescaled offset in the klass.
// Then the next several instructions would fold away.

sldi(scan_temp, scan_temp, log_vte_size);
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/macroAssembler_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2502,7 +2502,7 @@ void MacroAssembler::lookup_interface_method(Register recv_klass,

lwu(scan_tmp, Address(recv_klass, Klass::vtable_length_offset()));

// %%% Could store the aligned, prescaled offset in the klass.
// Could store the aligned, prescaled offset in the klass.
shadd(scan_tmp, scan_tmp, recv_klass, scan_tmp, 3);
add(scan_tmp, scan_tmp, vtable_base);

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/x86/macroAssembler_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4339,7 +4339,7 @@ void MacroAssembler::lookup_interface_method(Register recv_klass,

movl(scan_temp, Address(recv_klass, Klass::vtable_length_offset()));

// %%% Could store the aligned, prescaled offset in the klass.
// Could store the aligned, prescaled offset in the klass.
lea(scan_temp, Address(recv_klass, scan_temp, times_vte_scale, vtable_base));

if (return_method) {
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/memory/heapInspection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ KlassInfoTable::~KlassInfoTable() {
}

uint KlassInfoTable::hash(const Klass* p) {
return (uint)(((uintptr_t)p - (uintptr_t)_ref) >> 2);
return (uint)(((uintptr_t)p - _ref) >> 2);
}

KlassInfoEntry* KlassInfoTable::lookup(Klass* k) {
Expand Down