Re: RFR (S): 8211909: JDWP Transport Listener: dt_socket thread crash

2018-10-16 Thread Dmitry Samersoff
se/nsk/jvmti/) > > A regression test may be possible if we call GetThreadGroupChildren in a > loop, whilst threads add and remove themselves from the group > concurrently. But it is awkward to write. > > Thanks, > David > > Thanks, > David -- Dmitry Samersoff http://devnull.samersoff.net * There will come soft rains ... signature.asc Description: OpenPGP digital signature

Re: RFR(M): JDK-8072395: LingeredAppTest.java and JMapHeapConfigTest.java fail due to LingeredApp ERROR: java.io.IOException: Lock is too old. Aborting

2015-02-12 Thread Dmitry Samersoff
other tests I think that know they aren't going to work, just print >> a message and return from main, they don't count this as a failure. >> I'll leave that for you to decide!... >> >> Thanks Kevin >> >> >> On 11/02/2015 10:41, Dmitry Sam

Re: Review request: Backport of JDK-8046282 to 8u

2015-02-13 Thread Dmitry Samersoff
t/~poonam/8046282/webrev.00/ > > Thanks, > Poonam > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: gdb and OpenJDK

2015-02-16 Thread Dmitry Samersoff
ong term. I've been discussing this with Red Hat's GDB > group and I'm hoping to come up with a proposal and hopefully some > working code. > > Andrew. > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR(S): 8073042: jcmd hangs until another jcmd is executed (which, in turn, also hangs) (on Windows)

2015-03-02 Thread Dmitry Samersoff
perations manage to get enqueued, but not processed until > another thread eventually signals the semaphore by posting another op. > > We must allow the semaphore to stay signaled when multiple ops are enqueued - > and since we only allow preallocate_count number of operations to b

Re: RFR: 8073688: Infinite loop reading types during jmap attach.

2015-03-03 Thread Dmitry Samersoff
reate that > symlink, but the tools need to protect themselves from this kind of > problem. > > Testing was manual. > > bug > https://bugs.openjdk.java.net/browse/JDK-8073688 > > webrev > http://cr.openjdk.java.net/~kevinw/8073688/webrev.00/ > > Thanks > Kevi

Re: RFR: Resolve disabled warnings for the JVMTI demos

2015-03-10 Thread Dmitry Samersoff
074842 > webrev: http://cr.openjdk.java.net/~sla/8074841/webrev.00/ > > Thanks, > /Staffan > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

RFR(S, TEST) JDK-8075569: jmap test fails due to "ERROR: java.nio.file.NoSuchFileException: 2906081d-06bc-4738-a7e8-f37b8bf13658.lck

2015-03-21 Thread Dmitry Samersoff
Hi Everyone, Please review small, test only fix. http://cr.openjdk.java.net/~dsamersoff/JDK-8075569/webrev.01/ Lock deleted while we are setting last modified time. Ignore error and lets the app exits -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I

Re: RFR(S, TEST) JDK-8075569: jmap test fails due to "ERROR: java.nio.file.NoSuchFileException: 2906081d-06bc-4738-a7e8-f37b8bf13658.lck

2015-03-21 Thread Dmitry Samersoff
Alan, Thank you for the review. I agree that File.exists is no longer required, but I would prefer to keep it for better readability. -Dmitry On 2015-03-21 13:57, Alan Bateman wrote: > On 21/03/2015 10:50, Dmitry Samersoff wrote: >> Hi Everyone, >> >> Please review

RFR(S): JDK-8068007 [Findbugs] SA com.sun.java.swing.action.ActionManager.manager should be package protect

2015-04-02 Thread Dmitry Samersoff
Everybody, Please review a small fix. The fix goes to 9 and 8u at the same time. http://cr.openjdk.java.net/~dsamersoff/JDK-8068007/webrev.01/ -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give m

Re: RFR(S): JDK-8068007 [Findbugs] SA com.sun.java.swing.action.ActionManager.manager should be package protect

2015-04-02 Thread Dmitry Samersoff
David, On 2015-04-02 14:45, David Holmes wrote: > Hi Dmitry, > > On 2/04/2015 9:27 PM, Dmitry Samersoff wrote: >> Everybody, >> >> Please review a small fix. >> >> The fix goes to 9 and 8u at the same time. >> >> http://cr.openjdk.java.net

Re: RFR(S): JDK-8068007 [Findbugs] SA com.sun.java.swing.action.ActionManager.manager should be package protect

2015-04-02 Thread Dmitry Samersoff
Fix updated. On 2015-04-02 15:05, Dmitry Samersoff wrote: > David, > > > On 2015-04-02 14:45, David Holmes wrote: >> Hi Dmitry, >> >> On 2/04/2015 9:27 PM, Dmitry Samersoff wrote: >>> Everybody, >>> >>> Please review a small fix. >&g

Re: RFR(S): JDK-8068007 [Findbugs] SA com.sun.java.swing.action.ActionManager.manager should be package protect

2015-04-02 Thread Dmitry Samersoff
Jaroslav, Thank you! -Dmitry On 2015-04-02 15:45, Jaroslav Bachorik wrote: > On 2.4.2015 14:35, Dmitry Samersoff wrote: >> Fix updated. > > I like this better. Still rather convoluted but it seems to be as good > as we can get without a bigger rewrite. > > I'm ok

RFR(XS): JDK-8067991 [Findbugs] SA com.sun.java.swing.ui.CommonUI some methods need final protect

2015-04-02 Thread Dmitry Samersoff
Everybody, Please review a small fix: The fix goes to 9 and 8u at the same time. http://cr.openjdk.java.net/~dsamersoff/JDK-8067991/webrev.01/ -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give m

Re: RFR(XS)v2: JDK-8067991 [Findbugs] SA com.sun.java.swing.ui.CommonUI some methods need final protect

2015-04-03 Thread Dmitry Samersoff
Everybody, Please, review updated webrev: http://cr.openjdk.java.net/~dsamersoff/JDK-8067991/webrev.02/ Fixed a compilation error that wasn't caught during incremental build. -Dmitry On 2015-04-02 15:54, Dmitry Samersoff wrote: > Everybody, > > Please review a small fix: >

Re: RFR(XS)v2: JDK-8067991 [Findbugs] SA com.sun.java.swing.ui.CommonUI some methods need final protect

2015-04-04 Thread Dmitry Samersoff
n the > agent/src/share/classes/com/sun/java/swing/ui/CommonUI.java > > +public static Dimension getButtonPrefSize() > +{ > +return buttonPrefSize; > +} > > => > > +public static Dimension getButtconPrefSize() > +{ > +return buttconPr

Re: RFR(XS)v2: JDK-8067991 [Findbugs] SA com.sun.java.swing.ui.CommonUI some methods need final protect

2015-04-04 Thread Dmitry Samersoff
Serguei, Thanks! -Dmitry On 2015-04-04 11:58, serguei.spit...@oracle.com wrote: > Dmitry, > > I think, no re-review is necessary after fixing this typo. > You had addressed the review comments. > > Thanks, > Serguei > > On 4/4/15 12:06 AM, Dmitry Samersoff wrote:

Re: Unable to create hprof heap dump from core file with jmap on Oracle Solaris

2015-04-05 Thread Dmitry Samersoff
cle Solaris 10 8/11 s10s_u10wos_17b SPARC > Oracle Solaris 11.1 X86 > Oracle Solaris 11.2 X86 > > I found a similar issue in the JDK bug system (JDK-8044416), but the > last update there stated that JDK-8044416 "is about the -F > functionality" and to "pl

RFR(S): JDK-8044416 serviceability/sa/jmap-hashcode/Test8028623.java fails with AssertionFailure: can not get class data for java/lang/UNIXProcess$Platform$$Lambda

2015-04-09 Thread Dmitry Samersoff
mitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR(S): JDK-8044416 serviceability/sa/jmap-hashcode/Test8028623.java fails with AssertionFailure: can not get class data for java/lang/UNIXProcess$Platform$$Lambda

2015-04-09 Thread Dmitry Samersoff
Jaroslav, Thank you! Nits fixed in-place (press shift-reload) -Dmitry On 2015-04-09 19:12, Jaroslav Bachorik wrote: > Hi Dmitry, > > Indentation should be 4 spaces. > Copyright year will need update. > > Otherwise looks good! > > -JB- > > On 9.4.2015

Re: RFR(S): 8077832: SA's dumpreplaydata, dumpcfg and buildreplayjars are broken

2015-04-15 Thread Dmitry Samersoff
Roland, Looks good to me. -Dmitry On 2015-04-15 12:48, Roland Westrelin wrote: > http://cr.openjdk.java.net/~roland/8077832/webrev.00/ > > I found 3 locations where the SA code is out of sync with the hotspot code. > > Roland. > -- Dmitry Samersoff Oracle Java devel

RFR(S): JDK-8074146 jdb has succeded to read an unreadable file

2015-04-16 Thread Dmitry Samersoff
verify the read fails" So I decide to go with the surgery rather than a therapy and cut out this test case entirely. -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR: 8078519 Can't run SA tools from a non-images build

2015-04-23 Thread Dmitry Samersoff
("sa.properties"); >> + if (VM.class.getClassLoader() == null) { >> + url = ClassLoader.getSystemResource("sa.properties"); >> + } >> + else { >> + url = VM.class.getClassLoader().getResource("sa.properties");

Re: sun/jvm/hotspot/oops/Symbol.java

2015-04-28 Thread Dmitry Samersoff
._symbol_mask)); >} > > I'm not at all sure this is the right place to fix it, but it works. > > I'm just really surprised no-one noticed this before. > > Andrew. > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

RFR(M): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-05 Thread Dmitry Samersoff
Everyone, Please review the fix: http://cr.openjdk.java.net/~dsamersoff/JDK-8059036/webrev.01/ heap dcmd outputs the same information as SIGBREAK finalizerinfo dcmd outputs a list of all classes in finalization queue with count -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint

Re: PING Re: RFR: 8078521: AARCH64: Add AArch64 SA support

2015-05-06 Thread Dmitry Samersoff
uldn't be controversial at this point. > > Thanks, > Andrew. > > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR: 8079360 AttachProviderImpl could not be instantiated

2015-05-06 Thread Dmitry Samersoff
t; exception if something like this happens again. > > webrev: http://cr.openjdk.java.net/~sla/8079360/webrev.00/ > bug: https://bugs.openjdk.java.net/browse/JDK-8079360 > > Thanks, > /Staffan > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I woul

Re: 8079200: Fix heapdump tests to validate heapdump after jhat is removed

2015-05-07 Thread Dmitry Samersoff
; The fix makes sure the HprofParser is available for all types of test > frameworks, not only JTreg. It will be a part of test-lib.jar. > > Thanks, > Katja > > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: PING Re: RFR: 8078521: AARCH64: Add AArch64 SA support

2015-05-07 Thread Dmitry Samersoff
public -Dmitry On 2015-05-06 17:36, Andrew Haley wrote: > On 04/29/2015 08:42 AM, Andrew Haley wrote: >> >> http://cr.openjdk.java.net/~aph/8078521-2/ > > Any news on this? It shouldn't be controversial at this point. > > Thanks, > Andrew. > >

Re: RFR(S): 6755586: Test com/sun/jdi/NoLaunchOptionTest.java may erroneously fail

2015-05-07 Thread Dmitry Samersoff
bug is actually already solved. But I'll use it as an opportunity > to re-write the test using test library. There is no need to retrieve a > free port since the error occurs before binding to the address. > > Thanks, > Katja -- Dmitry Samersoff Oracle Java development team

Re: RFR(M,v3): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-12 Thread Dmitry Samersoff
list may be interesting if one wants to know how many live + >> finalization pending instances are there on the heap that override >> finalize() method. >> >> Regards, Peter >> >>> >>> For the output, it would be a nice touch to sort it on the numb

Re: RFR[ 9u-dev] JDK-8075773 - jps running as root fails with 7u75, works fine with 7u72

2015-05-14 Thread Dmitry Samersoff
njdk.java.net/browse/JDK-8075773. I have built and > tested JDK9 with fix successfully. As I do not have an account for OpenJDK, > David Buck will push the fix into jdk9/hs-rt/. > > Web review link: http://cr.openjdk.java.net/~dbuck/8075773/webrev.01/ > > Regards, > Cheleswe

Re: RFR(M,v3): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-14 Thread Dmitry Samersoff
thological scenarios where this gets severe. This is >> unfortunate but not uncommon. There is enough complication here that >> you should be sure that the fix for diagnostics performance doesn't >> introduce subtle bugs to the system in general. A change in this area >&g

Re: RFR(M,v3): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-14 Thread Dmitry Samersoff
aken might > return 0 or just a few elements when there are millions there in the > queue. When scanner finally gets a head start, it will usually lead the > race to the end. > > Peter > >> >> Does this make more sense now? >> >> Regards, Peter >&g

Re: RFR(M,v6): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-15 Thread Dmitry Samersoff
we know threads are "jumpy" so it will happen quite frequently that a > poller jumps before scanner. So just giving-up when overtaken might > return 0 or just a few elements when there are millions there in the > queue. When scanner finally gets a head start, it will usually lead t

Re: RFR(M,v3): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-16 Thread Dmitry Samersoff
nQueue)... You could just expose >>>>> a package-private forEach static method from Finalizer and code the >>>>> rest in DiagnosticCommands. >>>> That's good for encapsulation. But I'm concerned that if "forEach" >>>> got ex

Re: PING Re: RFR: 8078521: AARCH64: Add AArch64 SA support

2015-05-16 Thread Dmitry Samersoff
SS_SIZE 69,73 - please, remove space after bracket. -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR[ 9u-dev] JDK-8075773 - jps running as root fails with 7u75, works fine with 7u72

2015-05-18 Thread Dmitry Samersoff
): >>> >>> - to process directory entries in a directory that is writable >>> which makes this use subject to a symlink or hard link attack. >>> - to process directory entries in a directory that the calling >>> user does not own; the intent of the

Re: RFR(M,v7): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-18 Thread Dmitry Samersoff
PM, Peter Levart wrote: >> >> >> On 05/16/2015 09:35 AM, Dmitry Samersoff wrote: >>> Derek, >>> >>> Personally, I'm for volatile over explicit fence too. >>> >>> So I'll change the code if Peter don't have objections. >&

Re: PING Re: RFR: 8078521: AARCH64: Add AArch64 SA support

2015-05-19 Thread Dmitry Samersoff
Andrew, Looks good for me. (not a Reviewer) > This will now enable the code for PPC; I guess that's OK. I think so too. -Dmitry On 2015-05-19 18:20, Andrew Haley wrote: > On 05/16/2015 06:03 PM, Dmitry Samersoff wrote: >> Andrew, >> >> On 2015-05-12 20:05,

Re: RFR(M,v7): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-19 Thread Dmitry Samersoff
implementation. Just to > give you a quick comment. I’m okay to add ReferenceQueue.forEach method > at the first glance. However I have trouble for > Finalizer.printFinalizationQueue method that doesn’t belong there. What > are the other alternatives you have explored? > > Mand

Re: RFR(M,v7): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-20 Thread Dmitry Samersoff
On 2015-05-20 11:22, Peter Levart wrote: > > > On 05/20/2015 08:51 AM, Dmitry Samersoff wrote: >> Mandy, >> >>> However I have trouble for >>> Finalizer.printFinalizationQueue method that doesn’t belong there. >>> What are the other alternatives you ha

Re: RFR(M,v7): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-20 Thread Dmitry Samersoff
> > On 05/20/2015 10:42 AM, Dmitry Samersoff wrote: >> Peter, >> >>> What about creating a special package-private >>> java.lang.ref.DiagnosticCommands class >> I'm not quite happy with current printFinalizationQueue method - love to >> have a way to

Re: RFR(M,v7): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-20 Thread Dmitry Samersoff
tput of this command should be covered by GC tests, more complicated than this one, because actual output depends to GC and heap parameters. I can just check for presence of "Metaspace" world in the DCMD output. -Dmitry > > > /Staffan > > >> On 18 maj 2015,

Re: RFR(M,v7): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-26 Thread Dmitry Samersoff
On 2015-05-21 02:07, Mandy Chung wrote: > >> On May 19, 2015, at 11:51 PM, Dmitry Samersoff >> mailto:dmitry.samers...@oracle.com>> wrote: >> >> Other alternatives could be to do all hashing/sorting/printing on native >> layer i.e. implement printFinaliza

Re: RFR(M,v9): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-26 Thread Dmitry Samersoff
Hi Everybody, http://cr.openjdk.java.net/~dsamersoff/JDK-8059036/webrev.09/ Please review updated webrev - printFinalizationQueue now returns and array of Map.Entry >> On May 19, 2015, at 11:51 PM, Dmitry Samersoff >> mailto:dmitry.samers...@oracle.com>> wrote: >> >

Re: RFR(S): 8081037: serviceability/sa/ tests time out on Windows

2015-05-27 Thread Dmitry Samersoff
dlock." > > The solutions is to start a separate target process. Dmitry Samersoff > has already created a test application for such cases so I've decided to > move it on the top level library instead of duplicating it. The test > application will reside under test/lib/sha

Re: RFR(M, v10): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-05-31 Thread Dmitry Samersoff
ram?). Can you move > this method to the end of this class and add the comment saying that > this is invoked by VM for jcmd -finalizerinfo support and @return to > describe the returned content. I also think you can remove > @SuppressWarnings for this method. > > Mandy -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR(M, v11): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-06-02 Thread Dmitry Samersoff
Klass::find_field and fieldDescriptor::offset to find the offset at > runtime. > > Thanks, > /Staffan > >> On 31 maj 2015, at 13:43, Dmitry Samersoff >> wrote: >> >> Everyone, >> >> Please take a look at new version of the fix. >> >

Re: RFR(M, v11): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-06-02 Thread Dmitry Samersoff
> Hi Dmitry, > > On 2015-06-02 13:12, Dmitry Samersoff wrote: >> Staffan, >> >>> Instead of hardcoding the field offsets, you can use >>> InstanceKlass::find_field and fieldDescriptor::offset to find the >>> offset at runtime. >> >> D

Re: RFR(M, v12): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-06-03 Thread Dmitry Samersoff
09:06, Peter Levart wrote: > Hi Dmitry, > > On 06/02/2015 01:12 PM, Dmitry Samersoff wrote: >> Staffan, >> >>> Instead of hardcoding the field offsets, you can use >>> InstanceKlass::find_field and fieldDescriptor::offset to find the >>&g

Re: RFR(M, v13): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-06-03 Thread Dmitry Samersoff
Everyone, Updated webrev: http://cr.openjdk.java.net/~dsamersoff/JDK-8059036/webrev.13 Changes to oop.inline.hpp is reverted and find_field used directly is diagnostic command. -Dmitry On 2015-06-03 11:48, Dmitry Samersoff wrote: > Everyone, > > Updated webrev:

Re: RFR(M, v14): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-06-04 Thread Dmitry Samersoff
vmSymbols looks like: template( get_finalizer_histogram_name, "getFinalizerHistogram") I would prefer to keep method name specific enough to be able to find it by grep in jdk code. (other comments are addressed) -Dmitry On 2015-06-03 21:36, Mandy Chung wrote: > > > On 06/0

Re: RFR(M, v14): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-06-04 Thread Dmitry Samersoff
>> e.g. "dump"? >> >> The line in vmSymbols looks like: >> >> template( >> get_finalizer_histogram_name, "getFinalizerHistogram") >> >> I would prefer to keep method name specific enough to be able to >> find it by grep in

Re: RFR(M, v14): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-06-05 Thread Dmitry Samersoff
10d %s", count, name); >} > } > > > A couple of nits: > > diagnosticCommand.cpp:359 - extra space after = > diagnosticCommand.cpp:361 - spelling: finlalization -> finalization > FinalizerInfoTest.java:69: - spelling: intialized -> initialized > Finali

Re: RFR(M, v14): JDK-8059036 : Implement Diagnostic Commands for heap and finalizerinfo

2015-06-08 Thread Dmitry Samersoff
Staffan, Could you review a CCC request. http://ccc.us.oracle.com/8059036 -Dmitry On 2015-06-05 15:24, Staffan Larsen wrote: > Thanks - this version looks good to me. > > /Staffan > >> On 5 jun 2015, at 13:00, Dmitry Samersoff >> wrote: >> >> Staffan, &g

RFR(S, TESTONLY): JDK-8081576 serviceability/sa tests fail due to LingeredApp process fails to start

2015-06-09 Thread Dmitry Samersoff
original exception get lost. Fixing it by adding static stopApp(app) method with null pointer check inside. -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: PING Re: RFR: 8078521: AARCH64: Add AArch64 SA support

2015-06-12 Thread Dmitry Samersoff
); +ImmutableOopMapSet.updateRegisterMap(this, cb, map, true); } // Since the prolog does the save and restore of FP there is no oopmap -Dmitry On 2015-05-19 18:20, Andrew Haley wrote: > On 05/16/2015 06:03 PM, Dmitry Samersoff wrote: >> Andrew, >> >> On 2015-05-12 20:0

Re: RFR(S, TESTONLY): JDK-8081576 serviceability/sa tests fail due to LingeredApp process fails to start

2015-06-20 Thread Dmitry Samersoff
eeds a correction: > that signal app => that signals app > waits until => wait until > > It is a little bit strange that an IOException is thrown > when the exit code does not match the expectation. > > > Thanks, > Serguei > > > On 6/9/15 5:48 A

RFR(S): JDK-8059038 Create new launcher for SA tools

2015-06-23 Thread Dmitry Samersoff
mmand line debugger clhsdb jhsdb jstack file core jhsdb jmap file core jhsdb jinfo file core will launch corresponding SA based utility. -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR: 8078521: AARCH64: Add AArch64 SA support

2015-06-24 Thread Dmitry Samersoff
Andrew, I'm ready to push your changes. Do you have an official jdk9 reviewer sign off? -Dmitry On 2015-06-12 17:58, Andrew Haley wrote: > On 06/12/2015 02:12 PM, Dmitry Samersoff wrote: >> Andrew, >> >> Found minor nit in the fix, please update the webrev: >

Re: RFR: 8078521: AARCH64: Add AArch64 SA support

2015-06-24 Thread Dmitry Samersoff
David, Could you take a look? -Dmitry On 2015-06-24 12:24, Andrew Haley wrote: > On 24/06/15 10:17, Dmitry Samersoff wrote: >> Do you have an official jdk9 reviewer sign off? > > Not that I've seen. I will send this to JDK9-dev. > > JDK9-dev people: we&#

Re: RFR(S): JDK-8059038 Create new launcher for SA tools

2015-06-24 Thread Dmitry Samersoff
continue; > 73 } > 74 > 75 if (s.equals("b")) { > 76 b_opt = true; > 77 continue; > 78 } > 79 > 80 if (s.equals("c")) { > 81 c_opt = true; > 82 contin

Re: RFR: 8078521: AARCH64: Add AArch64 SA support

2015-06-24 Thread Dmitry Samersoff
Andrew, The fix is pushed. Please take a look at the changeset for sanity. http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/0032abb6e693 -Dmitry On 2015-06-24 12:36, David Holmes wrote: > On 24/06/2015 7:26 PM, Dmitry Samersoff wrote: >> David, >> >> Could you take a lo

RFR(S): JDK-8129971 TestStackTrace.java: ArrayIndexOutOfBoundsException thrown by AARCH64ThreadContext.setRegister

2015-07-15 Thread Dmitry Samersoff
Everybody, Please, review the fix: http://cr.openjdk.java.net/~dsamersoff/JDK-8129971/webrev.01/ Added one more register counted in frame context. -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give m

Re: RFR(S): JDK-8129971 TestStackTrace.java: ArrayIndexOutOfBoundsException thrown by AARCH64ThreadContext.setRegister

2015-07-15 Thread Dmitry Samersoff
Katja, done. Webrev updated in-place (press shift-reload) -Dmitry On 2015-07-15 15:16, Yekaterina Kantserova wrote: > Dmitry, > > could you please remove @ignore tag in TestStackTrace.java as well? > > // Katja > > On 07/15/2015 01:52 PM, Dmitry Samersoff wrote: >&

Re: RFR(S): JDK-8059038 Create new launcher for SA tools

2015-07-16 Thread Dmitry Samersoff
carg = carg.substring(2); > > 136 ch = carg.charAt(_optopt); > 139 ch = carg.charAt(_optopt); > > > Otherwise, the fix looks good. > > > Thanks, > Serguei > > > On 6/24/15 5:37 AM, Dmitry Samersoff wrote: >>

Re: RFR(S): JDK-8059038 Create new launcher for SA tools

2015-07-17 Thread Dmitry Samersoff
Hi Dmitry, > > I do not see any changes. > Could you please, generate .06 version ? > In such a case, it will be much easier to compare the code. > > Thanks, > Serguei > > On 7/16/15 8:23 AM, Dmitry Samersoff wrote: >> Serguei, >> >> http://cr.op

Re: RFR(S): JDK-8059038 Create new launcher for SA tools

2015-07-17 Thread Dmitry Samersoff
it JDK-wide instead of a separate parser for each tool. > Other files look good to me. > Do you have another reviewer? Stefan Larsen reviewed one of the previous versions. -Dmitry > > > > On 7/17/15 2:46 AM, Dmitry Samersoff wrote: >> Serguei, >> >>

Re: RFR(S): JDK-8059038 Create new launcher for SA tools

2015-07-17 Thread Dmitry Samersoff
Serguei, Sorry for typeo new webrev: http://cr.openjdk.java.net/~dsamersoff/JDK-8059038/webrev.06 -Dmitry On 2015-07-17 16:28, serguei.spit...@oracle.com wrote: > On 7/17/15 6:21 AM, Dmitry Samersoff wrote: >> Serguei, >> >> new webrev: >> >> http://cr.openjdk

Re: RFR(S): JDK-8059038 Create new launcher for SA tools

2015-07-17 Thread Dmitry Samersoff
al to a new method optReset(). > > But I leave it up to you. > Thumbs up from me. > > > Thanks, > Serguei > > > On 7/17/15 7:13 AM, Dmitry Samersoff wrote: >> Serguei, >> >> Sorry for typeo >> >> new webrev: >> http://cr.openjdk

Re: RFR: JDK-8114828: wrong class file error when compiling tests

2015-07-18 Thread Dmitry Samersoff
http://cr.openjdk.java.net/~akulyakh/8114828/index.html >>> >>> Before the change the @library tags in the tests pointed to the directory >>> above the tests repository. >>> With the jtreg b12 and above this is not allowed. Instead, the >>> external.lib.roots p

Re: os::current_thread_id on Linux

2015-07-22 Thread Dmitry Samersoff
t; to os::Linux::gettid()? That way, it can be mapped back to the output of a > SIGQUIT dump. > > The downside of gettid() is that it is only available on Linux>2.4.11, but > that dates from 2001. If we really still want to support it, we could > check for that. > > Thou

RFR(S): JDK-8132648 sun/tools/jhsdb/BasicLauncherTest fails with java.lang.RuntimeException

2015-08-03 Thread Dmitry Samersoff
Everybody, Please review the fix: http://cr.openjdk.java.net/~dsamersoff/JDK-8132648/webrev.01/ Changes: Check for standard conditions that cause attach to fail Remove word "Server" to match both Server and Client compiler configurations. -Dmitry -- Dmitry Samersoff Oracle Java d

Re: JDK 9 RFR of JDK-8133060: Problem list BasicLauncherTest until fix for JDK-8132648 propagates

2015-08-05 Thread Dmitry Samersoff
ols/jhsdb/BasicLauncherTest.java macosx-all > + > ######## > > > Thanks, > > -Joe -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR: 8076470 - JEP 240: Remove the JVM TI hprof Agent

2015-08-07 Thread Dmitry Samersoff
<http://cr.openjdk.java.net/%7Esla/8076470/jdk/webrev.00/> >> hotspot changes: >> http://cr.openjdk.java.net/~sla/8076470/hotspot/webrev.00/ >> <http://cr.openjdk.java.net/%7Esla/8076470/hotspot/webrev.00/> >> >> Thanks, >> /Staffan >> >> >> > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR(S) 8033577: [parfait] warnings from b128 for hotspot/src/os/solaris/dtrace: Unportable format string argument mismatch

2015-08-07 Thread Dmitry Samersoff
/webrevs/2015/hotspot/8033577-dtrace-parfait1.1/ > > > > Summary: > The fix includes: >- the parfait fixes listed in the bug report and >- a couple of adjustments for the bsd version to match the solaris > version > > > Testing: > The JPRT build > >

Re: RFR(S) 8080401: Uninitialised variable in hotspot/src/os/solaris/dtrace/

2015-08-07 Thread Dmitry Samersoff
; > Open webrev: > http://cr.openjdk.java.net/~sspitsyn/webrevs/2015/hotspot/8080401-dtrace-parfait2.1/ > > > > Summary: > > The fix includes the parfait issues listed in the bug report. > > > Testing: > The JPRT build > > > Thanks, > Serguei -- D

RFR(S): 8086134 Deadlock detection fails to attach to core file

2015-08-19 Thread Dmitry Samersoff
runs jstack but hotspot version runs jhsdb (sa launcher). -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR(S): 8086134 Deadlock detection fails to attach to core file

2015-08-21 Thread Dmitry Samersoff
On 2015-08-21 12:35, Jaroslav Bachorik wrote: > Hi Dmitry, > > On 19.8.2015 19:10, Dmitry Samersoff wrote: >> Everybody, >> >> Please, review test-only fix. >> >> http://cr.openjdk.java.net/~dsamersoff/JDK-8086134/webrev.01/ >> >> The test is re

Re: RFR(S): 8086134 Deadlock detection fails to attach to core file

2015-08-25 Thread Dmitry Samersoff
* operating system' -> 'depends *on* operating system' fixed. (in-place, press shift-reload). -Dmitry On 2015-08-21 14:44, Jaroslav Bachorik wrote: > On 21.8.2015 12:05, Dmitry Samersoff wrote: >> On 2015-08-21 12:35, Jaroslav Bachorik wrote: >>> Hi Dmitry, >

Re: RFR 8134420: sun/tools/jps/TestJpsClass fails with java.lang.RuntimeException: The line 'line 2' does not match pattern '^\\d+\\s+.*': expected true, was false

2015-09-02 Thread Dmitry Samersoff
" strings respectively to keep the output format being 'one line per > one JVM'. > > Thanks, > > -JB- -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR(S): 8086134 Deadlock detection fails to attach to core file

2015-09-03 Thread Dmitry Samersoff
Everybody, Please, review updated webrev: http://cr.openjdk.java.net/~dsamersoff/JDK-8086134/webrev.02/ LingeredApp changed to better work on slow embedded platforms, fixed bug in hotspot version of test. On 2015-08-19 20:10, Dmitry Samersoff wrote: > Everybody, > > Please, review

Re: RFR(S): 8086134 Deadlock detection fails to attach to core file

2015-09-08 Thread Dmitry Samersoff
gt; > Overall it looks good. However, you can use Phaser in the > LingeredAppWithDeadlock to hit the deadlock for sure. Sorry for not > noticing this earlier :( > > -JB- > >> >> >> On 2015-08-19 20:10, Dmitry Samersoff wrote: >>> Everybody, >>> &

RFR(XS): JDK-8133063 Remove BasicLauncherTest from the problem list

2015-09-30 Thread Dmitry Samersoff
generic-all -# 8132648 -sun/tools/jhsdb/BasicLauncherTest.java generic-all - -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they

Re: [ping?] Re: RFR 8138748: ManagementAgent.status DCMD fails with NPE for JMX configured on command line

2015-10-07 Thread Dmitry Samersoff
kind of >> initialization and report the status appropriately. >> >> The change has passed the local testing and a full JPRT run. >> >> Thanks! >> >> -JB- > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR 8138579: Custom launcher fails to start because of permission problem

2015-10-07 Thread Dmitry Samersoff
by the current user and the attempt to set the executable > flag will succeed. > > The patch has been tested on all supported platforms successfully. > > Thanks, > > -JB- -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

RFR(S): JDK-8139762 Format warnings in generateJvmOffsets.cpp and libjvm_db.c

2015-10-16 Thread Dmitry Samersoff
Everybody. Please review the fix. http://cr.openjdk.java.net/~dsamersoff/JDK-8139762/webrev.01/ printf format characters %d and %ld misused in couple of places in generateJvmOffsets.cpp and libjvm_db.c -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I

Re: RFR(S): JDK-8139762 Format warnings in generateJvmOffsets.cpp and libjvm_db.c

2015-10-19 Thread Dmitry Samersoff
; > 283 GEN_VALUE(SIZE_HeapBlockHeader, (int) sizeof(HeapBlock::Header)); > > > If there is a type mismatch anywhere then it is better to use the type > cast to int as above. > > > Thanks, > Serguei > > On 10/16/15 07:56, Dmitry Samersoff wrote: >>

Re: RFR: 8138916: Logging write function does not allow for long enough messages

2015-10-28 Thread Dmitry Samersoff
lies inline. > > Modified webrev: http://cr.openjdk.java.net/~rprotacio/8138916.01/ > (Retested and works fine.) > > On 10/27/2015 7:52 AM, Dmitry Samersoff wrote: >> Rachel, >> >> In worst case (windows, overflow) the code would parse format string >> four times.

Re: RFR: 8138916: Logging write function does not allow for long enough messages

2015-10-28 Thread Dmitry Samersoff
uf_len doesn't account prefix_len 115 you may consider to use pre-calculated at ll. 108 prefix rather than calculate it again. 116 int ret redefined it causes a warning. -Dmitry > (Retested and works fine.) > > On 10/27/2015 7:52 AM, Dmitry Samersoff wrote: >> Rachel, >

RFR(S): JDK-7041183 Improve error handling in Improve error handling in src/share/vm/services/management.cpp

2015-10-30 Thread Dmitry Samersoff
Everybody, (* On behalf of Jini George *) Please review the fix http://cr.openjdk.java.net/~dsamersoff/sponsorship/jingeorg/JDK-7041183/webrev.01/ -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't gi

Re: RFR 8140481: NoClassDefFoundError thrown by ManagementFactory.getPlatformMBeanServer

2015-11-02 Thread Dmitry Samersoff
gt; Currently, the 'jdk.management' module is not a part of the JRE image > even though it should be. This patch adds 'jdk.management' to > PROVIDER_MODULES where it belongs. > > Thanks, > > -JB- -- Dmitry Samersoff Oracle Java development team, Saint Petersb

Re: RFR(M): 8140482: Various minor code improvements (runtime)

2015-11-05 Thread Dmitry Samersoff
ode, I would like to >>>>> leave the >>>>> check in there, still. >>>>> >>>>>>> task.cpp: >>>>>>> Fatal can return if -XX:SuppressErrorAt is used. Just don't access the >>>>>>> array in this case. >>>>>> >>>>>> Okay. I would not be surprised if we have a lot of potential errors if a >>>>>> fatal/guarantee failure is suppressed. >>>>>> >>>>>>> attachListener.hpp: >>>>>>> Do strncpy to not overflow buffer. Don't write more chars than >> before. >>>>>> >>>>>> Again we have the assert to catch an error in the caller using an >>>>>> invalid name. >>>>> Hmm, the command comes from outside of the VM. It's not checked >>>>> very thoroughly, see, e.g., attachListener_windows.cpp:194. Arg0 is >>>>> checked twice, arg1 and arg2 are not checked at all. >>>> >>>> The libattach code is still part of our codebase so should be doing the >>>> right things. The linux and solaris code seems to be doing the expected >>>> name length check. On Windows the name is set using cmd, which is also >>>> subject to a length check: >>>> >>>>if (strlen(cmd) > AttachOperation::name_length_max) return >>>> ATTACH_ERROR_ILLEGALARG; >>>> >>>>> I add fixes for attachListener_windows.cpp to this change. >>>>> >>>>>>> heapDumper.cpp: >>>>>>> strncpy does not null terminate. >>>>>> >>>>>> 1973 if (total_length >= sizeof(base_path)) { >>>>>> >>>>>> total_length already adds +1 for the nul character so the == case is >>>>>> fine AFAICS. >>>>>> >>>>>> strncpy wont nul-terminate if the string exceeds the buffer size. But >> we >>>>>> have already established that total_length <= sizeof(base_path), and >>>>>> total_path includes space for a bunch of stuff other than >> HeapDumpPath, >>>>>> so the strncpy of HeapDumpPath has to copy the nul character. >>>>> Ok, removed. >>>>> >>>>>>> src/share/vm/services/memoryService.cpp >>>>>> >>>>>> Ok. >>>>>> >>>>>>> src/share/vm/utilities/xmlstream.cpp >>>>>> >>>>>> Ok - I'm more concerned about the "magic" 10 in that piece of code. >>>>> I assume the 10 is the space needed for the "_done" plus some waste ... >>>>> >>>>> I'll do another run of the scan. That takes a day. I'll post a new >>>>> webrev >>>> after >>>>> that. >>>> >>>> Thanks, >>>> David >>>> >>>>> Thank again for this thorough review, >>>>> Goetz >>>>> >>>>> >>>>> >>>>> >>>>>>> Some of these, as the issue in codeBuffer.cpp, are actually handled >>>> correctly. >>>>>>> Nevertheless this is not that obvious so that somebody changing the >>>> code >>>>>>> Could oversee he has to add the initialization. >>>>>> >>>>>> Not an argument I buy en-masse as it leads to a lot of redundancy >>>>>> through the code paths. Plus these tools that are being run should >> show >>>>>> if a code changes requires initialization that is not present. >>>>>> >>>>>> Thanks, >>>>>> David >>>>>> >>>>>>> Some of these fixes are part of SAP JVM for a long time. This change >> has >>>>>>> been tested with our nightly build of openJDK. >>>>>>> >>>>>>> Best regards, >>>>>>> Goetz,. >>>>>>> -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR: JDK-8142336: Convert the SA agent build to modular build-infra makefiles

2015-11-11 Thread Dmitry Samersoff
142336 >>>> Webrev: http://cr.openjdk.java.net/~erikj/8142336/webrev.01/ >>> >>> A few remarks: >>> >>> * Could you please document the new DISABLED_WARNINGS_CXX and >>> DISABLED_WARNINGS_C in the function header? >>> >>> * I believe the use of {} here was to signify a set. When only jsig >>> remains, it just looks strange: >>> -# SYMFLAG is used by {jsig,saproc}.make >>> +# SYMFLAG is used by {jsig}.make >>> >>> * The logic of setting up "--hash-style=both" is already done in >>> configure for LDFLAGS_JDKLIB, so you do not need to repeat it, if you >>> include the LDFLAGS_JDKLIB variable. >> >> Also, SA_WINDOWS_LDFLAGS is read but never defined. >> >> /Magnus > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR(M): 8141529: Fix handling of _JAVA_SR_SIGNUM

2015-11-12 Thread Dmitry Samersoff
m also wondering about documenting where we are determining the > maximum from? Is it simply _NSIG on some/all distributions? And I see > _NSIG is supposed to be the biggest signal number + one. Also linux > defines NSIG = _NSIG so which should we be using? > > Thanks, > David > >> Best regards, >>Goetz. >> -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR(M): 8141529: Fix handling of _JAVA_SR_SIGNUM

2015-11-12 Thread Dmitry Samersoff
os_linux, too. > So it's really more consistent. > > Best regards, > Goetz > >> -----Original Message- >> From: Dmitry Samersoff [mailto:dmitry.samers...@oracle.com] >> Sent: Donnerstag, 12. November 2015 09:22 >> To: David Holmes; Lindenmaier, Goetz;

Re: RFR(M): 8141529: Fix handling of _JAVA_SR_SIGNUM

2015-11-16 Thread Dmitry Samersoff
aris too, so that we have NSIG >>> defined on all Posix platforms. >> >> Solaris doesn't have any of this SR_signum related code. A more general >> cleanup of signal related code would potentially involve a lot of >> cleanup. >> >> D

Re: RFR(M): 8141529: Fix handling of _JAVA_SR_SIGNUM

2015-11-16 Thread Dmitry Samersoff
> > > > Here is the new webrev: > > http://cr.openjdk.java.net/~goetz/webrevs/8141529-NSIG/webrev.02/ > > > > Best regards, > > Goetz. > > > > > > *From:*Thomas Stüfe [mailto:thomas.stu...@gmail.com] > *Sent:* Freitag, 13. Novemb

Re: RFR(M): 8141529: Fix handling of _JAVA_SR_SIGNUM

2015-11-16 Thread Dmitry Samersoff
I you don't object I'll leave the comment as is. I'm OK with it. Leave it as is. -Dmitry > > Best regards, > Goetz. > > -----Original Message- > From: Dmitry Samersoff [mailto:dmitry.samers...@oracle.com] > Sent: Montag, 16. November 2015 09:23 >

  1   2   3   4   5   6   7   8   9   >