< prev index next >
src/hotspot/share/gc/z/zLiveMap.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -33,17 +33,17 @@
friend class ZLiveMapTest;
private:
static const size_t nsegments = 64;
- volatile uint32_t _seqnum; // Mark sequence number
- volatile uint32_t _live_objects; // Number of live objects
- volatile size_t _live_bytes; // Number of live bytes
- BitMap::bm_word_t _segment_live_bits; // Segment live bits
- BitMap::bm_word_t _segment_claim_bits; // Segment claim bits
- ZBitMap _bitmap; // Mark bitmap
- const size_t _shift; // Segment shift
+ volatile uint32_t _seqnum;
+ volatile uint32_t _live_objects;
+ volatile size_t _live_bytes;
+ BitMap::bm_word_t _segment_live_bits;
+ BitMap::bm_word_t _segment_claim_bits;
+ ZBitMap _bitmap;
+ size_t _segment_shift;
const BitMapView segment_live_bits() const;
const BitMapView segment_claim_bits() const;
BitMapView segment_live_bits();
@@ -70,10 +70,11 @@
public:
ZLiveMap(uint32_t size);
void reset();
+ void resize(uint32_t size);
bool is_marked() const;
uint32_t live_objects() const;
size_t live_bytes() const;
< prev index next >