Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8014156 | 8 | David Holmes | P3 | Resolved | Fixed | b89 |
If you try to use -agentpath to load libhprof.so or libjdwp.so with the minimal VM, it fails with an unfriendly message that doesn't indicate the real problem (hprof and jdwp not supported with the minimal VM). For example:
$ bin/java -minimal -agentpath:/export/home/aurora/jp/ejdk1.8.0/jre/lib/i386/libhprof.so
HPROF ERROR: Unable to access JVMTI Version 1 (0x30010000), is your JDK a 5.0 or newer version? JNIEnv's GetEnv() returned -2 [hprof_util.c:1706]
The VM needs an explicit check for attempts to load libhprof.so or libjdwp.so with -agentpath, and fail immediately with the proper error message.
$ bin/java -minimal -agentpath:/export/home/aurora/jp/ejdk1.8.0/jre/lib/i386/libhprof.so
HPROF ERROR: Unable to access JVMTI Version 1 (0x30010000), is your JDK a 5.0 or newer version? JNIEnv's GetEnv() returned -2 [hprof_util.c:1706]
The VM needs an explicit check for attempts to load libhprof.so or libjdwp.so with -agentpath, and fail immediately with the proper error message.
- backported by
-
JDK-8014156 Special -agentpath checks needed with minimal VM to produce proper error message
-
- Resolved
-