RFR: 8306278: jvmtiAgentList.cpp:253 assert(offset >= 0) failed: invariant occurs on AIX after JDK-8257967
Markus Grönlund
mgronlun at openjdk.org
Tue Apr 18 17:07:12 UTC 2023
Greetings,
For most platforms, os::dll_address_to_library_name() only sets offset = -1 in case of errors. If there is an error, the function returns false. This is fine.
On AIX, the offset, being optional, is invariantly set to -1, even in the case of non-errors.
Easiest to remove the assertion for a positive offset.
Thanks
Markus
-------------
Commit messages:
- remove assertion on positive offset
Changes: https://git.openjdk.org/jdk/pull/13513/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13513&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8306278
Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/13513.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13513/head:pull/13513
PR: https://git.openjdk.org/jdk/pull/13513
More information about the serviceability-dev
mailing list