Skip to content

Commit 6fd2324

Browse files
author
duke
committedFeb 21, 2024
Automatic merge of jdk:master into master
2 parents 705472e + 51e2dde commit 6fd2324

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

‎src/hotspot/cpu/riscv/globalDefinitions_riscv.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ const bool CCallingConventionRequiresIntsAsLongs = false;
5050

5151
#define USE_POINTERS_TO_REGISTER_IMPL_ARRAY
5252

53+
// auipc useable for all cc -> cc calls and jumps
54+
#define CODE_CACHE_SIZE_LIMIT ((2*G)-(2*K))
55+
5356
// The expected size in bytes of a cache line.
5457
#define DEFAULT_CACHE_LINE_SIZE 64
5558

‎src/hotspot/share/utilities/globalDefinitions.hpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -581,13 +581,16 @@ extern uint64_t OopEncodingHeapMax;
581581

582582
// Machine dependent stuff
583583

584+
#include CPU_HEADER(globalDefinitions)
585+
584586
// The maximum size of the code cache. Can be overridden by targets.
587+
#ifndef CODE_CACHE_SIZE_LIMIT
585588
#define CODE_CACHE_SIZE_LIMIT (2*G)
589+
#endif
590+
586591
// Allow targets to reduce the default size of the code cache.
587592
#define CODE_CACHE_DEFAULT_LIMIT CODE_CACHE_SIZE_LIMIT
588593

589-
#include CPU_HEADER(globalDefinitions)
590-
591594
// To assure the IRIW property on processors that are not multiple copy
592595
// atomic, sync instructions must be issued between volatile reads to
593596
// assure their ordering, instead of after volatile stores.

0 commit comments

Comments
 (0)
Please sign in to comment.