1 /* |
1 /* |
2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2013, 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. |
168 // By returning JNI_OK, the exception will be displayed on the client side |
168 // By returning JNI_OK, the exception will be displayed on the client side |
169 } |
169 } |
170 return JNI_OK; |
170 return JNI_OK; |
171 } |
171 } |
172 |
172 |
173 #ifndef SERVICES_KERNEL // Heap dumping not supported |
|
174 // Implementation of "dumpheap" command. |
173 // Implementation of "dumpheap" command. |
175 // See also: HeapDumpDCmd class |
174 // See also: HeapDumpDCmd class |
176 // |
175 // |
177 // Input arguments :- |
176 // Input arguments :- |
178 // arg0: Name of the dump file |
177 // arg0: Name of the dump file |
380 |
378 |
381 // names must be of length <= AttachOperation::name_length_max |
379 // names must be of length <= AttachOperation::name_length_max |
382 static AttachOperationFunctionInfo funcs[] = { |
380 static AttachOperationFunctionInfo funcs[] = { |
383 { "agentProperties", get_agent_properties }, |
381 { "agentProperties", get_agent_properties }, |
384 { "datadump", data_dump }, |
382 { "datadump", data_dump }, |
385 #ifndef SERVICES_KERNEL |
|
386 { "dumpheap", dump_heap }, |
383 { "dumpheap", dump_heap }, |
387 #endif // SERVICES_KERNEL |
|
388 { "load", JvmtiExport::load_agent_library }, |
384 { "load", JvmtiExport::load_agent_library }, |
389 { "properties", get_system_properties }, |
385 { "properties", get_system_properties }, |
390 { "threaddump", thread_dump }, |
386 { "threaddump", thread_dump }, |
391 { "inspectheap", heap_inspection }, |
387 { "inspectheap", heap_inspection }, |
392 { "setflag", set_flag }, |
388 { "setflag", set_flag }, |