Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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/coreclr/gc/gcinternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2908,7 +2908,7 @@ gc_heap::dt_high_memory_load_p()
return ((settings.entry_memory_load >= high_memory_load_th) || g_low_memory_status);
}

#if defined(TARGET_AMD64) || defined(TARGET_X86) || defined(TARGET_ARM64) || defined(TARGET_RISCV64)
#if defined(TARGET_AMD64) || defined(TARGET_X86) || defined(TARGET_ARM64) || defined(TARGET_RISCV64) || defined(TARGET_LOONGARCH64)
#ifndef PREFETCH
#define PREFETCH
#endif
Expand Down
6 changes: 6 additions & 0 deletions src/coreclr/jit/emitloongarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3937,6 +3937,12 @@ size_t emitter::emitOutputInstr(insGroup* ig, instrDesc* id, BYTE** dp)
assert(!"JitBreakEmitOutputInstr reached");
}
}

// Output any delta in GC info.
if (EMIT_GC_VERBOSE || m_compiler->opts.disasmWithGC)
{
emitDispGCInfoDelta();
}
#endif

/* All instructions are expected to generate code */
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/runtime/loongarch64/AllocFast.S
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ LOCAL_LABEL(StringSizeOverflow):
ori $a2, $a2, 0xfff
bltu $a2, $a1, LOCAL_LABEL(ArraySizeOverflow)

ld.h $a2, $a0, OFFSETOF__MethodTable__m_usComponentSize
mulw.d.w $a2, $a1, $a2
ld.hu $a2, $a0, OFFSETOF__MethodTable__m_usComponentSize
mulw.d.wu $a2, $a1, $a2
addi.d $a2, $a2, SZARRAY_BASE_SIZE + 7
bstrins.d $a2, $r0, 2, 0

Expand Down
Loading