Skip to content

Commit

Permalink
fix comments and remove unused stubid on riscv
Browse files Browse the repository at this point in the history
  • Loading branch information
adinn committed Nov 21, 2024
1 parent 1c0766a commit b068082
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
3 changes: 0 additions & 3 deletions src/hotspot/cpu/riscv/stubDeclarations_riscv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
do_arch_entry, \
do_arch_entry_init) \
do_arch_blob(initial, 10000) \
do_arch_entry(riscv, initial, get_previous_sp, \
get_previous_sp_entry, \
get_previous_sp_entry) \


#define STUBGEN_CONTINUATION_BLOBS_ARCH_DO(do_stub, \
Expand Down
32 changes: 21 additions & 11 deletions src/hotspot/cpu/riscv/stubGenerator_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1096,10 +1096,11 @@ class StubGenerator: public StubCodeGenerator {
}

// Arguments:
// aligned - true => Input and output aligned on a HeapWord == 8-byte boundary
// ignored
// is_oop - true => oop array, so generate store check code
// name - stub name string
// stub_id - is used to name the stub and identify all details of
// how to perform the copy.
//
// entry - is assigned to the stub's post push entry point unless
// it is null
//
// Inputs:
// c_rarg0 - source array address
Expand All @@ -1110,9 +1111,9 @@ class StubGenerator: public StubCodeGenerator {
// the hardware handle it. The two dwords within qwords that span
// cache line boundaries will still be loaded and stored atomically.
//
// Side Effects:
// disjoint_int_copy_entry is set to the no-overlap entry point
// used by generate_conjoint_int_oop_copy().
// Side Effects: entry is set to the (post push) entry point so it
// can be used by the corresponding conjoint copy
// method
//
address generate_disjoint_copy(StubGenStubId stub_id, address* entry) {
size_t size;
Expand Down Expand Up @@ -1248,10 +1249,15 @@ class StubGenerator: public StubCodeGenerator {
}

// Arguments:
// aligned - true => Input and output aligned on a HeapWord == 8-byte boundary
// ignored
// is_oop - true => oop array, so generate store check code
// name - stub name string
// stub_id - is used to name the stub and identify all details of
// how to perform the copy.
//
// nooverlap_target - identifes the (post push) entry for the
// corresponding disjoint copy routine which can be
// jumped to if the ranges do not actually overlap
//
// entry - is assigned to the stub's post push entry point unless
// it is null
//
// Inputs:
// c_rarg0 - source array address
Expand All @@ -1262,6 +1268,10 @@ class StubGenerator: public StubCodeGenerator {
// the hardware handle it. The two dwords within qwords that span
// cache line boundaries will still be loaded and stored atomically.
//
// Side Effects:
// entry is set to the no-overlap entry point so it can be used by
// some other conjoint copy method
//
address generate_conjoint_copy(StubGenStubId stub_id, address nooverlap_target, address *entry) {
const Register s = c_rarg0, d = c_rarg1, count = c_rarg2;
RegSet saved_regs = RegSet::of(s, d, count);
Expand Down

0 comments on commit b068082

Please sign in to comment.