< prev index next >

src/hotspot/share/jfr/support/jfrThreadLocal.cpp

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2012, 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.

@@ -115,13 +115,11 @@
    }
    if (tl->has_java_event_writer()) {
      assert(t->is_Java_thread(), "invariant");
      JfrJavaSupport::destroy_global_jni_handle(tl->java_event_writer());
    }
-   if (tl->_stackframes != NULL) {
-     FREE_C_HEAP_ARRAY(JfrStackFrame, tl->_stackframes);
-   }
+   FREE_C_HEAP_ARRAY(JfrStackFrame, tl->_stackframes);
    tl->_dead = true;
  }
  
  void JfrThreadLocal::on_exit(Thread* t) {
    assert(t != NULL, "invariant");
< prev index next >