Mercurial > hg > truffle
comparison src/share/vm/services/attachListener.hpp @ 6856:9855b7e559ae
Merge
author | collins |
---|---|
date | Fri, 12 Oct 2012 10:49:39 -0700 |
parents | b9a9ed0f8eeb fb19af007ffc |
children | 8b46b0196eb0 db9981fd3124 |
comparison
equal
deleted
inserted
replaced
6842:b9a9ed0f8eeb | 6856:9855b7e559ae |
---|---|
50 }; | 50 }; |
51 #endif // SERVICES_KERNEL | 51 #endif // SERVICES_KERNEL |
52 | 52 |
53 class AttachListener: AllStatic { | 53 class AttachListener: AllStatic { |
54 public: | 54 public: |
55 static void init() KERNEL_RETURN; | 55 static void init() NOT_SERVICES_RETURN; |
56 static void abort() KERNEL_RETURN; | 56 static void abort() NOT_SERVICES_RETURN; |
57 | 57 |
58 // invoke to perform clean-up tasks when all clients detach | 58 // invoke to perform clean-up tasks when all clients detach |
59 static void detachall() KERNEL_RETURN; | 59 static void detachall() NOT_SERVICES_RETURN; |
60 | 60 |
61 // indicates if the Attach Listener needs to be created at startup | 61 // indicates if the Attach Listener needs to be created at startup |
62 static bool init_at_startup() KERNEL_RETURN_(false); | 62 static bool init_at_startup() NOT_SERVICES_RETURN_(false); |
63 | 63 |
64 // indicates if we have a trigger to start the Attach Listener | 64 // indicates if we have a trigger to start the Attach Listener |
65 static bool is_init_trigger() KERNEL_RETURN_(false); | 65 static bool is_init_trigger() NOT_SERVICES_RETURN_(false); |
66 | 66 |
67 #ifdef SERVICES_KERNEL | 67 #if !INCLUDE_SERVICES |
68 static bool is_attach_supported() { return false; } | 68 static bool is_attach_supported() { return false; } |
69 #else // SERVICES_KERNEL | 69 #else |
70 private: | 70 private: |
71 static volatile bool _initialized; | 71 static volatile bool _initialized; |
72 | 72 |
73 public: | 73 public: |
74 static bool is_initialized() { return _initialized; } | 74 static bool is_initialized() { return _initialized; } |
92 // platform specific data dump | 92 // platform specific data dump |
93 static void pd_data_dump(); | 93 static void pd_data_dump(); |
94 | 94 |
95 // dequeue the next operation | 95 // dequeue the next operation |
96 static AttachOperation* dequeue(); | 96 static AttachOperation* dequeue(); |
97 #endif // SERVICES_KERNEL | 97 #endif // !INCLUDE_SERVICES |
98 }; | 98 }; |
99 | 99 |
100 #ifndef SERVICES_KERNEL | 100 #if INCLUDE_SERVICES |
101 class AttachOperation: public CHeapObj<mtInternal> { | 101 class AttachOperation: public CHeapObj<mtInternal> { |
102 public: | 102 public: |
103 enum { | 103 enum { |
104 name_length_max = 16, // maximum length of name | 104 name_length_max = 16, // maximum length of name |
105 arg_length_max = 1024, // maximum length of argument | 105 arg_length_max = 1024, // maximum length of argument |
149 } | 149 } |
150 | 150 |
151 // complete operation by sending result code and any result data to the client | 151 // complete operation by sending result code and any result data to the client |
152 virtual void complete(jint result, bufferedStream* result_stream) = 0; | 152 virtual void complete(jint result, bufferedStream* result_stream) = 0; |
153 }; | 153 }; |
154 #endif // SERVICES_KERNEL | 154 #endif // INCLUDE_SERVICES |
155 | 155 |
156 #endif // SHARE_VM_SERVICES_ATTACHLISTENER_HPP | 156 #endif // SHARE_VM_SERVICES_ATTACHLISTENER_HPP |