src/share/vm/services/attachListener.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot-npg Cdiff src/share/vm/services/attachListener.hpp

src/share/vm/services/attachListener.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 50,74 **** }; #endif // SERVICES_KERNEL class AttachListener: AllStatic { public: ! static void init() KERNEL_RETURN; ! static void abort() KERNEL_RETURN; // invoke to perform clean-up tasks when all clients detach ! static void detachall() KERNEL_RETURN; // indicates if the Attach Listener needs to be created at startup ! static bool init_at_startup() KERNEL_RETURN_(false); // indicates if we have a trigger to start the Attach Listener ! static bool is_init_trigger() KERNEL_RETURN_(false); ! #ifdef SERVICES_KERNEL static bool is_attach_supported() { return false; } ! #else // SERVICES_KERNEL private: static volatile bool _initialized; public: static bool is_initialized() { return _initialized; } --- 50,74 ---- }; #endif // SERVICES_KERNEL class AttachListener: AllStatic { public: ! static void init() NOT_SERVICES_RETURN; ! static void abort() NOT_SERVICES_RETURN; // invoke to perform clean-up tasks when all clients detach ! static void detachall() NOT_SERVICES_RETURN; // indicates if the Attach Listener needs to be created at startup ! static bool init_at_startup() NOT_SERVICES_RETURN_(false); // indicates if we have a trigger to start the Attach Listener ! static bool is_init_trigger() NOT_SERVICES_RETURN_(false); ! #if !INCLUDE_SERVICES static bool is_attach_supported() { return false; } ! #else private: static volatile bool _initialized; public: static bool is_initialized() { return _initialized; }
*** 92,105 **** // platform specific data dump static void pd_data_dump(); // dequeue the next operation static AttachOperation* dequeue(); ! #endif // SERVICES_KERNEL }; ! #ifndef SERVICES_KERNEL class AttachOperation: public CHeapObj<mtInternal> { public: enum { name_length_max = 16, // maximum length of name arg_length_max = 1024, // maximum length of argument --- 92,105 ---- // platform specific data dump static void pd_data_dump(); // dequeue the next operation static AttachOperation* dequeue(); ! #endif // !INCLUDE_SERVICES }; ! #if INCLUDE_SERVICES class AttachOperation: public CHeapObj<mtInternal> { public: enum { name_length_max = 16, // maximum length of name arg_length_max = 1024, // maximum length of argument
*** 149,156 **** } // complete operation by sending result code and any result data to the client virtual void complete(jint result, bufferedStream* result_stream) = 0; }; ! #endif // SERVICES_KERNEL #endif // SHARE_VM_SERVICES_ATTACHLISTENER_HPP --- 149,156 ---- } // complete operation by sending result code and any result data to the client virtual void complete(jint result, bufferedStream* result_stream) = 0; }; ! #endif // INCLUDE_SERVICES #endif // SHARE_VM_SERVICES_ATTACHLISTENER_HPP
src/share/vm/services/attachListener.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File