mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
return array in VmTool native method, fix jni memory leak problem #1781
This commit is contained in:
@@ -38,6 +38,7 @@ import arthas.VmTool;
|
||||
/**
|
||||
*
|
||||
* @author hengyunabc 2021-04-27
|
||||
* @author ZhangZiCheng 2021-04-29
|
||||
*
|
||||
*/
|
||||
//@formatter:off
|
||||
@@ -163,7 +164,7 @@ public class VmToolCommand extends AnnotatedCommand {
|
||||
process.end(-1, "Found more than one class: " + matchedClasses + ".");
|
||||
return;
|
||||
} else {
|
||||
ArrayList<?> instances = vmToolInstance().getInstances(matchedClasses.get(0));
|
||||
Object[] instances = vmToolInstance().getInstances(matchedClasses.get(0));
|
||||
Object value = instances;
|
||||
if (express != null) {
|
||||
Express unpooledExpress = ExpressFactory.unpooledExpress(classLoader);
|
||||
|
||||
Reference in New Issue
Block a user