mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8257140: Crash in JvmtiTagMap::flush_object_free_events()
Reviewed-by: sspitsyn, kbarrett
This commit is contained in:
parent
cfb50a9cb7
commit
2508bc7c58
5 changed files with 25 additions and 8 deletions
|
@ -256,11 +256,11 @@ JvmtiEnvBase::env_dispose() {
|
|||
// Same situation as with events (see above)
|
||||
set_native_method_prefixes(0, NULL);
|
||||
|
||||
JvmtiTagMap* tag_map_to_deallocate = _tag_map;
|
||||
set_tag_map(NULL);
|
||||
// A tag map can be big, deallocate it now
|
||||
if (tag_map_to_deallocate != NULL) {
|
||||
delete tag_map_to_deallocate;
|
||||
JvmtiTagMap* tag_map_to_clear = tag_map_acquire();
|
||||
// A tag map can be big, clear it now to save memory until
|
||||
// the destructor runs.
|
||||
if (tag_map_to_clear != NULL) {
|
||||
tag_map_to_clear->clear();
|
||||
}
|
||||
|
||||
_needs_clean_up = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue