/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
}
switch (fieldID) {
case FIELD_ADDRESS_SIZE:
case FIELD_BUILD_INFO:
return vm.getVMInternalInfo();
case FIELD_CPU:
case FIELD_FLAGS:
return getFlags();
case FIELD_HEAP:
return getHeap();
case FIELD_OS:
case FIELD_SYS_PROPS:
return getSysProps();
case FIELD_THREADS:
return getThreads();
case FIELD_TYPE:
return getType();
case FIELD_VERSION:
return vm.getVMRelease();
case FIELD_CLASS_PATH:
return getClassPath();
case FIELD_BOOT_CLASS_PATH:
return getBootClassPath();
case FIELD_USER_DIR:
return getUserDir();
case FIELD_UNDEFINED:
default:
}
}
return res;
}
return true;
} else {
}
}
}
}
}
//-- Internals only below this point
}
}
static {
}
private long getVMBit() {
// address size in bits
}
if (flagsCache == null) {
}
}
}
return flagsCache;
}
}
return heapCache;
}
if (sysPropsCache == null) {
while (e.hasMoreElements()) {
}
}
}
return sysPropsCache;
}
if (threadsCache == null) {
}
}
return threadsCache;
}
if (vm.isClientCompiler()) {
return "Client";
} else if (vm.isServerCompiler()) {
return "Server";
} else {
return "Core";
}
}
}
}
}
}