mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
6700789: G1: Enable use of compressed oops with G1 heaps
Modifications to G1 so as to allow the use of compressed oops. Reviewed-by: apetrusenko, coleenp, jmasa, kvn, never, phh, tonyp
This commit is contained in:
parent
50d7db1805
commit
075c1335cb
58 changed files with 1233 additions and 1175 deletions
|
@ -885,7 +885,7 @@ void ParallelScavengeHeap::print_tracing_info() const {
|
|||
}
|
||||
|
||||
|
||||
void ParallelScavengeHeap::verify(bool allow_dirty, bool silent) {
|
||||
void ParallelScavengeHeap::verify(bool allow_dirty, bool silent, bool option /* ignored */) {
|
||||
// Why do we need the total_collections()-filter below?
|
||||
if (total_collections() > 0) {
|
||||
if (!silent) {
|
||||
|
|
|
@ -217,7 +217,7 @@ class ParallelScavengeHeap : public CollectedHeap {
|
|||
virtual void gc_threads_do(ThreadClosure* tc) const;
|
||||
virtual void print_tracing_info() const;
|
||||
|
||||
void verify(bool allow_dirty, bool silent);
|
||||
void verify(bool allow_dirty, bool silent, bool /* option */);
|
||||
|
||||
void print_heap_change(size_t prev_used);
|
||||
|
||||
|
|
|
@ -117,6 +117,7 @@ inline void PSPromotionManager::process_popped_location_depth(StarTask p) {
|
|||
process_array_chunk(old);
|
||||
} else {
|
||||
if (p.is_narrow()) {
|
||||
assert(UseCompressedOops, "Error");
|
||||
PSScavenge::copy_and_push_safe_barrier(this, (narrowOop*)p);
|
||||
} else {
|
||||
PSScavenge::copy_and_push_safe_barrier(this, (oop*)p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue