Mercurial > hg > truffle
diff src/share/vm/memory/space.cpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | b632e80fc9dc |
children | 2fc0334f613a |
line wrap: on
line diff
--- a/src/share/vm/memory/space.cpp Fri Aug 31 16:39:35 2012 -0700 +++ b/src/share/vm/memory/space.cpp Sat Sep 01 13:25:18 2012 -0400 @@ -178,7 +178,7 @@ } } -DirtyCardToOopClosure* Space::new_dcto_cl(OopClosure* cl, +DirtyCardToOopClosure* Space::new_dcto_cl(ExtendedOopClosure* cl, CardTableModRefBS::PrecisionStyle precision, HeapWord* boundary) { return new DirtyCardToOopClosure(this, cl, precision, boundary); @@ -253,11 +253,11 @@ // (There are only two of these, rather than N, because the split is due // only to the introduction of the FilteringClosure, a local part of the // impl of this abstraction.) -ContiguousSpaceDCTOC__walk_mem_region_with_cl_DEFN(OopClosure) +ContiguousSpaceDCTOC__walk_mem_region_with_cl_DEFN(ExtendedOopClosure) ContiguousSpaceDCTOC__walk_mem_region_with_cl_DEFN(FilteringClosure) DirtyCardToOopClosure* -ContiguousSpace::new_dcto_cl(OopClosure* cl, +ContiguousSpace::new_dcto_cl(ExtendedOopClosure* cl, CardTableModRefBS::PrecisionStyle precision, HeapWord* boundary) { return new ContiguousSpaceDCTOC(this, cl, precision, boundary); @@ -548,7 +548,7 @@ } } -void Space::oop_iterate(OopClosure* blk) { +void Space::oop_iterate(ExtendedOopClosure* blk) { ObjectToOopClosure blk2(blk); object_iterate(&blk2); } @@ -679,7 +679,7 @@ #undef ContigSpace_PAR_OOP_ITERATE_DEFN #endif // SERIALGC -void ContiguousSpace::oop_iterate(OopClosure* blk) { +void ContiguousSpace::oop_iterate(ExtendedOopClosure* blk) { if (is_empty()) return; HeapWord* obj_addr = bottom(); HeapWord* t = top(); @@ -689,7 +689,7 @@ } } -void ContiguousSpace::oop_iterate(MemRegion mr, OopClosure* blk) { +void ContiguousSpace::oop_iterate(MemRegion mr, ExtendedOopClosure* blk) { if (is_empty()) { return; } @@ -1002,17 +1002,7 @@ guarantee(p == top(), "end of last object must match end of space"); } -void OffsetTableContigSpace::serialize_block_offset_array_offsets( - SerializeOopClosure* soc) { - _offsets.serialize(soc); -} - size_t TenuredSpace::allowed_dead_ratio() const { return MarkSweepDeadRatio; } - - -size_t ContigPermSpace::allowed_dead_ratio() const { - return PermMarkSweepDeadRatio; -}