8146849: Remove TraceJNIHandleAllocation rather than converting to UL
authorgziemski
Wed, 02 Mar 2016 14:36:55 -0600
changeset 36398 5983833c444a
parent 36393 45a4bd3cfc82
child 36399 2ac30897b062
8146849: Remove TraceJNIHandleAllocation rather than converting to UL Summary: Removed TraceJNIHandleAllocation Reviewed-by: coleenp, dholmes
hotspot/src/share/vm/runtime/globals.hpp
hotspot/src/share/vm/runtime/jniHandles.cpp
--- a/hotspot/src/share/vm/runtime/globals.hpp	Wed Mar 02 17:09:32 2016 +0000
+++ b/hotspot/src/share/vm/runtime/globals.hpp	Wed Mar 02 14:36:55 2016 -0600
@@ -1433,9 +1433,6 @@
   product(bool, VerifyMergedCPBytecodes, true,                              \
           "Verify bytecodes after RedefineClasses constant pool merging")   \
                                                                             \
-  develop(bool, TraceJNIHandleAllocation, false,                            \
-          "Trace allocation/deallocation of JNI handle blocks")             \
-                                                                            \
   develop(bool, TraceBytecodes, false,                                      \
           "Trace bytecode execution")                                       \
                                                                             \
--- a/hotspot/src/share/vm/runtime/jniHandles.cpp	Wed Mar 02 17:09:32 2016 +0000
+++ b/hotspot/src/share/vm/runtime/jniHandles.cpp	Wed Mar 02 14:36:55 2016 -0600
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
@@ -278,10 +278,6 @@
       // Allocate new block
       block = new JNIHandleBlock();
       _blocks_allocated++;
-      if (TraceJNIHandleAllocation) {
-        tty->print_cr("JNIHandleBlock " INTPTR_FORMAT " allocated (%d total blocks)",
-                      p2i(block), _blocks_allocated);
-      }
       if (ZapJNIHandleArea) block->zap();
       #ifndef PRODUCT
       // Link new block to list of all allocated blocks
@@ -499,10 +495,6 @@
     // Not as many free handles as we would like - compute number of new blocks to append
     _allocate_before_rebuild = (extra + block_size_in_oops - 1) / block_size_in_oops;
   }
-  if (TraceJNIHandleAllocation) {
-    tty->print_cr("Rebuild free list JNIHandleBlock " INTPTR_FORMAT " blocks=%d used=%d free=%d add=%d",
-                  p2i(this), blocks, total-free, free, _allocate_before_rebuild);
-  }
 }