rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / runtime / openjdk-24 / patches / illumos-port-17.patch
blob5ff64167187bcd4bbf741a6e4ed901aedadd886d
1 The original solaris removal forgot this file, it's recently been removed
2 so we now have to put it back. It might be cleaner to remove DTrace in the
3 longer term.
5 diff -urN a/src/hotspot/share/services/dtraceAttacher.hpp b/src/hotspot/share/services/dtraceAttacher.hpp
6 --- a/src/hotspot/share/services/dtraceAttacher.hpp 1970-01-01 01:00:00.000000000 +0000
7 +++ b/src/hotspot/share/services/dtraceAttacher.hpp 2022-02-16 13:46:43.000000000 +0000
8 @@ -0,0 +1,49 @@
9 +/*
10 + * Copyright (c) 2006, 2019, Oracle and/or its affiliates. All rights reserved.
11 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
12 + *
13 + * This code is free software; you can redistribute it and/or modify it
14 + * under the terms of the GNU General Public License version 2 only, as
15 + * published by the Free Software Foundation.
16 + *
17 + * This code is distributed in the hope that it will be useful, but WITHOUT
18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 + * version 2 for more details (a copy is included in the LICENSE file that
21 + * accompanied this code).
22 + *
23 + * You should have received a copy of the GNU General Public License version
24 + * 2 along with this work; if not, write to the Free Software Foundation,
25 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 + *
27 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
28 + * or visit www.oracle.com if you need additional information or have any
29 + * questions.
30 + *
31 + */
33 +#ifndef SHARE_SERVICES_DTRACEATTACHER_HPP
34 +#define SHARE_SERVICES_DTRACEATTACHER_HPP
36 +#define DTRACE_ALLOC_PROBES 0x1
37 +#define DTRACE_METHOD_PROBES 0x2
38 +#define DTRACE_MONITOR_PROBES 0x4
39 +#define DTRACE_ALL_PROBES (DTRACE_ALLOC_PROBES | \
40 + DTRACE_METHOD_PROBES | \
41 + DTRACE_MONITOR_PROBES)
43 +class DTrace : public AllStatic {
44 + private:
45 + // disable one or more probes - OR above constants
46 + static void disable_dprobes(int probe_types);
48 + public:
49 + // enable one or more probes - OR above constants
50 + static void enable_dprobes(int probe_types);
51 + // all clients detached, do any clean-up
52 + static void detach_all_clients();
53 + // set DTraceMonitorProbes flag
54 + static void set_monitor_dprobes(bool value);
55 +};
57 +#endif // SHARE_SERVICES_DTRACEATTACHER_HPP