11/*
2- * Copyright (c) 2016, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2016, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -374,7 +374,6 @@ size_t JfrCheckpointManager::write_threads(Thread* thread) {
374374 assert (thread != NULL , " invariant" );
375375 // can safepoint here
376376 ThreadInVMfromNative transition (thread->as_Java_thread ());
377- ResetNoHandleMark rnhm;
378377 ResourceMark rm (thread);
379378 HandleMark hm (thread);
380379 JfrCheckpointWriter writer (true , thread, THREADS);
@@ -402,7 +401,6 @@ void JfrCheckpointManager::clear_type_set() {
402401 DEBUG_ONLY (JfrJavaSupport::check_java_thread_in_native (t));
403402 // can safepoint here
404403 ThreadInVMfromNative transition (t);
405- ResetNoHandleMark rnhm;
406404 MutexLocker cld_lock (ClassLoaderDataGraph_lock);
407405 MutexLocker module_lock (Module_lock);
408406 JfrTypeSet::clear ();
@@ -414,7 +412,6 @@ void JfrCheckpointManager::write_type_set() {
414412 DEBUG_ONLY (JfrJavaSupport::check_java_thread_in_native (thread));
415413 // can safepoint here
416414 ThreadInVMfromNative transition (thread);
417- ResetNoHandleMark rnhm;
418415 MutexLocker cld_lock (thread, ClassLoaderDataGraph_lock);
419416 MutexLocker module_lock (thread, Module_lock);
420417 if (LeakProfiler::is_running ()) {
@@ -454,7 +451,6 @@ size_t JfrCheckpointManager::flush_type_set() {
454451 if (thread->is_Java_thread ()) {
455452 // can safepoint here
456453 ThreadInVMfromNative transition (thread->as_Java_thread ());
457- ResetNoHandleMark rnhm;
458454 elements = ::flush_type_set (thread);
459455 } else {
460456 elements = ::flush_type_set (thread);
0 commit comments