Jesper Wilhelmsson
5f5b27baba
Merge
2015-03-23 22:08:14 +01:00
Jesper Wilhelmsson
c1bc0a31b2
8074459: Flags handling memory sizes should be of type size_t
...
Changed the type to size_t for flags that handles memory sizes
Reviewed-by: kbarrett, tschatzl
2015-03-03 18:01:27 +01:00
Goetz Lindenmaier
a7edf52a02
8073315: Enable gcc -Wtype-limits and fix upcoming issues
...
Relevant fixes in blockOffsetTable.cpp, os_linux.cpp, parCardTableModRefBS.cpp.
Reviewed-by: jwilhelm, kbarrett, simonis
2015-02-16 14:07:36 +01:00
Erik Helin
be4035c60a
8030646: track collection set membership in one place
...
Reviewed-by: tschatzl, jwilhelm
2015-01-26 10:32:35 +01:00
Kim Barrett
40d3986051
8069016: Add BarrierSet downcast support
...
Add FakeRttiSupport utility and use to provide barrier_set_cast.
Reviewed-by: jmasa, sangheki
2015-02-27 19:52:48 -05:00
Thomas Schatzl
ba4a04aa05
8069760: When iterating over a card, G1 often iterates over much more references than are contained in the card
...
Properly bound the iteration work for objArray-oops.
Reviewed-by: mgerdin, kbarrett
2015-02-02 10:38:39 +01:00
Erik Helin
759740976b
8068971: A heap region being cleared should not belong to the cset
...
Reviewed-by: brutisso, tschatzl
2015-01-16 14:43:45 +01:00
Mikael Gerdin
cc786b287d
8067655: Clean up G1 remembered set oop iteration
...
Pass on the static type G1ParPushHeapRSClosure to allow oop_iterate devirtualization
Reviewed-by: jmasa, kbarrett
2014-12-08 18:57:33 +01:00
David Lindholm
bcf9ea6cbf
8073463: G1 does not mangle freed heap regions
...
Reviewed-by: mgerdin, jwilhelm
2015-03-12 14:09:36 +01:00
Mikael Gerdin
b5ef32af36
8065358: Refactor G1s usage of save_marks and reduce related races
...
Stop using save_marks in G1 related code and make setting the replacement field less racy.
Reviewed-by: brutisso, tschatzl
2014-11-26 10:53:31 +01:00
Mikael Gerdin
4feb7b4dab
8058209: Race in G1 card scanning could allow scanning of memory covered by PLABs
...
Read _top before _gc_time_stamp in saved_mark_word() with LoadLoad order to ensure we get a consistent view
Reviewed-by: brutisso, dcubed, dholmes, stefank
2014-11-14 14:23:25 +01:00
Marcus Larsson
5fd7516136
8043243: convert SCAN_AND_FORWARD, SCAN_AND_ADJUST_POINTERS, SCAN_AND_COMPACT macros to methods
...
Reviewed-by: mgerdin, kbarrett
2014-10-30 12:45:22 +01:00
Marcus Larsson
6d1c35615a
8058298: Separate heap region iterator claim values from the data structures iterated over
...
Reviewed-by: tschatzl, brutisso
2014-10-07 14:54:53 +02:00
Antonios Printezis
da5afa76ab
8058495: G1: normalize names for isHumongous() and friends
...
Reviewed-by: tschatzl, brutisso
2014-09-23 11:43:24 +02:00
Stefan Johansson
0856ec5961
8057710: Refactor G1 heap region default sizes
...
Refactored the defines to instead be static const in a HeapRegionBounds class.
Reviewed-by: mgerdin, tschatzl
2014-09-09 04:48:41 +02:00
Stefan Johansson
3e6d46d28b
8057658: Enable G1 FullGC extensions
...
Refactored the G1 FullGC code to enable it to be extended.
Reviewed-by: mgerdin, brutisso
2014-09-09 00:05:25 +02:00
Stefan Johansson
f8137659f5
8057536: Refactor G1 to allow context specific allocations
...
Splitting out a g1 allocator class to simply specialized allocators which can associate each allocation with a given context.
Reviewed-by: mgerdin, brutisso
2014-09-05 09:49:19 +02:00
Joseph Provino
bc07a22d12
8058534: Remove HeapRegion::_orig_end
...
Also reviewed by kim.barrett@oracle.com
Reviewed-by: tonyp, brutisso, tschatzl
2014-09-19 09:23:55 +02:00
Antonios Printezis
a2984b6c88
8057768: Make heap region region type in G1 HeapRegion explicit
...
Reviewed-by: brutisso, tschatzl
2014-09-15 12:19:31 +02:00
Bengt Rutisson
ff1498ba6b
8025564: gc/memory/UniThread/Linear1 times out during heap verification
...
Reviewed-by: stefank, tschatzl
2014-09-08 10:41:06 +02:00
Mikael Gerdin
10379e7e82
8048268: G1 Code Root Migration performs poorly
...
Replace G1CodeRootSet with a Hashtable based implementation, merge Code Root Migration phase into Code Root Scanning
Reviewed-by: jmasa, brutisso, tschatzl
2014-08-29 13:12:21 +02:00
Bengt Rutisson
bbe82cb85b
8055816: Remove dead code in g1BlockOffsetTable
...
Reviewed-by: tschatzl, mgerdin
2014-08-27 10:51:08 +02:00
Thomas Schatzl
9086b5795f
8054819: Rename HeapRegionSeq to HeapRegionManager
...
Reviewed-by: jwilhelm, jmasa
2014-08-26 09:36:53 +02:00
Thomas Schatzl
2ee5ee89d4
8054818: Refactor HeapRegionSeq to manage heap region and auxiliary data
...
Let HeapRegionSeq manage the heap region and auxiliary data to decrease the amount of responsibilities of G1CollectedHeap, and encapsulate this work from other code.
Reviewed-by: jwilhelm, jmasa, mgerdin, brutisso
2014-08-18 16:10:44 +02:00
Thomas Schatzl
bc56e061ec
8048112: G1 Full GC needs to support the case when the very first region is not available
...
Refactor preparation for compaction during Full GC so that it lazily initializes the first compaction point. This also avoids problems later when the first region may not be committed. Also reviewed by K. Barrett.
Reviewed-by: brutisso
2014-07-21 10:00:31 +02:00
Stefan Karlsson
1b001a2afd
8049421: G1 Class Unloading after completing a concurrent mark cycle
...
Co-authored-by: Mikael Gerdin <mikael.gerdin@oracle.com>
Reviewed-by: tschatzl, ehelin, brutisso, coleenp, roland, iveresov
2014-07-07 10:12:40 +02:00
Stefan Karlsson
ef1e9b3c80
8049420: Backout 8048248 to correct attribution
...
Reviewed-by: ehelin, brutisso
2014-07-07 12:37:11 +02:00
Stefan Karlsson
8c3aced316
8048248: G1 Class Unloading after completing a concurrent mark cycle
...
Reviewed-by: tschatzl, ehelin, brutisso, coleenp, roland, iveresov
2014-07-07 10:12:40 +02:00
Mikael Gerdin
1e1ef4f73f
8047818: G1 HeapRegions can no longer be ContiguousSpaces
...
Change parent of G1OffsetTableContigSpace to CompactibleSpace, reimplement missing functionality
Reviewed-by: stefank, jmasa, tschatzl
2014-06-26 11:36:58 +02:00
Mikael Gerdin
83303777f7
8047821: G1 Does not use the save_marks functionality as intended
...
Rename save_marks to record_top_and_timestamp and remove som unused but related methods
Reviewed-by: stefank, ehelin
2014-06-26 10:00:00 +02:00
Mikael Gerdin
5b7c529bb2
8047819: G1 HeapRegionDCTOC does not need to inherit ContiguousSpaceDCTOC
...
Reviewed-by: stefank, tschatzl
2014-06-25 10:55:10 +02:00
Goetz Lindenmaier
8e7c8f1d88
8044775: Improve usage of umbrella header atomic.inline.hpp
...
Reviewed-by: stefank, kvn
2014-06-04 11:56:44 +02:00
Goetz Lindenmaier
fb62773268
8042737: Introduce umbrella header prefetch.inline.hpp
...
Reviewed-by: twisti, stefank
2014-05-08 15:37:17 +02:00
David Chase
305ec3bd3f
8037816: Fix for 8036122 breaks build with Xcode5/clang
...
Repaired or selectively disabled offending formats; future-proofed with additional checking
Reviewed-by: kvn, jrose, stefank
2014-05-09 16:50:54 -04:00
Goetz Lindenmaier
6e6f0720a9
8042195: Introduce umbrella header orderAccess.inline.hpp
...
Reviewed-by: dholmes, kvn, stefank, twisti
2014-04-29 15:17:27 +02:00
Stefan Karlsson
f2de069dc2
8038628: Remove unused Closure::abort()
...
Reviewed-by: coleenp, jmasa
2014-03-28 14:03:11 +01:00
Jesper Wilhelmsson
1e1ad7f132
8036025: Sort the freelist in order to shrink the heap
...
The free list is being maintained in a sorted fashion and old and humongous regions are allocated from the bottom of the heap while young regions are allocated at the top.
Co-authored-by: Staffan Friberg <staffan.friberg@oracle.com>
Reviewed-by: tschatzl, mgerdin
2014-02-28 15:27:09 +01:00
Thomas Schatzl
d3e28ca682
8027295: Free CSet takes ~50% of young pause time
...
Improve fast card cache iteration and avoid taking locks when freeing the collection set.
Reviewed-by: brutisso
2014-03-17 10:13:18 +01:00
Thomas Schatzl
329e55e7b0
8035406: Improve data structure for Code Cache remembered sets
...
Change the code cache remembered sets data structure from a GrowableArray to a chunked list of nmethods. This makes the data structure more amenable to parallelization, and decreases freeing time.
Reviewed-by: mgerdin, brutisso
2014-03-17 10:12:21 +01:00
Jesper Wilhelmsson
81ba2e32c0
8025856: Fix typos in the GC code
...
Fix about 440 typos in comments in the VM code
Reviewed-by: mgerdin, tschatzl, coleenp, kmo, jcoomes
2014-01-23 14:47:23 +01:00
Thomas Schatzl
6f46da6198
8027756: assert(!hr->isHumongous()) failed: code root in humongous region?
...
Change checks for isHumongous() to continuesHumongous() as installing a code root for a humongous object is valid, but not for continuations of humongous objects. Cleaned up asserts.
Reviewed-by: jmasa, tamao
2013-11-07 15:17:10 +01:00
Jesper Wilhelmsson
0fa3a71c8a
8016309: assert(eden_size > 0 && survivor_size > 0) failed: just checking
...
7057939: jmap shows MaxNewSize=4GB when Java is using parallel collector
Major cleanup of the collectorpolicy classes
Reviewed-by: tschatzl, jcoomes
2013-11-01 17:09:38 +01:00
Lois Foltan
7bf953d005
7195622: CheckUnhandledOops has limited usefulness now
...
Enable CHECK_UNHANDLED_OOPS in fastdebug builds across all supported platforms.
Reviewed-by: coleenp, hseigel, dholmes, stefank, twisti, ihse, rdurbin
2013-09-26 10:25:02 -04:00
Thomas Schatzl
962008f22b
8010722: assert: failed: heap size is too big for compressed oops
...
Use conservative assumptions of required alignment for the various garbage collector components into account when determining the maximum heap size that supports compressed oops. Using this conservative value avoids several circular dependencies in the calculation.
Reviewed-by: stefank, dholmes
2013-09-11 16:25:02 +02:00
Bengt Rutisson
6d7626dba4
8019902: G1: Use the average heap size rather than the minimum heap size to calculate the region size
...
Reviewed-by: tonyp, tschatzl, sjohanss
2013-08-30 07:31:47 +02:00
John Cuthbertson
f63547bf71
7145569: G1: optimize nmethods scanning
...
Add a list of nmethods to the RSet for a region that contain references into the region. Skip scanning the code cache during root scanning and scan the nmethod lists during RSet scanning instead.
Reviewed-by: tschatzl, brutisso, mgerdin, twisti, kvn
2013-08-15 10:52:18 +02:00
Bengt Rutisson
a1e1caf8ba
8021879: G1: G1HeapRegionSize flag value not updated correctly
...
Reviewed-by: tschatzl, jmasa
2013-08-01 09:35:04 +02:00
Coleen Phillimore
39a1c1d6c2
8016325: JVM hangs verifying system dictionary
...
Minimize redundant verifications of Klasses.
Reviewed-by: hseigel, jmasa
2013-06-24 18:55:46 -04:00
John Cuthbertson
c3d6abc4e1
8015244: G1: Verification after a full GC is incorrectly placed
...
In a full GC, move the verification after the GC to after RSet rebuilding. Verify RSet entries during a full GC under control of a flag.
Reviewed-by: tschatzl, brutisso
2013-06-04 10:04:06 -07:00
Brandon Mitchell
6573cbf346
7016955: G1: remove the is_zeroed parameter from the HeapRegion constructor
...
The is_zeroed parameter is no longer used and so can be removed.
Reviewed-by: johnc, jmasa, brutisso
2012-09-19 08:48:10 -07:00