8158237: JVMTI hides critical debug information for memory leak tracing
authorcoleenp
Mon, 13 Jun 2016 09:02:47 -0400
changeset 39275 c6cea32506a4
parent 39273 1d8c0c1e59d6
child 39276 80426750d085
8158237: JVMTI hides critical debug information for memory leak tracing Summary: remove _backtrace as hidden field, original problem no longer exists Reviewed-by: sspitsyn, jiangli
hotspot/src/share/vm/runtime/reflectionUtils.cpp
--- a/hotspot/src/share/vm/runtime/reflectionUtils.cpp	Mon Jun 13 10:10:35 2016 +0200
+++ b/hotspot/src/share/vm/runtime/reflectionUtils.cpp	Mon Jun 13 09:02:47 2016 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2016, 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
@@ -73,10 +73,7 @@
 
 
 void FilteredFieldsMap::initialize() {
-  int offset;
-  offset = java_lang_Throwable::get_backtrace_offset();
-  _filtered_fields->append(new FilteredField(SystemDictionary::Throwable_klass(), offset));
-  offset = reflect_ConstantPool::oop_offset();
+  int offset = reflect_ConstantPool::oop_offset();
   _filtered_fields->append(new FilteredField(SystemDictionary::reflect_ConstantPool_klass(), offset));
   offset = reflect_UnsafeStaticFieldAccessorImpl::base_offset();
   _filtered_fields->append(new FilteredField(SystemDictionary::reflect_UnsafeStaticFieldAccessorImpl_klass(), offset));