src/hotspot/share/services/dtraceAttacher.cpp
changeset 49902 3661f31c6df4
parent 49860 ca5216a2a2cc
child 52877 9e041366c764
equal deleted inserted replaced
49901:794325b73468 49902:3661f31c6df4
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 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.
    24 
    24 
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "code/codeCache.hpp"
    26 #include "code/codeCache.hpp"
    27 #include "memory/resourceArea.hpp"
    27 #include "memory/resourceArea.hpp"
    28 #include "runtime/deoptimization.hpp"
    28 #include "runtime/deoptimization.hpp"
       
    29 #include "runtime/flags/jvmFlag.hpp"
    29 #include "runtime/vmThread.hpp"
    30 #include "runtime/vmThread.hpp"
    30 #include "runtime/vm_operations.hpp"
    31 #include "runtime/vm_operations.hpp"
    31 #include "services/dtraceAttacher.hpp"
    32 #include "services/dtraceAttacher.hpp"
    32 
    33 
    33 #ifdef SOLARIS
    34 #ifdef SOLARIS
    48     CodeCache::make_marked_nmethods_not_entrant();
    49     CodeCache::make_marked_nmethods_not_entrant();
    49   }
    50   }
    50 };
    51 };
    51 
    52 
    52 static void set_bool_flag(const char* flag, bool value) {
    53 static void set_bool_flag(const char* flag, bool value) {
    53   CommandLineFlags::boolAtPut((char*)flag, strlen(flag), &value,
    54   JVMFlag::boolAtPut((char*)flag, strlen(flag), &value,
    54                               Flag::ATTACH_ON_DEMAND);
    55                               JVMFlag::ATTACH_ON_DEMAND);
    55 }
    56 }
    56 
    57 
    57 // Enable only the "fine grained" flags. Do *not* touch
    58 // Enable only the "fine grained" flags. Do *not* touch
    58 // the overall "ExtendedDTraceProbes" flag.
    59 // the overall "ExtendedDTraceProbes" flag.
    59 void DTrace::enable_dprobes(int probes) {
    60 void DTrace::enable_dprobes(int probes) {