mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
7098194: integrate macosx-port changes
Integrate bsd-port/hotspot and macosx-port/hotspot changes as of 2011.09.29. Co-authored-by: Greg Lewis <glewis@eyesbeyond.com> Co-authored-by: Kurt Miller <kurt@intricatesoftware.com> Co-authored-by: Alexander Strange <astrange@apple.com> Co-authored-by: Mike Swingler <swingler@apple.com> Co-authored-by: Roger Hoover <rhoover@apple.com> Co-authored-by: Victor Hernandez <vhernandez@apple.com> Co-authored-by: Pratik Solanki <psolanki@apple.com> Reviewed-by: kvn, dholmes, never, phh
This commit is contained in:
parent
e9b8f2bab4
commit
32708baef1
70 changed files with 8298 additions and 225 deletions
|
@ -50,9 +50,11 @@
|
|||
# include "thread_bsd.inline.hpp"
|
||||
#endif
|
||||
|
||||
#ifndef USDT2
|
||||
HS_DTRACE_PROBE_DECL3(hotspot, vmops__request, char *, uintptr_t, int);
|
||||
HS_DTRACE_PROBE_DECL3(hotspot, vmops__begin, char *, uintptr_t, int);
|
||||
HS_DTRACE_PROBE_DECL3(hotspot, vmops__end, char *, uintptr_t, int);
|
||||
#endif /* !USDT2 */
|
||||
|
||||
// Dummy VM operation to act as first element in our circular double-linked list
|
||||
class VM_Dummy: public VM_Operation {
|
||||
|
@ -162,8 +164,14 @@ void VMOperationQueue::drain_list_oops_do(OopClosure* f) {
|
|||
// High-level interface
|
||||
bool VMOperationQueue::add(VM_Operation *op) {
|
||||
|
||||
#ifndef USDT2
|
||||
HS_DTRACE_PROBE3(hotspot, vmops__request, op->name(), strlen(op->name()),
|
||||
op->evaluation_mode());
|
||||
#else /* USDT2 */
|
||||
HOTSPOT_VMOPS_REQUEST(
|
||||
(char *) op->name(), strlen(op->name()),
|
||||
op->evaluation_mode());
|
||||
#endif /* USDT2 */
|
||||
|
||||
// Encapsulates VM queue policy. Currently, that
|
||||
// only involves putting them on the right list
|
||||
|
@ -360,11 +368,23 @@ void VMThread::evaluate_operation(VM_Operation* op) {
|
|||
|
||||
{
|
||||
PerfTraceTime vm_op_timer(perf_accumulated_vm_operation_time());
|
||||
#ifndef USDT2
|
||||
HS_DTRACE_PROBE3(hotspot, vmops__begin, op->name(), strlen(op->name()),
|
||||
op->evaluation_mode());
|
||||
#else /* USDT2 */
|
||||
HOTSPOT_VMOPS_BEGIN(
|
||||
(char *) op->name(), strlen(op->name()),
|
||||
op->evaluation_mode());
|
||||
#endif /* USDT2 */
|
||||
op->evaluate();
|
||||
#ifndef USDT2
|
||||
HS_DTRACE_PROBE3(hotspot, vmops__end, op->name(), strlen(op->name()),
|
||||
op->evaluation_mode());
|
||||
#else /* USDT2 */
|
||||
HOTSPOT_VMOPS_END(
|
||||
(char *) op->name(), strlen(op->name()),
|
||||
op->evaluation_mode());
|
||||
#endif /* USDT2 */
|
||||
}
|
||||
|
||||
// Last access of info in _cur_vm_operation!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue