1 /*
2 * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
910 commonRef_releaseMultiple(env, id, refCount);
911 }
912
913 return JNI_TRUE;
914 }
915
916 static jboolean
917 holdEvents(PacketInputStream *in, PacketOutputStream *out)
918 {
919 eventHelper_holdEvents();
920 return JNI_TRUE;
921 }
922
923 static jboolean
924 releaseEvents(PacketInputStream *in, PacketOutputStream *out)
925 {
926 eventHelper_releaseEvents();
927 return JNI_TRUE;
928 }
929
930 void *VirtualMachine_Cmds[] = { (void *)22
931 ,(void *)version
932 ,(void *)classesForSignature
933 ,(void *)allClasses
934 ,(void *)getAllThreads
935 ,(void *)topLevelThreadGroups
936 ,(void *)dispose
937 ,(void *)idSizes
938 ,(void *)suspend
939 ,(void *)resume
940 ,(void *)doExit
941 ,(void *)createString
942 ,(void *)capabilities
943 ,(void *)classPaths
944 ,(void *)disposeObjects
945 ,(void *)holdEvents
946 ,(void *)releaseEvents
947 ,(void *)capabilitiesNew
948 ,(void *)redefineClasses
949 ,(void *)setDefaultStratum
950 ,(void *)allClassesWithGeneric
951 ,(void *)instanceCounts
952 ,(void *)allModules
953 };
|
1 /*
2 * Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
910 commonRef_releaseMultiple(env, id, refCount);
911 }
912
913 return JNI_TRUE;
914 }
915
916 static jboolean
917 holdEvents(PacketInputStream *in, PacketOutputStream *out)
918 {
919 eventHelper_holdEvents();
920 return JNI_TRUE;
921 }
922
923 static jboolean
924 releaseEvents(PacketInputStream *in, PacketOutputStream *out)
925 {
926 eventHelper_releaseEvents();
927 return JNI_TRUE;
928 }
929
930 CommandSet VirtualMachine_Cmds = {
931 22, "VirtualMachine",
932 {
933 {version, "Version"},
934 {classesForSignature, "ClassesForSignature"},
935 {allClasses, "AllClasses"},
936 {getAllThreads, "GetAllThreads"},
937 {topLevelThreadGroups, "TopLevelThreadGroups"},
938 {dispose, "Dispose"},
939 {idSizes, "IDSizes"},
940 {suspend, "Suspend"},
941 {resume, "Resume"},
942 {doExit, "DoExit"},
943 {createString, "CreateString"},
944 {capabilities, "Capabilities"},
945 {classPaths, "ClassPaths"},
946 {disposeObjects, "DisposeObjects"},
947 {holdEvents, "HoldEvents"},
948 {releaseEvents, "ReleaseEvents"},
949 {capabilitiesNew, "CapabilitiesNew"},
950 {redefineClasses, "RedefineClasses"},
951 {setDefaultStratum, "SetDefaultStratum"},
952 {allClassesWithGeneric, "AllClassesWithGeneric"},
953 {instanceCounts, "InstanceCounts"},
954 {allModules, "AllModules"}
955 }
956 };
|