mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-07 05:28:52 +00:00
Fix 32-bit problem
This commit is contained in:
parent
18811c5c8b
commit
8084ac2b16
@ -1132,10 +1132,9 @@ class RelocateBufferToRequested : public BitMapClosure {
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef _LP64
|
||||
int ArchiveBuilder::precomputed_narrow_klass_shift() {
|
||||
// Legacy Mode:
|
||||
// We use 32 bits for narrowKlass, which should cover the full 4G Klass range. Shift can be 0.
|
||||
// Standard Mode:
|
||||
// We use 32 bits for narrowKlass, which should cover a full 4G Klass range. Shift can be 0.
|
||||
// CompactObjectHeader Mode:
|
||||
// narrowKlass is much smaller, and we use the highest possible shift value to later get the maximum
|
||||
// Klass encoding range.
|
||||
@ -1144,7 +1143,6 @@ int ArchiveBuilder::precomputed_narrow_klass_shift() {
|
||||
// narrow Klass IDs at archive load time.
|
||||
return UseCompactObjectHeaders ? CompressedKlassPointers::max_shift() : 0;
|
||||
}
|
||||
#endif // _LP64
|
||||
|
||||
void ArchiveBuilder::relocate_to_requested() {
|
||||
if (!ro_region()->is_packed()) {
|
||||
|
||||
@ -511,7 +511,6 @@ public:
|
||||
void print_stats();
|
||||
void report_out_of_space(const char* name, size_t needed_bytes);
|
||||
|
||||
#ifdef _LP64
|
||||
// The CDS archive contains pre-computed narrow Klass IDs. It carries them in the headers of
|
||||
// archived heap objects. With +UseCompactObjectHeaders, it also carries them in prototypes
|
||||
// in Klass.
|
||||
@ -531,7 +530,6 @@ public:
|
||||
// TinyClassPointer Mode:
|
||||
// We use the highest possible shift value to maximize the encoding range size.
|
||||
static int precomputed_narrow_klass_shift();
|
||||
#endif // _LP64
|
||||
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user