mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8059100: SIGSEGV VirtualMemoryTracker::remove_released_region
Disallow increasing native memory tracking level Reviewed-by: hseigel, ctornqvi, gtriantafill
This commit is contained in:
parent
fe03f41db8
commit
3a86f9cd27
12 changed files with 134 additions and 119 deletions
|
@ -62,11 +62,6 @@ class VirtualMemory VALUE_OBJ_CLASS_SPEC {
|
|||
_committed -= sz;
|
||||
}
|
||||
|
||||
void reset() {
|
||||
_reserved = 0;
|
||||
_committed = 0;
|
||||
}
|
||||
|
||||
inline size_t reserved() const { return _reserved; }
|
||||
inline size_t committed() const { return _committed; }
|
||||
};
|
||||
|
@ -123,12 +118,6 @@ class VirtualMemorySnapshot : public ResourceObj {
|
|||
return amount;
|
||||
}
|
||||
|
||||
inline void reset() {
|
||||
for (int index = 0; index < mt_number_of_types; index ++) {
|
||||
_virtual_memory[index].reset();
|
||||
}
|
||||
}
|
||||
|
||||
void copy_to(VirtualMemorySnapshot* s) {
|
||||
for (int index = 0; index < mt_number_of_types; index ++) {
|
||||
s->_virtual_memory[index] = _virtual_memory[index];
|
||||
|
@ -174,10 +163,6 @@ class VirtualMemorySummary : AllStatic {
|
|||
as_snapshot()->copy_to(s);
|
||||
}
|
||||
|
||||
static inline void reset() {
|
||||
as_snapshot()->reset();
|
||||
}
|
||||
|
||||
static VirtualMemorySnapshot* as_snapshot() {
|
||||
return (VirtualMemorySnapshot*)_snapshot;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue