diff src/share/vm/prims/jvmtiCodeBlobEvents.cpp @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents d8041d695d19
children 52b4284cb496
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiCodeBlobEvents.cpp	Tue Apr 01 14:09:03 2014 +0200
+++ b/src/share/vm/prims/jvmtiCodeBlobEvents.cpp	Tue Apr 01 13:57:07 2014 +0200
@@ -26,7 +26,6 @@
 #include "code/codeBlob.hpp"
 #include "code/codeCache.hpp"
 #include "code/scopeDesc.hpp"
-#include "code/vtableStubs.hpp"
 #include "memory/resourceArea.hpp"
 #include "oops/oop.inline.hpp"
 #include "prims/jvmtiCodeBlobEvents.hpp"
@@ -64,7 +63,6 @@
   // used during a collection
   static GrowableArray<JvmtiCodeBlobDesc*>* _global_code_blobs;
   static void do_blob(CodeBlob* cb);
-  static void do_vtable_stub(VtableStub* vs);
  public:
   CodeBlobCollector() {
     _code_blobs = NULL;
@@ -121,10 +119,6 @@
   if (cb->is_nmethod()) {
     return;
   }
-  // exclude VtableStubs, which are processed separately
-  if (cb->is_buffer_blob() && strcmp(cb->name(), "vtable chunks") == 0) {
-    return;
-  }
 
   // check if this starting address has been seen already - the
   // assumption is that stubs are inserted into the list before the
@@ -142,13 +136,6 @@
   _global_code_blobs->append(scb);
 }
 
-// called for each VtableStub in VtableStubs
-
-void CodeBlobCollector::do_vtable_stub(VtableStub* vs) {
-    JvmtiCodeBlobDesc* scb = new JvmtiCodeBlobDesc(vs->is_vtable_stub() ? "vtable stub" : "itable stub",
-                                                   vs->code_begin(), vs->code_end());
-    _global_code_blobs->append(scb);
-}
 
 // collects a list of CodeBlobs in the CodeCache.
 //
@@ -179,10 +166,6 @@
     _global_code_blobs->append(new JvmtiCodeBlobDesc(desc->name(), desc->begin(), desc->end()));
   }
 
-  // Vtable stubs are not described with StubCodeDesc,
-  // process them separately
-  VtableStubs::vtable_stub_do(do_vtable_stub);
-
   // next iterate over all the non-nmethod code blobs and add them to
   // the list - as noted above this will filter out duplicates and
   // enclosing blobs.