Re: RFR JDK-8211292: [TEST] convert com/sun/jdi/DeferredStepTest.sh test

2018-10-05 Thread JC Beyler
Hi Alex, One question and a comment on this: - I thought HashMap was not thread safe so I think you need to synchronize the access to the map threadData - I think your test code could be simplified if you moved it into a helper method (not tested but just for example): +private void next() {

Re: RFR JDK-8211292: [TEST] convert com/sun/jdi/DeferredStepTest.sh test

2018-10-05 Thread JC Beyler
te it at the start of the method (only using the local version for the rest of the method); then everything would be in there. But, I'll still say it is a more a question of style :) LGTM, Jc On Fri, Oct 5, 2018 at 12:01 PM Alex Menkov wrote: > Hi Jc, > > > On 10/05/2018

RFR (XS) 8211905: Remove multiple casts for EM06 file

2018-10-08 Thread JC Beyler
Hi all, Seems like there is an over-zealous casting in the file nsk/jvmti/scenarios/events/EM06/em06t001/em06t001.cpp: jclassName = (jstring) (jstring) (jstring) (jstring) (jstring) (jstring) (jstring) (jstring) (jstring) NSK_CPP_STUB3(CallObjectMethod, jni_env, klass, This webrev fixes that: We

RFR (L) 8211899: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/scenarios/[E-M]

2018-10-08 Thread JC Beyler
Hi all, I am continuing the NSK_CPP_STUB removal with this next webrev. Webrev: http://cr.openjdk.java.net/~jcbeyler/8211899/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8211899 The change is still straight-forward though, since it is just doing the same NSK_CPP_STUB removal. However

RFR (S) 8211980: Remove ThreadHeapSampler enable/disable/enabled methods

2018-10-09 Thread JC Beyler
Hi all, When talking with Serguei about JDK-8201655 , we talked about why ThreadHeapSampler has an enabled/disabled when we could have just used the should_post_sampled_object_alloc to begin with. Could I get a review for this: Webrev: http://cr.o

Re: RFR (XL) 8211801: Remove the NSK_CPP_STUB macros from vmTestbase for jvmti/scenarios/[A-E]

2018-10-10 Thread JC Beyler
> >> nsk_jvmti_setFailStatus(); > >> break; > >> } > >> > >>Could you, please, remove extra space after NULL. > >> > >> > >> In many-many files (especially, in the foleder: >

Re: RFR JDK-8195703: BasicJDWPConnectionTest.java: 'App exited unexpectedly with 2'

2018-10-10 Thread JC Beyler
Hi Alex, - http://cr.openjdk.java.net/~amenkov/BasicJDWPConn/webrev.01/test/lib/jdk/test/lib/apps/LingeredApp.java.udiff.html -> Why not make it javadoc like the other methods of the same file (so @return instead of returns and a second * at the start of the comment)? - http://cr.openjdk.java.n

Re: RFR (S) 8211980: Remove ThreadHeapSampler enable/disable/enabled methods

2018-10-11 Thread JC Beyler
iple mutexes which > will > > > force visibility of any ThreadHeapSampler statics before a Thread > is > > > used, you don’t need OrderAccess. > > > > > > I’d put anything to do with ThreadHeapSampler into its class > definition > >

Re: RFR (L) 8212082: Remove the NSK_CPP_STUB macros from remaining vmTestbase/jvmti/[sS]*

2018-10-14 Thread JC Beyler
Thanks both :) Jc On Fri, Oct 12, 2018 at 5:17 PM Alex Menkov wrote: > Looks good to me. > > --alex > > On 10/12/2018 14:25, JC Beyler wrote: > > Yes they do, they have run on my dev machine and I'm submitting it on > > the submit repo (though that will test b

Re: 8196989: Revamp G1 JMX MemoryPool and GarbageCollector MXBean definitions

2018-10-17 Thread JC Beyler
Hi Paul, I looked at this but it took time for me to "digest" it and I haven't entirely gone through the real GC changes :) My few remarks on the webrev itself are: - http://cr.openjdk.java.net/~phh/8196989/webrev.02/src/hotspot/share/services/memoryService.hpp.udiff.html - There is no n

Re: [8u-backport] RFR: 8211909: JDWP Transport Listener: dt_socket thread crash

2018-10-18 Thread JC Beyler
Hi Fairoz, I compared the original and the port, it looks good to me, Jc On Thu, Oct 18, 2018 at 12:55 AM Fairoz Matte wrote: > Thanks David, for the review... > > > -Original Message- > > From: David Holmes > > Sent: Thursday, October 18, 2018 1:20 PM > > To: Fairoz Matte ; serviceabil

Re: 8196989: Revamp G1 JMX MemoryPool and GarbageCollector MXBean definitions

2018-10-18 Thread JC Beyler
ancy doesn't change, because > humongous > > // objects are allocated in the "G1 Humongous Space". If > we allowed > > // the G1 default mode "G1 Old Space", notification would > never > > // happen

Re: RFR (M) 8212535: Remove spaces before/after () for vmTestbase/[a-s]*

2018-10-19 Thread JC Beyler
(char *)storage_ptr, storage_data); > > 162 NSK_COMPLAIN2("objectReferenceCallback: Local storage was > corrupted: %s ,\n\texpected value: %s\n", > 163 (char *)storage_ptr, storage_data); > > thanks, > >

Re: RFR JDK-8212151: jdi/ExclusiveBind.java times out due to "bind failed: Address already in use" on Solaris-X64

2018-10-20 Thread JC Beyler
; > Updated fix: > http://cr.openjdk.java.net/~amenkov/exclusiveBind/webrev.01/ > Moved shared code to new Debuggee class. > > --alex > > On 10/19/2018 10:34, JC Beyler wrote: > > Hi Alex, > > > > I remember seeing this same code so went looking for it and saw

Re: RFR: JDK-8211013: TESTBUG] nsk/jdb/kill/kill002 wait for message and prompt

2018-10-23 Thread JC Beyler
Hi Gary, Looks good to me (not an official reviewer though), Jc On Tue, Oct 23, 2018 at 11:08 AM Gary Adams wrote: > Could I get a second reviewer for this change. > > On 10/15/18, 3:16 PM, Chris Plummer wrote: > > Hi Gary, > > > > I think the simple prompt is meant to indicate that execution i

Re: RFR (M) 8212884: Remove the assignments in ifs for vmTestbase/[a-s]

2018-10-24 Thread JC Beyler
rames you need to add a space after the "if": > > 130 if(!NSK_VERIFY(jvmti != NULL)) { > > In em01t002.cpp, indent of 2nd line isn't correct: > > 74 methodID = jni_env->GetMethodID( > 75 klass, "loadClass", > "(Lja

Re: RFR (L) 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]

2018-10-24 Thread JC Beyler
Hi all, Anybody else want to review this? We can close the book on spaces before/after () once this one goes in :) Jc On Mon, Oct 22, 2018 at 1:37 PM Alex Menkov wrote: > LGTM. > > --alex > > On 10/22/2018 11:29, JC Beyler wrote: > > Hi all, > > > > Here is the

Re: RFR (M) 8212884: Remove the assignments in ifs for vmTestbase/[a-s]

2018-10-25 Thread JC Beyler
pit...@oracle.com> wrote: > Hi Jc, > > It looks great! > Your AI-enabled conversion scripts are smart! :) > > Thanks, > Serguei > > On 10/24/18 09:40, JC Beyler wrote: > > Hi all, > > Here is the first webrev to extract assignments from if test clauses. It >

RFR (M) 8201655: Add thread-enabled support for the Heap Sampling

2018-10-26 Thread JC Beyler
Hi all, When working on the heap sampling, I had promised to do the per thread event so here it is! Could I get a review for this: Webrev: http://cr.openjdk.java.net/~jcbeyler/8201655/webrev.02/ Bug: https://bugs.openjdk.java.net/browse/JDK-8201655 I was thinking of adding GC-dev for the memAllo

RFR (M) 8213003: Remove more assignments in ifs for vmTestbase/[a-s]

2018-10-30 Thread JC Beyler
Hi all, I worked on updating my script and handling more assignments so I redid a second pass on the same files to get all the cases. Now, on those files the regex "if.* = " no longer shows any cases we would want to fix. Could I get a review for this webrev: Webrev: http://cr.openjdk.java.net/~j

Re: RFR (M) 8213003: Remove more assignments in ifs for vmTestbase/[a-s]

2018-11-02 Thread JC Beyler
support, new > macros, and a few example uses. You don't need to fix everything. I just > want to get a better feel for the changes and what the implementation would > look like. > > thanks, > > Chris > > On 11/1/18 1:03 PM, JC Beyler wrote: > >

RFR (S) 8212931 HeapMonitorStatIntervalTest.java fails due average calculation

2018-11-02 Thread JC Beyler
Hi all, Could I get a review for a bug in the calculation of the average size of an allocation? The solution is actually not to do the calculation at all. Instead, I just go in the cache and find an object with the right stacktrace and get its size (since all sizes should be equal because they are

RFR (XS) 8213246: Fix typo in vmTestbase failuire to failure

2018-11-02 Thread JC Beyler
Hi all, Could I get a review for a trivial typo fix: Webrev: http://cr.openjdk.java.net/~jcbeyler/8213246/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8213246 Thanks, Jc

Re: RFR (M) 8213003: Remove more assignments in ifs for vmTestbase/[a-s]

2018-11-02 Thread JC Beyler
EBUGEE_CLASS_NAME); > > to > > ExceptionCheckingJniEnvPtr jni_wrapper(jni); > ... > debugeeClass = jni_wrapper->FindClass(DEBUGEE_CLASS_NAME, > TRACE_JNI_CALL); > > But none of your ExceptionCheckingJni changes are pushed yet, right? > > thanks, > > Chris >

Re: RFR (XS) 8213246: Fix typo in vmTestbase failuire to failure

2018-11-03 Thread JC Beyler
Thanks all, pushed :) Jc On Fri, Nov 2, 2018 at 4:25 PM Igor Ignatyev wrote: > LGTM > > -- Igor - a Reviewer > > On Nov 2, 2018, at 4:22 PM, Mikael Vidstedt > wrote: > > > Looks good. > > Cheers, > Mikael - not a Reviewer > > On Nov 2, 2018, at 4:05 P

Re: RFR 8203174: [Graal] JDI tests fail with Unexpected exception: com.sun.jdi.ObjectCollectedException

2018-11-04 Thread JC Beyler
Hi Daniil, Quick question about looking at the launch options, is there any reason you do not simply use: sun.hotspot.code.Compiler.isGraalEnabled(); Is it because you do not want to specifically call out Graal? Thanks, Jc On Sun, Nov 4, 2018 at 12:41 PM Daniil Titov wrote: > Hi Chris, > > Th

Re: RFR (M) 8213003: Remove more assignments in ifs for vmTestbase/[a-s]

2018-11-06 Thread JC Beyler
ard with them since they are pretty > significant. > > > The exception changes need to be discussed after a separate RFR is posted. > > Thanks, > Serguei > > thanks, > > Chris > > On 11/2/18 9:09 PM, JC Beyler wrote: > > Hi Chris, > > Yes that is c

Re: RFR (M) 212939: Add space after if/while/for/switch and parenthesis

2018-11-07 Thread JC Beyler
Name(targetClass, > 407 targetFields[field], > 408 &objects_info[object].fields[field].name, > 409 &objects_info[object].fields[field].signature, > 410 NULL))) > > 481 if ((objects_info[object].fields[field].primitive && > !objects_info[object].collec

RFR (L) 8213501 : Deploy ExceptionJniWrapper for a few tests

2018-11-07 Thread JC Beyler
Hi all, Could I have a review for the extension and usage of the ExceptionJniWrapper. This adds lines and filenames to the end of the wrapper JNI methods, adds tracing, and throws an error if need be. I've ported the gc/lock files to use the new TRACE_JNI_CALL add-on and I've ported a few of the t

Re: RFR: (S): JDK-8213323: sa/TestJmapCoreMetaspace.java and sa/TestJmapCore.java fail with ZGC

2018-11-09 Thread JC Beyler
Hi Jini, The webrev looks good to me as well except for a few questions/comments: I have a generic question that is related to the webrev: - Are there plans at some point for Jmap to support ZGC heaps in the future ? Or is this infeasible? I ask because if a lot of tests are disabled fo

Re: RFR (XS): 8213525: new unit test GetLocalVariable/LocalVars is not stable

2018-11-13 Thread JC Beyler
pit...@oracle.com> wrote: > On 11/12/18 20:05, serguei.spit...@oracle.com wrote: > > Hi Jc, > > > Thank you a lot for reviewing! > > On 11/12/18 09:35, JC Beyler wrote: > > Hi Serguei, > > The fix looks good (though I never like commented out code, why do we no

Re: What actions are allowed in an JVMTI ResourceExhausted event handler?

2018-11-14 Thread JC Beyler
It seems what we do with other events that might have this type of "risk" is to defer the event to the ServiceThread, which is a Java thread, no? But perhaps for a resource exhausted just ignoring it for the compiler thread and letting another "Java thread" be aware of it and posting is a better ch

Re: RFR: JDK-8213916: no copyright in signature.html

2018-11-15 Thread JC Beyler
Hi Gary, Looks good to me (not a reviewer though), Jc On Thu, Nov 15, 2018 at 5:45 AM Gary Adams wrote: > Here's a quick fix to add a missing copyright to signature.html. > > > diff --git > a/src/jdk.jdi/share/classes/com/sun/jdi/doc-files/signature.html > b/src/jdk.jdi/share/classes/com/sun/jd

Re: RFR (S) 8212931 HeapMonitorStatIntervalTest.java fails due average calculation

2018-11-15 Thread JC Beyler
assess average > sampling interval 113 // via the HeapMonitorStatIntervalTest. > ... > > 125 // Get the actual average size. 126 oneElementSize = > getSize(frames); 127 System.out.println("Element size is: " + > oneElementSize); > > > Thanks, > Serguei &g

Re: [8u] RFR: 8210647: libsaproc is being compiled without optimization

2018-11-15 Thread JC Beyler
Hi Severin, That does look different ( http://hg.openjdk.java.net/jdk/jdk/rev/c608b2190460) :) It looks good to me :), Jc On Thu, Nov 15, 2018 at 6:58 AM Severin Gehwolf wrote: > Hi, > > Could I please get reviews for this 8u backport of JDK-8210647. Since > the build system is different in 8,

Re: RFR (L) 8213501 : Deploy ExceptionJniWrapper for a few tests

2018-11-16 Thread JC Beyler
Hi all, Anybody motivated to review this? :) Jc On Wed, Nov 7, 2018 at 9:53 PM JC Beyler wrote: > Hi all, > > Could I have a review for the extension and usage of the > ExceptionJniWrapper. This adds lines and filenames to the end of the > wrapper JNI methods, adds tracing, and

Re: RFR (XS) : problem list HeapMonitorStatIntervalTest.java

2018-11-20 Thread JC Beyler
Thanks David, done! Jc On Tue, Nov 20, 2018 at 6:31 PM David Holmes wrote: > Hi Jc, > > Looks good and trivial. Please push. > > Thanks, > David > > On 21/11/2018 12:26 pm, JC Beyler wrote: > > Hi all, > > > > Could you please re

RFR (S) 8213721 : [Graal] Tests vmTestbase/nsk/stress/except/except* may be encountering SEGV during out-of-memory conditions

2018-11-20 Thread JC Beyler
Hi all, Could I get a review for this small change for the except* tests: Webrev: http://cr.openjdk.java.net/~jcbeyler/8213721/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8213721 The bug contains a good explanation of why this is required. After the webrev, the tests no longer fail

Re: JNI - question about jmethodid values.

2018-11-26 Thread JC Beyler
Thanks, Jc [1] https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/design.html#wp16696 On Mon, Nov 26, 2018 at 11:33 AM Thomas Stüfe wrote: > Hey JC, > > On Mon, Nov 26, 2018 at 8:15 PM JC Beyler wrote: > > > > Hi all, > > > > Just added my two c

RFR (L) 8214502: Add space after/before {} in remaining vmTestbase tests

2018-11-29 Thread JC Beyler
Hi all, Could I get a review for adding a space around the {} for the vmTestbase. This webrev handles all remaining cases for vmTestbase :-) Here is the webrev and bug: Webrev: http://cr.openjdk.java.net/~jcbeyler/8214502/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8214502 Thanks fo

Re: RFR 8214572: nsk/jvmti/unit/ForceEarlyReturn/earlyretbase should not suspend the thread when the top frame executes JVMCI code

2018-11-30 Thread JC Beyler
Hi Daniil, The webrev looks good but I have a few comments and questions (if you don't mind :-)): Comments: - You say that normally the test will be removed from the problem list once the two fixes are done but in this webrev, you've already removed it (I can't see the other case so I can't see

Re: RFR(XS): 8215042: Move serviceability/sa tests from tier1 to tier3.

2018-12-07 Thread JC Beyler
Hi Leonid, I cannot comment on whether it is a good idea to put the tests in tier3 but the webrev does look good to achieve that :) So LGTM as far as it seems to do what you intended :) Thanks, Jc On Fri, Dec 7, 2018 at 9:53 PM Leonid Mesnik wrote: > Hi > > Could you please review following fi

RFR(L) 8212960: Remove spaces in assignments for remaining vmTestbase

2018-12-10 Thread JC Beyler
Hi all, Could I get a review that adds a space around comparisons for the vmTestbase? This is the second of two webrevs to handle this. Webrev: http://cr.openjdk.java.net/~jcbeyler/8215160/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8215160 Thanks, Jc

RFR (L) 8215161: Remove spaces in assignments for vmTestbase/[a-j]

2018-12-10 Thread JC Beyler
Hi all, Could I get a review that adds a space around comparisons for the vmTestbase? This is the first of two webrevs to handle this. Webrev: http://cr.openjdk.java.net/~jcbeyler/8215161/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8215161 Thanks, Jc

Re: RFR (L) 8215161: Remove spaces in assignments for vmTestbase/[a-j]

2018-12-10 Thread JC Beyler
ption says > Remove spaces > > On Mon, Dec 10, 2018 at 1:04 PM JC Beyler wrote: > >> Hi all, >> >> Could I get a review that adds a space around comparisons for the >> vmTestbase? This is the first of two webrevs to handle this. >> >> Webrev: ht

Re: RFR (L) 8215160: Normalize spaces for remaining vmTestbase tests

2018-12-11 Thread JC Beyler
Thanks Alex for the review! Tested & pushed, Jc On Tue, Dec 11, 2018 at 12:21 PM Alex Menkov wrote: > Hi Jc, > > Thanks for the update. > LGTM. > > --alex > > On 12/10/2018 20:39, JC Beyler wrote: > > Hi Alexey, > > > > Thanks for the review! >

RFR (XS) 8215329: Modify ZGC requirement for HeapMonitorThreadTest.java

2018-12-12 Thread JC Beyler
Hi all, When working on another webrev, I saw this problem: Webrev: http://cr.openjdk.java.net/~jcbeyler/8215329/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8215329 (Basically, from what I understood from an email from Per Liden: - @requires !vm.gc.Z -> ZGC is built in the JDK

Re: RFR (XS) 8215329: Modify ZGC requirement for HeapMonitorThreadTest.java

2018-12-13 Thread JC Beyler
s the JVMTI Heap Monitor Thread information sanity. > >> * @compile HeapMonitorThreadTest.java > >> - * @run main/othervm/native -Xmx512m -agentlib:HeapMonitorTest > >> MyPackage.HeapMonitorThreadTest > >> - * @requires !vm.gc.Z > >> + * @run main/othervm/native -Xmx7

Re: RFR (XS) 8215495: Always set isCopy

2018-12-17 Thread JC Beyler
Holmes wrote: > Hi Jc, > > On 18/12/2018 3:42 am, JC Beyler wrote: > > Hi all, > > > > Could I get a review for this webrev: > > > > Webrev: http://cr.openjdk.java.net/~jcbeyler/8215495/webrev.00/ > > Bug: https://bugs.openjdk.java.net/browse

Re: RFR (XS) 8215495: Always set isCopy

2018-12-17 Thread JC Beyler
Sounds good to me: For the odd corner case: Webrev: http://cr.openjdk.java.net/~jcbeyler/8215495/webrev.01/ Bug: https://bugs.openjdk.java.net/browse/JDK-8215495 Thanks! Jc On Mon, Dec 17, 2018 at 2:39 PM David Holmes wrote: > Hi Jc, > > On 18/12/2018 8:12 am, JC Beyler wrote: >

Re: [PATCH] 8214535: Extend JMap to support parallel and incremental heap scanning

2018-12-18 Thread JC Beyler
ap –histo. > https://bugs.openjdk.java.net/browse/JDK-8215624 > Is it reasonable ? > Sounded reasonable to me :-) Jc > Thanks! > > > > BRs, > > Lin > > *From:* JC Beyler [mailto:jcbey...@google.com] > *Sent:* Wednesday, December 19, 2018 12:56 AM > *To:* 臧琳 > *C

Re: JDK-8211343: nsk_jvmti_parseoptions should handle multiple suboptions

2018-12-20 Thread JC Beyler
Hi Gary, I had seen that too and forgot to file it! So thanks! I think the comment you removed is interesting, I'm not sure what it means exactly and I've tried re-reading a few times but the use of "in this question" is weird :-) Anyway, the webrev looks good except perhaps for the use of strs

RFR (S) 8212824: Remove unnecessary spaces before/after comparison in vmTestbase

2019-01-08 Thread JC Beyler
Hi all, Could I get a review for a small-ish webrev that only changes white-spaces (or removes unnecessary new lines): Bug: https://bugs.openjdk.java.net/browse/JDK-8212824 Webrev: http://cr.openjdk.java.net/~jcbeyler/8212824/webrev.00/ Thanks, Jc

RFR (M) 8212959: Remove booleans from tests in vmTestbase

2019-01-08 Thread JC Beyler
Hi all, Fixing up the tests in vmTestbase to not be testing explicitly against NSK_TRUE/NSK_FALSE. Here is the webrev to do that: Bug: https://bugs.openjdk.java.net/browse/JDK-8212959 Webrev: http://cr.openjdk.java.net/~jcbeyler/8212959/webrev.00/ Thanks, Jc

Re: RFR (M) 8212959: Remove booleans from tests in vmTestbase

2019-01-10 Thread JC Beyler
d up David :-), Jc On Tue, Jan 8, 2019 at 11:14 PM David Holmes wrote: > On 9/01/2019 4:43 pm, JC Beyler wrote: > > Hi David, > > > > I was not planning on doing it but we could. This change came from a > > request to remove the booleans from tests for a prior

Re: RFR(S) 8215113: Sampling interval not always correct

2019-01-11 Thread JC Beyler
if we passed it to the heap sampler. > > Same copyright line comment for HeapMonitor.java, > HeapMonitorArrayAllSampledTest.java and > HeapMonitorStatArrayCorrectnessTest.java > as for memAllocator.cpp. > > Otherwise lgtm, no need for another webrev on my account. > > > Thanks, > > > >

Re: Low-Overhead Heap Profiling

2017-05-16 Thread JC Beyler
Dear Robbin, Thank you for the answers, much appreciated :) Jc On Tue, May 16, 2017 at 5:20 AM, Robbin Ehn wrote: > Just a few answers, > > On 05/15/2017 06:48 PM, JC Beyler wrote: > >> Dear all, >> >> I've updated the webrev to: >> http://cr.op

Re: Low-Overhead Heap Profiling

2017-05-22 Thread JC Beyler
ouble check the stack walker a bit more Happy webrev perusal! Jc On Tue, May 16, 2017 at 5:20 AM, Robbin Ehn wrote: > Just a few answers, > > On 05/15/2017 06:48 PM, JC Beyler wrote: > >> Dear all, >> >> I've updated the webrev to: >> http://cr.openjdk.

Re: Low-Overhead Heap Profiling

2017-07-05 Thread JC Beyler
ates you pick, which means that your average gets closer using that math. Thanks, Jc On Thu, Jun 29, 2017 at 10:01 PM, JC Beyler wrote: > Thanks Robbin, > > This seems to have worked. When I have the next webrev ready, we will find > out but I'm fairly confident it will work! >

Re: Low-Overhead Heap Profiling

2017-10-09 Thread JC Beyler
Thanks for any comments/criticisms! Jc On Mon, Oct 2, 2017 at 8:52 PM, JC Beyler wrote: > Dear all, > > Small update to the webrev: > http://cr.openjdk.java.net/~rasbold/8171119/webrev.09_10/ > > Full webrev is here: > http://cr.openjdk.java.net/~rasbold/8171119/webrev.10

Re: Low-Overhead Heap Profiling

2017-10-16 Thread JC Beyler
static jint _monitoring_rate; > @@ -92,7 +91,2 @@ > > - // Is the profiler initialized and where is the address to the > initialized > - // boolean. > - static bool initialized(); > - static bool *initialized_address(); > - >// Called when o is to be sampled from a give

Re: Low-Overhead Heap Profiling

2017-11-01 Thread JC Beyler
Dear all, Here is the next webrev: http://cr.openjdk.java.net/~rasbold/8171119/webrev.14a/ Incremental since the rebase: http://cr.openjdk.java.net/~rasbold/8171119/webrev.14_14a/ (I'm still not too familiar with hg so I had to do a fresh rebase so v14 is once the rebase was done and v14a integr

JDK-8171119: Low-Overhead Heap Profiling

2018-01-26 Thread JC Beyler
: > Hi JC, (dropping compiler on mail thread) > > On 01/26/2018 06:45 AM, JC Beyler wrote: >> >> Thanks Robbin for the reviews :) >> >> The new full webrev is here: >> http://cr.openjdk.java.net/~jcbeyler/8171119/webrev.03/ >> The incremental webrev is

Re: JDK-8171119: Low-Overhead Heap Profiling

2018-01-29 Thread JC Beyler
nce now that is easy and makes sense to probably add such an event, and I can add a few more tests. Thanks! On Mon, Jan 29, 2018 at 1:29 AM, Robbin Ehn wrote: > Hi JC, thanks! > > I'm happy with current state, looks good! > > Truncated: > > On 01/27/2018 05:01 AM, JC Be

Re: JDK-8171119: Low-Overhead Heap Profiling

2018-04-02 Thread JC Beyler
“JavaThread::tlab_end_offset()” should become > “JavaThread::tlab_current_end_offset()”. > > > > This should correspond to the other port’s changes in > templateTable_.cpp files. > > > > Thanks! > - Derek > > > > *From:* hotspot-compiler-dev [mailto: > hots

Re: inspect a thread’s stack

2018-04-09 Thread JC Beyler
I think the conversation will shift a bit if you explain what you mean with: "// inspect the frames of that thread doing any needed business with them" What exactly do you have in mind? Do you want to change the stack in some way? Because, depending on what you want, Andrew's comment on: ThreadM

Re: JDK-8171119: Low-Overhead Heap Profiling

2018-04-26 Thread JC Beyler
rewriting based version of this, I had complaints about missing allocations >> from JNI and APIs like Class.newInstance. (I don't know how the placement >> of the collectors would affect this, but it did matter). >> >> Jeremy >> >> On Thu, Apr 12, 2018 at 2:

RFR 8171119: Low-Overhead Heap Profiling

2018-05-07 Thread JC Beyler
Hi all, With the awesome help of Serguei Spitsyn, we have moved forward on the implementation for JEP-331 and have the following webrev for review: Webrev: http://cr.openjdk.java.net/~jcbeyler/8171119/heap_event.18/ Bug: https://bugs.openjdk.java.net/browse/JDK-8171119 It is based on jdk/jdk so

Re: RFR 8171119: Low-Overhead Heap Profiling

2018-05-14 Thread JC Beyler
p). > > As general note, not your doing, setting a pointer in a heap allocated > object to > a stack allocated object is a really bad pattern. > JvmtiThreadState -> collector > > Thanks, Robbin > > On 05/08/2018 03:10 AM, JC Beyler wrote: > > Hi all, > >

Re: RFR 8171119: Low-Overhead Heap Profiling

2018-05-14 Thread JC Beyler
Robbin Ehn wrote: > On 2018-05-14 21:37, JC Beyler wrote: > > Hi Robbin, > > > > I did this then, which should be explicit enough, no? > > > > // If we want to be sampling, protect the allocated object with > a Handle > >// before doing

Re: RFR (S) 8205643: [Graal] serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCCMSTest.java fails

2018-07-10 Thread JC Beyler
mList.txt > > > > Thanks, > > Serguei > > > > > > On 7/10/18 12:26, Alex Menkov wrote: > >> Hi JC, > >> > >> you need also to remove the test from ProblemList > >> > >> --alex > >> > >> On 0

Re: RFR (S) 8206960: [Graal] serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor tests fail

2018-07-12 Thread JC Beyler
> Serguei > > > On 7/11/18 10:04, JC Beyler wrote: > > Hi all, > > Could someone review the small-ish webrev for the bug: > https://bugs.openjdk.java.net/browse/JDK-8206960 > > The webrev is here: > http://cr.openjdk.java.net/~jcbeyler/8206960/webrev.00/ > &g

Re: RFR (S) 8206960: [Graal] serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor tests fail

2018-07-12 Thread JC Beyler
tch. > > Thanks, > Serguei > > > On 7/12/18 11:30, Alex Menkov wrote: > > Looks good to me as well. > > > > --alex > > > > On 07/12/2018 07:25, JC Beyler wrote: > >> Thanks Serguei! > >> > >> Anybody motivated to give t

RFR(S) 8205652: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java fails

2018-07-16 Thread JC Beyler
Hi all, Small RFR to update a HeapMonitor test that had two issues: a test was wrong and the test was not allocating enough to get to an expected sample count. Instead of allocating 10 times more and hit some OOM on the test framework, the webrev allocates in chunks and gets the number of samples.

Re: RFR(S) 8205541: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatArrayCorrectnessTest.java fails

2018-07-17 Thread JC Beyler
t...@oracle.com wrote: > > Hi Jc, > > > > It looks good to me. > > > > Thanks, > > Serguei > > > > > > On 7/16/18 12:37, JC Beyler wrote: > >> Hi all, > >> > >> Small RFR to update two HeapMonitor tests to remove test fail

Re: RFR(S) 8205652: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorStatRateTest.java fails

2018-07-17 Thread JC Beyler
gt; > > It looks good to me. > > > > Thanks, > > Serguei > > > > On 7/16/18 10:58, JC Beyler wrote: > >> Hi all, > >> > >> Small RFR to update a HeapMonitor test that had two issues: a test was > >> wrong and the test was not all

RFR(S) 8207765: HeapMonitorIntervalRateTest fails with ZGC

2018-07-19 Thread JC Beyler
Hi all, Could I have a few reviews of: http://cr.openjdk.java.net/~jcbeyler/8207765/webrev.00/ 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 work

Re: RFR (S) 8207252: C1 still does eden allocations when TLAB is enabled

2018-07-20 Thread JC Beyler
> Thanks, > >> Serguei > >> > >> > >> On 7/19/18 00:48, Rahul Raghavan wrote: > >>> RFR (S) 8207252: C1 still does eden allocations when TLAB is enabled > >>> > >>> (just adding + hotspot-compiler-dev also) > >>> >

Re: RFR (XS) 8208059: [TESTBUG] HeapMonitorInterpreterArrayTest.java fails

2018-07-25 Thread JC Beyler
Thanks for your help Daniel, Could I get a second review and I'll prepare an updated webrev :) Jc On Wed, Jul 25, 2018 at 7:42 AM Daniel D. Daugherty < daniel.daughe...@oracle.com> wrote: > On 7/25/18 10:20 AM, JC Beyler wrote: > > Hi all, > > There seems to be an int

Re: RFR (XS) 8208059: [TESTBUG] HeapMonitorInterpreterArrayTest.java fails

2018-07-25 Thread JC Beyler
I'll push it after you send me a patch. > > > On 7/25/18 07:42, Daniel D. Daugherty wrote: > > On 7/25/18 10:20 AM, JC Beyler wrote: > > Hi all, > > There seems to be an intermittent failure with the > HeapMonitorInterpreterArrayTest. I believe it is due to the pos

RFR (XS) 8208251: serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorGCCMSTest.java fails intermittently on Linux-X64

2018-07-26 Thread JC Beyler
Hi all, As we fixed the HeapMonitorTest to not fail from time to time, there seems to be the same issue and risk in HeapMonitorGCTest. Could someone review the similar fix: Webrev: http://cr.openjdk.java.net/~jcbeyler/8208251/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8208251 The r

Re: RFR 8208303: Track JNI failures and fail tests

2018-07-27 Thread JC Beyler
s done)? > > Thanks, > Serguei > > > On 7/26/18 12:08, Daniel D. Daugherty wrote: > > Please make sure this fix is well tested in Mach5 prior to pushing. > In particular, I'm focused on reducing the noise in Mach5 tier[1-3] > so adding any new failures there will ma

RFR (S) 8203356: VM Object Allocation Collector can infinite recurse

2018-08-02 Thread JC Beyler
Hi all, (Renaming the thread that did not have the RFR in front of the subject, I apologize) Could someone review this change: Webrev: http://cr.openjdk.java.net/~jcbeyler/8203356/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8203356 Basically, if during a callback from a VMObjectAll

Re: RFR(S) 8207765: HeapMonitorIntervalRateTest fails with ZGC

2018-08-08 Thread JC Beyler
idn't see this thread until now... been on vacation, jvmls, etc) > > On 07/19/2018 11:52 PM, JC Beyler wrote: > > Hi Serguei, > > > > Done here: > > http://cr.openjdk.java.net/~jcbeyler/8207765/webrev.01/ > > > > I added: > > > > + /

Re: RFR 8208303: Track JNI failures and fail tests

2018-08-08 Thread JC Beyler
; instead > "fill_native_frames" > No need to resent webrev. > > --alex > > On 08/08/2018 10:56, JC Beyler wrote: > > Hi Serguei, > > > > Sounds good to me. If someone else could review it, I could add the > > metadata to the webrev and, once t

Re: RFR (S) 8201224: Make string buffer size dynamic

2018-08-10 Thread JC Beyler
Hi all, Anybody motivated to look at this change? :) Webrev: http://cr.openjdk.java.net/~jcbeyler/8201224/webrev.01/ Bug: https://bugs.openjdk.java.net/browse/JDK-8201224 Let me know what you think! Jc On Wed, Aug 8, 2018 at 11:34 AM JC Beyler wrote: > Hi all, > > Here is a revis

Re: RFR (S) 8201224: Make string buffer size dynamic

2018-08-14 Thread JC Beyler
e were not going over the limit as I misread the return of the method. You are right, sorry about that. Thanks again! Jc > > --alex > > On 08/10/2018 07:55, JC Beyler wrote: > > Hi all, > > > > Anybody motivated to look at this change? :) > > > > Webrev: h

Re: custom/fast heap dumper

2018-08-22 Thread JC Beyler
For what it's worth, when possible, I think it's easier to use the heap samples to understand leaks (it's often what our users end up doing; ie: hmm why is this heap allocation still remaining live?). You could also dump the heap samples at OOM and/or VM exit. I know it is not always comparable b

Re: RFR (S) 8203356: VM Object Allocation Collector can infinite recurse

2018-08-24 Thread JC Beyler
omeone provokes a VM allocation during a VM Allocation Event. > > Webrev: http://cr.openjdk.java.net/~jcbeyler/8203356/webrev.00/ > Bug: https://bugs.openjdk.java.net/browse/JDK-8203356 > > Thanks! > Jc > > On Thu, Aug 2, 2018 at 12:46 PM JC Beyler wrote: > >&

Re: RFR: 8209585: [Graal] vmTestbase/nsk/jvmti/scenarios/sampling tests fail with "Too small stack of resumed thread"

2018-08-24 Thread JC Beyler
Hi Daniil, Just my two cents about this :) I was looking at this and wondered if it made sense to fix the test this way (I always worry about simplifying a test and losing coverage). I understand the bug is that it is possible that between both calls, Graal could add some frames and therefore mig

Re: RFR: 8209585: [Graal] vmTestbase/nsk/jvmti/scenarios/sampling tests fail with "Too small stack of resumed thread"

2018-08-27 Thread JC Beyler
oncern. > But now I think there is no point to take these values on non-suspended > threads. > It has to be good enough to compare the values taken on suspended threads > only. > > Thanks, > Serguei > > > On 8/24/18 16:49, JC Beyler wrote: > > Hi Daniil, >

Re: 8209585: [Graal] vmTestbase/nsk/jvmti/scenarios/sampling tests fail with "Too small stack of resumed thread"

2018-08-27 Thread JC Beyler
> Webrev: http://cr.openjdk.java.net/~dtitov/8209585/webrev.02/ > Issue: https://bugs.openjdk.java.net/browse/JDK-8209585 > > Thanks! > Daniil > > > > From: serviceability-dev on > behalf of Daniil Titov > Date: Monday, August 27, 2018 at 11:05 AM > To: JC Beyler , &g

Re: RFR (S) 8203356: VM Object Allocation Collector can infinite recurse

2018-08-27 Thread JC Beyler
for examples from "Red > Hat" and "SAP" to see what I mean. > > I'm not sure about the nbproject changes. I've never seen this file get > updated before. > > thanks, > > Chris > > On 8/22/18 4:20 PM, JC Beyler wrote: > > Hi all, >

Re: RFR JDK-8067354: com/sun/jdi/GetLocalVariables4Test.sh failed

2018-08-30 Thread JC Beyler
Looks good to me Alex. With the various refactoring that you've done, this is getting really easy to read and understand what is actually being tested :) Jc On Thu, Aug 30, 2018 at 3:13 PM Alex Menkov wrote: > Hi all, > > Please review a fix for > https://bugs.openjdk.java.net/browse/JDK-8067354

RFR (S) 8208352: Merge HeapMonitorTest and HeapMonitorGCTest code

2018-09-05 Thread JC Beyler
Hi all, Two of the tests shared code and we could refactor to limit future fixes/changes in both spots. Here is the small webrev that does that: Webrev: http://cr.openjdk.java.net/~jcbeyler/8208352/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8208352 Thank you for the future reviews,

Re: RFR (M) 8210198: Clean up JNI_ENV_ARG for vmTestbase/jvmti/Get[A-F] tests

2018-09-05 Thread JC Beyler
[meth_ind].sig); > 136 } > > In getclsldr003.cpp, getfldecl001.cpp, getfldecl002.cpp, and > getfldecl004.cpp, no need to compare with JNI_TRUE. Just negate the > expression.: > > 98 if (env->IsSameObject(classloader, cl) != JNI_TRUE) { > > Otherwise looks goo

RFR (L) 8210429: Clean up JNI_ENV_ARG for vmTestbase/jvmti/Get[G-Z] tests

2018-09-05 Thread JC Beyler
Hi all, Continuing the removal of the JNI_ENV* macros, I have done the other half of the JVMTI Get[G-Z] methods. The final JVMTI test refactoring will come in a final webrev after this one. The change is straightforward as before, just a bit repetitive: Webrev: http://cr.openjdk.java.net/~jcbeyle

Re: RFR (L) 8210429: Clean up JNI_ENV_ARG for vmTestbase/jvmti/Get[G-Z] tests

2018-09-07 Thread JC Beyler
t; -mid = JNI_ENV_PTR(env)->GetStaticMethodID(JNI_ENV_ARG(env, cl),+ >mid = env->GetStaticMethodID(cl, > name, sig); > > I'd suggest to replace to place the call to just one line. > > > No need for another webrev if you fix it. > > Thanks, > Serg

Re: RFR: (S) 8210512: [Testbug] vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects002/referringObjects002.java fails with unexpected size of ClassLoaderReference.referringObjects

2018-09-10 Thread JC Beyler
Hi David, Looks good to me (I'm not a reviewer but wanted to piggy-back and say I actually learnt quite a bit with the conversation on the original webrev). Thanks! Jc On Mon, Sep 10, 2018 at 2:59 PM serguei.spit...@oracle.com < serguei.spit...@oracle.com> wrote: > Hi David, > > It looks good t

Re: RFR (XL) 8210385: Clean up JNI_ENV_ARG and factorize the macros for remaining vmTestbase/jvmti tests

2018-09-10 Thread JC Beyler
ttps://bugs.openjdk.java.net/browse/JDK-8210385 > > > > Thanks again! > > Jc > > > > > > On Fri, Sep 7, 2018 at 11:51 AM Alex Menkov > <mailto:alexey.men...@oracle.com>> wrote: > > > > I think ~40-50 files per fix is my maximum :

  1   2   >