/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "code/codeCache.hpp"
#include "memory/resourceArea.hpp"
#include "runtime/deoptimization.hpp"
#include "runtime/vmThread.hpp"
#include "runtime/vm_operations.hpp"
#include "services/dtraceAttacher.hpp"
#ifdef SOLARIS
public:
return VMOp_DeoptimizeTheWorld;
}
void doit() {
// Deoptimize all activations depending on marked methods
// Mark the dependent methods non entrant
}
};
}
// Enable only the "fine grained" flags. Do *not* touch
// the overall "ExtendedDTraceProbes" flag.
bool changed = false;
set_bool_flag("DTraceAllocProbes", true);
changed = true;
}
set_bool_flag("DTraceMethodProbes", true);
changed = true;
}
set_bool_flag("DTraceMonitorProbes", true);
changed = true;
}
if (changed) {
// one or more flags changed, need to deoptimize
}
}
// Disable only the "fine grained" flags. Do *not* touch
// the overall "ExtendedDTraceProbes" flag.
bool changed = false;
set_bool_flag("DTraceAllocProbes", false);
changed = true;
}
set_bool_flag("DTraceMethodProbes", false);
changed = true;
}
set_bool_flag("DTraceMonitorProbes", false);
changed = true;
}
if (changed) {
// one or more flags changed, need to deoptimize
}
}
// Do clean-up on "all door clients detached" event.
/*
* We restore the state of the fine grained flags
* to be consistent with overall ExtendedDTraceProbes.
* This way, we will honour command line setting or the
* last explicit modification of ExtendedDTraceProbes by
* a call to set_extended_dprobes.
*/
if (ExtendedDTraceProbes) {
} else {
}
}
// explicit setting of ExtendedDTraceProbes flag
// make sure that the fine grained flags reflect the change.
if (flag) {
} else {
/*
* FIXME: Revisit this: currently all-client-detach detection
* does not work and hence disabled. The following scheme does
* not work. So, we have to disable fine-grained flags here.
*
* disable_dprobes call has to be delayed till next "detach all "event.
* This is to be done so that concurrent DTrace clients that may
* have enabled one or more fine grained dprobes and may be running
* still. On "detach all" clients event, we would sync ExtendedDTraceProbes
* with fine grained flags which would take care of disabling fine grained flags.
*/
}
}
// explicit setting of DTraceMonitorProbes flag
}
#endif /* SOLARIS */