Hi Jc,
Looks good.
Thank you for the update!
Thanks,
Serguei
On 7/19/18 14:52, JC Beyler wrote:
Hi Serguei,
Done here:
I added:
+ // Calculate the size of a 1-element array in order to assess average sampling interval
+ // via the HeapMonitorStatIntervalTest. This is needed because various GCs could add
+ // extra memory to arrays.
+ // This is done by allocating a 1-element array and then looking in the heap monitoring
+ // samples for the average size of objects collected.
Let me know what you think and then I need one more
review to prepare the patch :-)
Thanks all!
Jc
I forgot to put the link:
It got renamed in jdk11 via:
Thanks!
Jc
Hi Dan,
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java
became
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatIntervalTest.java,
when we updated the spec and said "rate" was
the wrong word.
So yes, it fixes both since at some point all
branches should see that the StatRate test
becomes renamed into the StatInterval test. Does
that make sense?
Thanks!
Jc
JDK-8207765 covers two different tests
as of yesterday:
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java
and
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatIntervalTest.java
I updated it to add a similar failure mode
sighting for HeapMonitorStatIntervalTest.java
Does your fix address both test failures?
Dan
On
7/19/18 12:39 PM, JC Beyler wrote:
Hi all,
Could I have a few reviews of:
The test assumed the size of a
1-element array but ZGC changes that
assumption. The test now first allocates a
bit of memory and gets the average size of
the samples before assuming the size. This
works with/without ZGC.
--
--
--
|