RFR: 8287362: FieldAccessWatch testcase failed on AIX platform

David Holmes dholmes at openjdk.java.net
Fri May 27 06:19:43 UTC 2022


On Thu, 26 May 2022 17:26:25 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:

> On AIX platform, `test/hotspot/jtreg/serviceability/jvmti/FieldAccessWatch/FieldAccessWatch.java` testcase failed by single testcase execution.
> 
> Failure message is:
> 
> Error occurred during initialization of VM
> agent library failed to init: FieldAccessWatch
> Failed to set capabilities, error: 98
> 
> It seems following initialization code affects this issue
> 
> jvmtiCapabilities caps = {0};
> 
> So additionally `memset()` is required just for AIX platform

Given 99.9% of the tests don't try to initialize "caps" but instead do the memset, I would suggest it is perfectly fine to delete the initializer and remove the comments related to AIX/xlclang.

You may also need to check
hotspot/jtreg/runtime/jni/FastGetField/libFastGetField.c 
hotspot/jtreg/compiler/jsr292/cr8026328/libTest8026328.c
which have a similar usage for the callbacks structure.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8904


More information about the serviceability-dev mailing list