mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux
Reviewed-by: stuefe, coleenp, roland
This commit is contained in:
parent
f21d1afd70
commit
83b3b21342
40 changed files with 129 additions and 124 deletions
|
@ -1795,7 +1795,7 @@ void CMSCollector::collect_in_background(GCCause::Cause cause) {
|
|||
}
|
||||
|
||||
// Used for PrintGC
|
||||
size_t prev_used;
|
||||
size_t prev_used = 0;
|
||||
if (PrintGC && Verbose) {
|
||||
prev_used = _cmsGen->used();
|
||||
}
|
||||
|
@ -7739,7 +7739,7 @@ void SweepClosure::do_post_free_or_garbage_chunk(FreeChunk* fc,
|
|||
|
||||
HeapWord* const fc_addr = (HeapWord*) fc;
|
||||
|
||||
bool coalesce;
|
||||
bool coalesce = false;
|
||||
const size_t left = pointer_delta(fc_addr, freeFinger());
|
||||
const size_t right = chunkSize;
|
||||
switch (FLSCoalescePolicy) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue