# HG changeset patch # User zgu # Date 1593204347 14400 # Fri Jun 26 16:45:47 2020 -0400 # Node ID 74cee77377cc524251474670c686015aad9c29d0 # Parent 3fa59689c0fef25f9656a51875ddb2e8fbe3ad29 8248426: NMT: VirtualMemoryTracker::split_reserved_region() does not properly update summary counting diff --git a/src/hotspot/share/services/virtualMemoryTracker.cpp b/src/hotspot/share/services/virtualMemoryTracker.cpp --- a/src/hotspot/share/services/virtualMemoryTracker.cpp +++ b/src/hotspot/share/services/virtualMemoryTracker.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2020, 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 @@ -512,7 +512,7 @@ NativeCallStack original_stack = *reserved_rgn->call_stack(); MEMFLAGS original_flags = reserved_rgn->flag(); - _reserved_regions->remove(rgn); + remove_released_region(addr, size); // Now, create two new regions. add_reserved_region(addr, split, original_stack, original_flags);