src/hotspot/share/prims/jvmtiThreadState.hpp
changeset 50578 e2a7f431f65c
parent 48157 7c4d43c26352
child 53244 9807daeb47c4
equal deleted inserted replaced
50577:bf7e2684cd0a 50578:e2a7f431f65c
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018 Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   111 
   111 
   112   // holds the current dynamic code event collector, NULL if no event collector in use
   112   // holds the current dynamic code event collector, NULL if no event collector in use
   113   JvmtiDynamicCodeEventCollector* _dynamic_code_event_collector;
   113   JvmtiDynamicCodeEventCollector* _dynamic_code_event_collector;
   114   // holds the current vm object alloc event collector, NULL if no event collector in use
   114   // holds the current vm object alloc event collector, NULL if no event collector in use
   115   JvmtiVMObjectAllocEventCollector* _vm_object_alloc_event_collector;
   115   JvmtiVMObjectAllocEventCollector* _vm_object_alloc_event_collector;
       
   116   // holds the current sampled object alloc event collector, NULL if no event collector in use
       
   117   JvmtiSampledObjectAllocEventCollector* _sampled_object_alloc_event_collector;
   116 
   118 
   117   // Should only be created by factory methods
   119   // Should only be created by factory methods
   118   JvmtiThreadState(JavaThread *thread);
   120   JvmtiThreadState(JavaThread *thread);
   119 
   121 
   120   friend class JvmtiEnvThreadStateIterator;
   122   friend class JvmtiEnvThreadStateIterator;
   312     return _dynamic_code_event_collector;
   314     return _dynamic_code_event_collector;
   313   }
   315   }
   314   JvmtiVMObjectAllocEventCollector* get_vm_object_alloc_event_collector() {
   316   JvmtiVMObjectAllocEventCollector* get_vm_object_alloc_event_collector() {
   315     return _vm_object_alloc_event_collector;
   317     return _vm_object_alloc_event_collector;
   316   }
   318   }
       
   319   JvmtiSampledObjectAllocEventCollector* get_sampled_object_alloc_event_collector() {
       
   320     return _sampled_object_alloc_event_collector;
       
   321   }
   317   void set_dynamic_code_event_collector(JvmtiDynamicCodeEventCollector* collector) {
   322   void set_dynamic_code_event_collector(JvmtiDynamicCodeEventCollector* collector) {
   318     _dynamic_code_event_collector = collector;
   323     _dynamic_code_event_collector = collector;
   319   }
   324   }
   320   void set_vm_object_alloc_event_collector(JvmtiVMObjectAllocEventCollector* collector) {
   325   void set_vm_object_alloc_event_collector(JvmtiVMObjectAllocEventCollector* collector) {
   321     _vm_object_alloc_event_collector = collector;
   326     _vm_object_alloc_event_collector = collector;
       
   327   }
       
   328   void set_sampled_object_alloc_event_collector(JvmtiSampledObjectAllocEventCollector* collector) {
       
   329     _sampled_object_alloc_event_collector = collector;
   322   }
   330   }
   323 
   331 
   324 
   332 
   325   //
   333   //
   326   // Frame routines
   334   // Frame routines