From serguei.spitsyn at oracle.com Tue Oct 1 00:34:31 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Tue, 01 Oct 2013 00:34:31 -0700
Subject: RFR (S): JDK-8024423: JVMTI: GetLoadedClasses doesn't enumerate
anonymous classes
In-Reply-To: <5249643F.3030209@oracle.com>
References: <5249643F.3030209@oracle.com>
Message-ID: <524A7B07.1000300@oracle.com>
Hi Frederik,
Thank you for jumping on this issue!
*src/share/vm/oops/instanceKlass.cpp*
2333 int src_index = 0;
2334 while (src_index < src_length) {
2335 dest[dest_index++] = src[src_index++];
2336 }
2337
2338 // If we have a hash, append it
2339 if(hash_len > 0) {
2340 int hash_index = 0;
2341 while (hash_index < hash_len) {
2342 dest[dest_index++] = hash_buf[hash_index++];
2343 }
2344 }
The above can be simplified a little bit:
// Add the actual class name
for (int src_index = 0; src_index < src_length; ) {
dest[dest_index++] = src[src_index++];
}
// If we have a hash, append it
for (int hash_index = 0; hash_index < hash_len; ) {
dest[dest_index++] = hash_buf[hash_index++];
}
The conditionif(hash_len > 0) is covered by the loop itself.
Style-related comments:
-wrong indent at the lines: 2316-2319
- need a space after the 'if' at the lines: 2315, 2339
*src/share/vm/prims/jvmtiGetLoadedClasses.cpp
*The copyright comment must be up-to-date.
The comments at the lines 35-38, 258-260 are not valid anymore.
> In this review I still have an outstanding unanswered question about
> the need to synchronize the access to the:
> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::increment);
> and
> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::add);
This kind of walking is usually done at safepoint in a VM_Operation.
You will find many examples in the jvmtiEnv.cpp, for instance, VM_GetAllStackTraces.
The suggestion from Mikael is good too.
Should this fix include the getClassLoaderClasses() as well?
I'm still trying to realize the impact and consistency of this fix. :(
What tests are you going to run for verification?
Thanks,
Serguei
*
*On 9/30/13 4:45 AM, Fredrik Arvidsson wrote:
> Hi
>
> Please help me to review the changes below:
>
> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024423
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.00/
>
>
> In this review I still have an outstanding unanswered question about
> the need to synchronize the access to the:
> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::increment);
> and
> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::add);
>
> calls in
> http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.00/src/share/vm/prims/jvmtiGetLoadedClasses.cpp.udiff.html
>
> Please give me advise on this.
>
> There will be a review soon regarding re-enabling the tests that failed because of the above bug, see:
> https://bugs.openjdk.java.net/browse/JDK-8025576
>
> Cheers
> /Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131001/4e739635/attachment.html
From erik.joelsson at oracle.com Tue Oct 1 01:42:55 2013
From: erik.joelsson at oracle.com (Erik Joelsson)
Date: Tue, 01 Oct 2013 10:42:55 +0200
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <523D144E.4000002@oracle.com>
References: <523D144E.4000002@oracle.com>
Message-ID: <524A8B0F.4070704@oracle.com>
I have looked at the build changes in the root and jdk repos and they
look OK.
/Erik
On 2013-09-21 05:36, Daniel D. Daugherty wrote:
> Greetings,
>
> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
> and ready for review:
>
> 7165611 implement Full Debug Symbols on MacOS X hotspot
> https://bugs.openjdk.java.net/browse/JDK-7165611
>
> Here is the JDK8/HSX-25 webrev URL:
>
> OpenJDK:
> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
> Internal:
> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>
> This webrev includes changes for the follow repos:
>
> jdk8
> jdk8/hotspot
> jdk8/jdk
> jdk8/jdk/make/closed
>
> Once these changes are approved, I'm planning to push them to
> RT_Baseline. From there, they can follow the normal path to
> Main_Baseline and eventually JDK8.
>
> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
> the other repos are necessary to support importing the .diz files from
> the MacOS X 'hotspot' build into the forest build. I also fixed a few
> FDS related errors in the magic incantations for the new build. This is
> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
> from Solaris. In other words, this is Frankenstein's monster...
>
> Thanks to Staffan Larsen for providing an initial set of changes
> which I morphed into what you see here.
>
> Testing:
> - JPRT HSX build and test on all platforms; verification of .diz
> files in the MacOS X JPRT bundles
> - JPRT JDK8 forest build and test on all platforms; verification of
> .diz files in the MacOS X JPRT bundles
> Note: In previous FDS changesets, I also did a standalone 'jdk'
> repo build and test, but that no longer seems to work.
>
> As always, comments, questions and suggestions are welcome.
>
> Dan
From jaroslav.bachorik at oracle.com Tue Oct 1 02:01:00 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Tue, 01 Oct 2013 11:01:00 +0200
Subject: RFR 6399961: The management agent doesn't support SSL keystore setup
when loaded dynamically
Message-ID: <524A8F4C.2000908@oracle.com>
Hi,
Currently it is not possible to configure SSL parameters when loading
the management agent. The fix is to forward any javax.net.ssl.*
properties to the target JVM. The javax.net.ssl.* properties provided in
the agent configuration should never replace any javax.net.ssl.*
properties defined by the target JVM.
The issue: https://bugs.openjdk.java.net/browse/JDK-6399961
Webrev: http://cr.openjdk.java.net/~jbachorik/6399961/webrev.00
Thanks,
-JB-
From paul.sandoz at oracle.com Tue Oct 1 03:36:47 2013
From: paul.sandoz at oracle.com (paul.sandoz at oracle.com)
Date: Tue, 01 Oct 2013 10:36:47 +0000
Subject: hg: jdk8/tl/jdk: 8024408: Specifications for
Collection/List/Set/SortedSet.spliterator() need to document if
all the (subclass) instances are required to return SIZED spliterators
Message-ID: <20131001103710.3BE6762C36@hg.openjdk.java.net>
Changeset: f8b3ab514564
Author: psandoz
Date: 2013-10-01 12:19 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f8b3ab514564
8024408: Specifications for Collection/List/Set/SortedSet.spliterator() need to document if all the (subclass) instances are required to return SIZED spliterators
Reviewed-by: alanb
! src/share/classes/java/util/Collection.java
! src/share/classes/java/util/Set.java
! src/share/classes/java/util/SortedSet.java
! test/java/util/Spliterator/SpliteratorCharacteristics.java
From dmitry.samersoff at oracle.com Tue Oct 1 04:51:46 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Tue, 01 Oct 2013 15:51:46 +0400
Subject: jmx-dev RFR 6399961: The management agent doesn't support SSL
keystore setup when loaded dynamically
In-Reply-To: <524A8F4C.2000908@oracle.com>
References: <524A8F4C.2000908@oracle.com>
Message-ID: <524AB752.2030900@oracle.com>
Jaroslav,
Agent.java:
99:
As far as you intorduce SSL_PREFIX constant, please add one for
"com.sun.management."
259:
It's better to keep all property manipulations in agentmain and
startRemoteManagementAgent - different methods to start Agent might have
separate property set and scoping rules.
Do you need to modify jcmd as well?
-Dmitry
On 2013-10-01 13:01, Jaroslav Bachorik wrote:
> Hi,
>
> Currently it is not possible to configure SSL parameters when loading
> the management agent. The fix is to forward any javax.net.ssl.*
> properties to the target JVM. The javax.net.ssl.* properties provided in
> the agent configuration should never replace any javax.net.ssl.*
> properties defined by the target JVM.
>
> The issue: https://bugs.openjdk.java.net/browse/JDK-6399961
> Webrev: http://cr.openjdk.java.net/~jbachorik/6399961/webrev.00
>
> 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.
From dmitry.samersoff at oracle.com Tue Oct 1 04:59:00 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Tue, 01 Oct 2013 15:59:00 +0400
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <52498025.3040402@oracle.com>
References: <523D144E.4000002@oracle.com>
<52498025.3040402@oracle.com>
Message-ID: <524AB904.4040406@oracle.com>
Dan,
Sorry, for later answer - was busy trying to run UTE on Mac. I can test
non-darwin logic if you give me a link to workspace.
-Dmitry
On 2013-09-30 17:44, Daniel D. Daugherty wrote:
> On 9/30/13 7:13 AM, Staffan Larsen wrote:
>> First: thanks for doing this work - it will make debugging on os x so
>> much easier!
>
> That's the plan...
>
>
>> I'm not done with the review, but here are a couple of comments so far.
>>
>> I tried running with:
>>
>> $ sh ./configure --with-debug-level=slowdebug --disable-zip-debug-info
>> $ make
>>
>> which results in:
>>
>> ## Starting hotspot
>> ...
>> make[5]: *** No rule to make target
>> `/Users/staffan/mercurial/hotspot-rt-jdk/build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/amd64/libjsig.dylib.dSYM',
>> needed by `generic_export'. Stop.
>> make[4]: *** [export_debug] Error 2
>> make[3]: *** [all_debug_universal] Error 2
>> make[2]: *** [universal_debug] Error 2
>> ...
>
> I'm presuming that you're trying with a forest that includes
> closed repos. If so, then you'll need the jdk/make/closed change
> in order for the build to work.
>
>
>> Another comment: There are some makefile logic for BSD, non-darwin
>> platforms. Have you had a chance to test this logic?
>> (hotspot/make/bsd/makefiles/vm.make)
>
> No, I don't have access to a BSD (non-darwin) platform. However, I'll
> be pinging Dmitri Samersoff to ask a few questions...
>
>
>> Nit: hotspot/make/bsd/makefiles/vm.make: L345, L356: wrong indentation.
>
> These are make cmd lines:
>
> 344 else
> 345 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DEBUGINFO)
> 346 $(QUIETLY) $(OBJCOPY)
> --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
> 347 ifeq ($(STRIP_POLICY),all_strip)
>
> so they have to be indented by a tab. Very ugly, but necessary.
>
> Dan
>
>
>>
>>
>> /Staffan
>>
>>
>>
>> On 21 sep 2013, at 05:36, Daniel D. Daugherty
>> wrote:
>>
>>> Greetings,
>>>
>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>>> and ready for review:
>>>
>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>
>>> Here is the JDK8/HSX-25 webrev URL:
>>>
>>> OpenJDK:
>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>> Internal:
>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>
>>> This webrev includes changes for the follow repos:
>>>
>>> jdk8
>>> jdk8/hotspot
>>> jdk8/jdk
>>> jdk8/jdk/make/closed
>>>
>>> Once these changes are approved, I'm planning to push them to
>>> RT_Baseline. From there, they can follow the normal path to
>>> Main_Baseline and eventually JDK8.
>>>
>>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>>> the other repos are necessary to support importing the .diz files from
>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>> FDS related errors in the magic incantations for the new build. This is
>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>> from Solaris. In other words, this is Frankenstein's monster...
>>>
>>> Thanks to Staffan Larsen for providing an initial set of changes
>>> which I morphed into what you see here.
>>>
>>> Testing:
>>> - JPRT HSX build and test on all platforms; verification of .diz
>>> files in the MacOS X JPRT bundles
>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>> .diz files in the MacOS X JPRT bundles
>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>> repo build and test, but that no longer seems to work.
>>>
>>> As always, comments, questions and suggestions are welcome.
>>>
>>> Dan
>
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From sundararajan.athijegannathan at oracle.com Tue Oct 1 05:14:30 2013
From: sundararajan.athijegannathan at oracle.com (sundararajan.athijegannathan at oracle.com)
Date: Tue, 01 Oct 2013 12:14:30 +0000
Subject: hg: jdk8/tl/nashorn: 8 new changesets
Message-ID: <20131001121439.29E8762C3A@hg.openjdk.java.net>
Changeset: 2016a6b9e1f3
Author: hannesw
Date: 2013-09-27 16:59 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/2016a6b9e1f3
8025515: Performance issues with Source.getLine()
Reviewed-by: sundar, lagergren
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! src/jdk/nashorn/internal/ir/LexicalContext.java
! src/jdk/nashorn/internal/parser/Parser.java
! src/jdk/nashorn/internal/runtime/RecompilableScriptFunctionData.java
! src/jdk/nashorn/internal/runtime/Source.java
+ test/script/basic/JDK-8025515.js
Changeset: 1809c9e97c71
Author: hannesw
Date: 2013-09-27 17:00 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/1809c9e97c71
8025520: Array.prototype.slice should only copy defined elements
Reviewed-by: sundar, lagergren
! src/jdk/nashorn/internal/objects/NativeArray.java
+ test/script/basic/JDK-8025520.js
Changeset: efc40aacaee4
Author: hannesw
Date: 2013-09-30 15:54 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/efc40aacaee4
8025589: Array.prototype.shift should only copy defined elements in generic mode
Reviewed-by: sundar, attila
! src/jdk/nashorn/internal/objects/NativeArray.java
+ test/script/basic/JDK-8025589.js
Changeset: ad5f9ce2a95b
Author: jlaskey
Date: 2013-09-30 10:24 -0300
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/ad5f9ce2a95b
Merge
Changeset: 787e36fdf69a
Author: jlaskey
Date: 2013-09-30 12:06 -0300
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/787e36fdf69a
Merge
Changeset: 7272ec90f2c6
Author: sundar
Date: 2013-09-30 21:33 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/7272ec90f2c6
8025629: load function should support a way to load scripts from classpath
Reviewed-by: lagergren, hannesw, attila
! make/build.xml
! src/jdk/nashorn/internal/runtime/Context.java
+ test/script/trusted/JDK-8025629.js
+ test/src/jdk/nashorn/internal/runtime/resources/load_test.js
Changeset: f5aefbe76cec
Author: jlaskey
Date: 2013-09-30 18:09 -0300
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/f5aefbe76cec
8025689: fx:base.js classes not loading
Reviewed-by: sundar
Contributed-by: james.laskey at oracle.com
! src/jdk/nashorn/internal/runtime/resources/fx/base.js
Changeset: cd7fb58043cb
Author: sundar
Date: 2013-10-01 14:38 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/cd7fb58043cb
8025488: Error.captureStackTrace should not format error stack
Reviewed-by: hannesw, attila
! src/jdk/nashorn/internal/objects/NativeError.java
+ test/script/basic/JDK-8025488.js
+ test/script/basic/JDK-8025488.js.EXPECTED
From jaroslav.bachorik at oracle.com Tue Oct 1 06:03:35 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Tue, 01 Oct 2013 15:03:35 +0200
Subject: jmx-dev RFR 6399961: The management agent doesn't support SSL
keystore setup when loaded dynamically
In-Reply-To: <524AB752.2030900@oracle.com>
References: <524A8F4C.2000908@oracle.com> <524AB752.2030900@oracle.com>
Message-ID: <524AC827.9000301@oracle.com>
Ok, thanks everyone for taking time reviewing this. Dmitry's comment
about jcmd got me looking at the properties available when using the
jcmd to start the management agent.
It turns out that "com.sun.management.jmxremote.ssl.config.file" allows
exactly the thing this issue talks about.
So, please, disregard this change completely.
Cheers,
-JB-
On 1.10.2013 13:51, Dmitry Samersoff wrote:
> Jaroslav,
>
> Agent.java:
>
> 99:
>
> As far as you intorduce SSL_PREFIX constant, please add one for
> "com.sun.management."
>
> 259:
>
> It's better to keep all property manipulations in agentmain and
> startRemoteManagementAgent - different methods to start Agent might have
> separate property set and scoping rules.
>
> Do you need to modify jcmd as well?
>
> -Dmitry
>
>
> On 2013-10-01 13:01, Jaroslav Bachorik wrote:
>> Hi,
>>
>> Currently it is not possible to configure SSL parameters when loading
>> the management agent. The fix is to forward any javax.net.ssl.*
>> properties to the target JVM. The javax.net.ssl.* properties provided in
>> the agent configuration should never replace any javax.net.ssl.*
>> properties defined by the target JVM.
>>
>> The issue: https://bugs.openjdk.java.net/browse/JDK-6399961
>> Webrev: http://cr.openjdk.java.net/~jbachorik/6399961/webrev.00
>>
>> Thanks,
>>
>> -JB-
>
>
From alexander.zuev at oracle.com Tue Oct 1 06:04:14 2013
From: alexander.zuev at oracle.com (alexander.zuev at oracle.com)
Date: Tue, 01 Oct 2013 13:04:14 +0000
Subject: hg: jdk8/tl/langtools: 7118749: NPE in CreateSymbols caused by bad
diagnostic
Message-ID: <20131001130418.B759762C3C@hg.openjdk.java.net>
Changeset: 1a3e8347f3dd
Author: kizune
Date: 2013-10-01 17:03 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/1a3e8347f3dd
7118749: NPE in CreateSymbols caused by bad diagnostic
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/sym/CreateSymbols.java
From david.holmes at oracle.com Tue Oct 1 06:15:07 2013
From: david.holmes at oracle.com (David Holmes)
Date: Tue, 01 Oct 2013 23:15:07 +1000
Subject: JDK-6989981: jstack causes "fatal error: ExceptionMark destructor
expects no pending exceptions"
In-Reply-To: <3FE7CB8E-39F4-4915-B82E-AC2F88715189@oracle.com>
References: <523C264E.7060704@ysfactory.dip.jp>
<97D9FB54-FFF1-4337-942A-E7FE2196A354@oracle.com>
<523C534C.7060908@ysfactory.dip.jp>
<9367FE2B-C709-4273-BEAE-745841846560@oracle.com>
<523C5A8A.8060000@ysfactory.dip.jp>
<523C606B.5060204@ysfactory.dip.jp>
<952F096A-69D2-4E7C-B979-91E95AFE37F8@oracle.com>
<523D786C.5090605@ysfactory.dip.jp> <523EAF7C.3050000@oracle.com>
<3FE7CB8E-39F4-4915-B82E-AC2F88715189@oracle.com>
Message-ID: <524ACADB.3060600@oracle.com>
On 23/09/2013 2:41 AM, Staffan Larsen wrote:
> Dmitry: Thanks for the review.
>
> Yasumasa: Thanks for your contribution! I have pushed the changes into HS25 and will push them to 7u60 as well.
I've been on vacation so could not respond in time. I am concerned about
this fix. Other than printing a message on the console it pretends that
the init has succeeded! That seems wrong to me. What are the
consequences of doing this?
David
-----
> /Staffan
>
> On 22 sep 2013, at 01:51, Dmitry Samersoff wrote:
>
>> Yasumasa,
>>
>> Looks good for me.
>>
>> -Dmitry
>>
>> On 2013-09-21 14:43, Yasumasa Suenaga wrote:
>>> Hi Staffan,
>>>
>>>> Can you update your patch, please?
>>>
>>> Of course!
>>> I've attached new patch in this email.
>>>
>>> Could you check this?
>>>
>>>
>>> Thanks,
>>>
>>> Yasumasa
>>>
>>> On 2013/09/21 15:36, Staffan Larsen wrote:
>>>>
>>>>
>>>>> On 20 sep 2013, at 16:49, Yasumasa Suenaga
>>>>> wrote:
>>>>>
>>>>>> On 2013/09/20 23:34, Staffan Larsen wrote:
>>>>>>
>>>>>>> On 20 sep 2013, at 16:24, Yasumasa Suenaga
>>>>>>> wrote:
>>>>>>>
>>>>>>> I thought your code too. However...
>>>>>>>
>>>>>>> - These code is different from other code (rule?).
>>>>>>
>>>>>> Well, you are introducing a new macro that is also different from
>>>>>> other code, so I'm not sure how valid that argument is.
>>>>>
>>>>> My macro is modified from "CATCH" in exceptions.hpp:
>>>>>
>>>>> #define CATCH \
>>>>> THREAD); if (HAS_PENDING_EXCEPTION) { \
>>>>> oop ex = PENDING_EXCEPTION; \
>>>>> CLEAR_PENDING_EXCEPTION; \
>>>>> ex->print(); \
>>>>> ShouldNotReachHere(); \
>>>>> } (void)(0
>>>>>
>>>>> So I think that my macro is not big difference fromother code.
>>>>>
>>>>>
>>>>>>> - Similar crash cases exist. e.g. 6425580 and 7142442.
>>>>>>> These crashes are different from 6989981. However, I guess that
>>>>>>> crashed
>>>>>>> thread had pending exception and we need to fix with similar patch.
>>>>>>>
>>>>>>> So I think that new macro is useful later.
>>>>>>
>>>>>> Yes, similar problems may come up in other cases as well.
>>>>>>
>>>>>> Generally, I don't think it's a good idea to have logging calls
>>>>>> hidden away in general macros. What we really should do here is
>>>>>> print some context around the stack trace as well. Something like:
>>>>>>
>>>>>> Initializing the attach listener failed with the following
>>>>>> exception in AttachListener::init when initializing the thread_oop:
>>>>>>
>>>>>> This would be possible with the code I suggested, but very hard in a
>>>>>> general macro.
>>>>>
>>>>> Agree.
>>>>> Should we write code as following?
>>>>>
>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>> tty->print_cr("Exception in VM (AttachListener::init) : ");
>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>> CLEAR_PENDING_EXCEPTION;
>>>>> return;
>>>>> }
>>>>>
>>>>> I like this way :-)
>>>>
>>>> Yes, this is what I'd like to see! Can you update your patch, please?
>>>>
>>>> Thanks,
>>>> /Staffan
>>>>
>>>>
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Yasumasa
>>>>>
>>>>>
>>>>>> Thanks,
>>>>>> /Staffan
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Yasumasa
>>>>>>>
>>>>>>>> On 2013/09/20 23:05, Staffan Larsen wrote:
>>>>>>>> I see. CHECK_AND_CLEAR_AND_PRINT? Just kidding... :-)
>>>>>>>>
>>>>>>>> Maybe in this case we should not have this as a macro, but
>>>>>>>> actually add the code after the two calls to call_special?
>>>>>>>> Something like the code below. I personally think this is more
>>>>>>>> readable than obscure macros that I have to go look up to
>>>>>>>> understand what they do.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> /Staffan
>>>>>>>>
>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>> klass,
>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>
>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>> thread_group,
>>>>>>>> string,
>>>>>>>> THREAD);
>>>>>>>>
>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>> return;
>>>>>>>> }
>>>>>>>>
>>>>>>>> KlassHandle group(THREAD, SystemDictionary::ThreadGroup_klass());
>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>> thread_group,
>>>>>>>> group,
>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>> thread_oop, // ARG 1
>>>>>>>> THREAD);
>>>>>>>>
>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>> return;
>>>>>>>> }
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> On 20 sep 2013, at 15:53, Yasumasa
>>>>>>>>> Suenaga wrote:
>>>>>>>>>
>>>>>>>>> Hi Staffan,
>>>>>>>>>
>>>>>>>>> Thank you for your sponsoring!
>>>>>>>>>
>>>>>>>>> "CHECK_AND_CLEAR" is already defined in exceptions.hpp:
>>>>>>>>> ******************
>>>>>>>>> #define CHECK_AND_CLEAR THREAD); if
>>>>>>>>> (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return;
>>>>>>>>> } (void)(0
>>>>>>>>> ******************
>>>>>>>>>
>>>>>>>>> I think that user wants why serviceability tools are failed.
>>>>>>>>> So I defined "CHECK_AND_CLEAR" + java_lang_Throwable::print() as
>>>>>>>>> "CATCH_AND_RETURN" .
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I agree rename this macro.
>>>>>>>>> Do you have any idea? I don't have a good name :-)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> Yasumasa
>>>>>>>>>
>>>>>>>>>> On 2013/09/20 20:10, Staffan Larsen wrote:
>>>>>>>>>> Yasuma,
>>>>>>>>>>
>>>>>>>>>> Thanks for finding and fixing this! I have re-opened the bug.
>>>>>>>>>> Your patch looks good to me, but perhaps CATCH_AND_RETURN should
>>>>>>>>>> be renamed CHECK_AND_CLEAR?
>>>>>>>>>>
>>>>>>>>>> I can sponsor the fix.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> /Staffan
>>>>>>>>>>
>>>>>>>>>>> On 20 sep 2013, at 12:41, Yasumasa
>>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I encountered this bug:
>>>>>>>>>>> JDK-6989981: jstack causes "fatal error: ExceptionMark
>>>>>>>>>>> destructor expects no pending exceptions"
>>>>>>>>>>>
>>>>>>>>>>> I read hs_err and attachListener.cpp, Java heap usage is very
>>>>>>>>>>> high and
>>>>>>>>>>> it could be OutOfMemoryError in AttachListener::init() .
>>>>>>>>>>>
>>>>>>>>>>> If JavaCalls::call_special() in AttachListener::init() fail
>>>>>>>>>>> which is
>>>>>>>>>>> caused by OOME, d'tor of EXCEPTION_MARK (~ExceptionMark) will
>>>>>>>>>>> generate
>>>>>>>>>>> internal error.
>>>>>>>>>>>
>>>>>>>>>>> So I make a patch for avoiding crash and attached in this email
>>>>>>>>>>> (6989981.patch) .
>>>>>>>>>>> I'd like to re-open this bug and contribute my patch.
>>>>>>>>>>> Could you help me?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --- DETAILS ---
>>>>>>>>>>> CHECK macro is used in JavaCalls::call_special() .
>>>>>>>>>>>
>>>>>>>>>>> ******************
>>>>>>>>>>> void AttachListener::init() {
>>>>>>>>>>> EXCEPTION_MARK;
>>>>>>>>>>>
>>>>>>>>>>> :
>>>>>>>>>>>
>>>>>>>>>>> // Initialize thread_oop to put it into the system threadGroup
>>>>>>>>>>> Handle thread_group (THREAD, Universe::system_thread_group());
>>>>>>>>>>> JavaValue result(T_VOID);
>>>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>>>> klass,
>>>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>>>
>>>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>>>> thread_group,
>>>>>>>>>>> string,
>>>>>>>>>>> CHECK);
>>>>>>>>>>>
>>>>>>>>>>> KlassHandle group(THREAD,
>>>>>>>>>>> SystemDictionary::ThreadGroup_klass());
>>>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>>>> thread_group,
>>>>>>>>>>> group,
>>>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>>>> CHECK);
>>>>>>>>>>> ******************
>>>>>>>>>>>
>>>>>>>>>>> CHECK macro does not clear pending exception of current thread.
>>>>>>>>>>> So call_special() fails with runtime exception, d'tor of
>>>>>>>>>>> ExceptionMark
>>>>>>>>>>> generates fatal error.
>>>>>>>>>>>
>>>>>>>>>>> ******************
>>>>>>>>>>> ExceptionMark::~ExceptionMark() {
>>>>>>>>>>> if (_thread->has_pending_exception()) {
>>>>>>>>>>> Handle exception(_thread, _thread->pending_exception());
>>>>>>>>>>> _thread->clear_pending_exception(); // Needed to avoid
>>>>>>>>>>> infinite recursion
>>>>>>>>>>> if (is_init_completed()) {
>>>>>>>>>>> exception->print();
>>>>>>>>>>> fatal("ExceptionMark destructor expects no pending
>>>>>>>>>>> exceptions");
>>>>>>>>>>> } else {
>>>>>>>>>>> vm_exit_during_initialization(exception);
>>>>>>>>>>> }
>>>>>>>>>>> }
>>>>>>>>>>> }
>>>>>>>>>>> ******************
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --- HOW TO REPRODUCE ---
>>>>>>>>>>> I also crate testcase of this issue (testcase.tar.gz) . This
>>>>>>>>>>> testcase contains
>>>>>>>>>>> two modules.
>>>>>>>>>>>
>>>>>>>>>>> - jvmti: JVMTI agent for this issue. This agent traps SIGQUIT and
>>>>>>>>>>> calls original (in HotSpot) SIGQUIT handler.
>>>>>>>>>>> This signal handler is invoked, MethodEntry event
>>>>>>>>>>> callback is
>>>>>>>>>>> enabled. MethodEntry generates OutOfMemoryError.
>>>>>>>>>>>
>>>>>>>>>>> - java : Simple long sleep program.
>>>>>>>>>>>
>>>>>>>>>>> I can run this testcase in Fedora18 x86_64. See below.
>>>>>>>>>>>
>>>>>>>>>>> -------
>>>>>>>>>>> $ javac java/LongSleep.java
>>>>>>>>>>> $ make -C jvmti
>>>>>>>>>>> make: Entering directory
>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>> gcc -I/usr/lib/jvm/java-openjdk/include
>>>>>>>>>>> -I/usr/lib/jvm/java-openjdk/include/linux -fPIC -c oome.c
>>>>>>>>>>> gcc -shared -o liboome.so oome.o
>>>>>>>>>>> make: Leaving directory
>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>> $ export JAVA_HOME=
>>>>>>>>>>> $ ./test.sh
>>>>>>>>>>> -------
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Best regards,
>>>>>>>>>>>
>>>>>>>>>>> Yasumasa
>>>>>>>>>>>
>>>>>>>>>>> <6989981.patch>
>>>>>
>>>>
>>>
>>
>>
>> --
>> Dmitry Samersoff
>> Oracle Java development team, Saint Petersburg, Russia
>> * I would love to change the world, but they won't give me the source code.
>
From dmitry.degrave at oracle.com Tue Oct 1 06:46:40 2013
From: dmitry.degrave at oracle.com (dmitry.degrave at oracle.com)
Date: Tue, 01 Oct 2013 13:46:40 +0000
Subject: hg: jdk8/tl/jaxp: 8024707: TransformerException : item() return null
with node list of length != 1
Message-ID: <20131001134642.F253262C3E@hg.openjdk.java.net>
Changeset: 84a2b2ee6fc6
Author: aefimov
Date: 2013-10-01 17:14 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/84a2b2ee6fc6
8024707: TransformerException : item() return null with node list of length != 1
Reviewed-by: joehw, lancea
! src/com/sun/org/apache/xml/internal/dtm/ref/DTMAxisIterNodeList.java
From dmitry.degrave at oracle.com Tue Oct 1 06:47:11 2013
From: dmitry.degrave at oracle.com (dmitry.degrave at oracle.com)
Date: Tue, 01 Oct 2013 13:47:11 +0000
Subject: hg: jdk8/tl/jdk: 8024707: TransformerException : item() return null
with node list of length != 1
Message-ID: <20131001134724.E31CE62C3F@hg.openjdk.java.net>
Changeset: bf52ea6bd9eb
Author: aefimov
Date: 2013-10-01 17:15 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/bf52ea6bd9eb
8024707: TransformerException : item() return null with node list of length != 1
Reviewed-by: joehw, lancea
+ test/javax/xml/jaxp/parsers/8024707/TestFunc.java
+ test/javax/xml/jaxp/parsers/8024707/XSLT.java
+ test/javax/xml/jaxp/parsers/8024707/in.xml
+ test/javax/xml/jaxp/parsers/8024707/test.xsl
From daniel.daugherty at oracle.com Tue Oct 1 06:48:10 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Tue, 01 Oct 2013 07:48:10 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <524A8B0F.4070704@oracle.com>
References: <523D144E.4000002@oracle.com> <524A8B0F.4070704@oracle.com>
Message-ID: <524AD29A.3030806@oracle.com>
Thanks (again). You previously posted a review for the OpenJDK side
on 2013.09.23... :-)
Dan
On 10/1/13 2:42 AM, Erik Joelsson wrote:
> I have looked at the build changes in the root and jdk repos and they
> look OK.
>
> /Erik
>
> On 2013-09-21 05:36, Daniel D. Daugherty wrote:
>> Greetings,
>>
>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>> and ready for review:
>>
>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>
>> Here is the JDK8/HSX-25 webrev URL:
>>
>> OpenJDK:
>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>> Internal:
>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>
>> This webrev includes changes for the follow repos:
>>
>> jdk8
>> jdk8/hotspot
>> jdk8/jdk
>> jdk8/jdk/make/closed
>>
>> Once these changes are approved, I'm planning to push them to
>> RT_Baseline. From there, they can follow the normal path to
>> Main_Baseline and eventually JDK8.
>>
>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>> the other repos are necessary to support importing the .diz files from
>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>> FDS related errors in the magic incantations for the new build. This is
>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>> from Solaris. In other words, this is Frankenstein's monster...
>>
>> Thanks to Staffan Larsen for providing an initial set of changes
>> which I morphed into what you see here.
>>
>> Testing:
>> - JPRT HSX build and test on all platforms; verification of .diz
>> files in the MacOS X JPRT bundles
>> - JPRT JDK8 forest build and test on all platforms; verification of
>> .diz files in the MacOS X JPRT bundles
>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>> repo build and test, but that no longer seems to work.
>>
>> As always, comments, questions and suggestions are welcome.
>>
>> Dan
>
From yasu at ysfactory.dip.jp Tue Oct 1 07:11:27 2013
From: yasu at ysfactory.dip.jp (Yasumasa Suenaga)
Date: Tue, 01 Oct 2013 23:11:27 +0900
Subject: JDK-6989981: jstack causes "fatal error: ExceptionMark destructor
expects no pending exceptions"
In-Reply-To: <524ACADB.3060600@oracle.com>
References: <523C264E.7060704@ysfactory.dip.jp>
<97D9FB54-FFF1-4337-942A-E7FE2196A354@oracle.com>
<523C534C.7060908@ysfactory.dip.jp>
<9367FE2B-C709-4273-BEAE-745841846560@oracle.com>
<523C5A8A.8060000@ysfactory.dip.jp>
<523C606B.5060204@ysfactory.dip.jp>
<952F096A-69D2-4E7C-B979-91E95AFE37F8@oracle.com>
<523D786C.5090605@ysfactory.dip.jp> <523EAF7C.3050000@oracle.com>
<3FE7CB8E-39F4-4915-B82E-AC2F88715189@oracle.com>
<524ACADB.3060600@oracle.com>
Message-ID: <524AD80F.2020308@ysfactory.dip.jp>
Hi David,
> Other than printing a message on the console it pretends that the init has succeeded!
No.
signal_thread_entry() @ hotspot/src/share/vm/runtime/os.cpp
--------
250 case SIGBREAK: {
251 // Check if the signal is a trigger to start the Attach Listener - in that
252 // case don't print stack traces.
253 if (!DisableAttachMechanism && AttachListener::is_init_trigger()) {
254 continue;
255 }
--------
AttachListener::init() is called through is_init_trigger() (line 505).
AttachListener::is_init_trigger() @ hotspot/src/share/vm/services/attachListener.cpp
--------
501 if (ret == 0) {
502 // simple check to avoid starting the attach mechanism when
503 // a bogus user creates the file
504 if (st.st_uid == geteuid()) {
505 init();
506 return true;
507 }
508 }
--------
If exception occurs in AttachListner::init(), AttachListner::is_init_trigger() returns "true" .
Process of SIGBREAK handler will be stopped (caused by continue statement) and signal_thread_entry()
will return top of loop.
In my patch, pending exception which occurs in AttachListener initialization is cleared.
Thus Signal Dispatcher has no damage.
> What are the consequences of doing this?
If AttachListener::init() cannot work due to exception, it cannot create UNIX domain socket
to accept from java tools (e.g. jstack) .
Target VM which tried to invoke AttachListner continues to run.
(However, runtime exception such as OOME occurs, target VM will be stopped immediately :-)
On the other hand, java tools which tried to attach target VM will fail because it cannot
connect UNIX domain socket.
Please run my testcase. It's actual behavior.
Thanks,
Yasumasa
On 2013/10/01 22:15, David Holmes wrote:
> On 23/09/2013 2:41 AM, Staffan Larsen wrote:
>> Dmitry: Thanks for the review.
>>
>> Yasumasa: Thanks for your contribution! I have pushed the changes into HS25 and will push them to 7u60 as well.
>
> I've been on vacation so could not respond in time. I am concerned about this fix. Other than printing a message on the console it pretends that the init has succeeded! That seems wrong to me. What are the consequences of doing this?
>
> David
> -----
>
>> /Staffan
>>
>> On 22 sep 2013, at 01:51, Dmitry Samersoff wrote:
>>
>>> Yasumasa,
>>>
>>> Looks good for me.
>>>
>>> -Dmitry
>>>
>>> On 2013-09-21 14:43, Yasumasa Suenaga wrote:
>>>> Hi Staffan,
>>>>
>>>>> Can you update your patch, please?
>>>>
>>>> Of course!
>>>> I've attached new patch in this email.
>>>>
>>>> Could you check this?
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Yasumasa
>>>>
>>>> On 2013/09/21 15:36, Staffan Larsen wrote:
>>>>>
>>>>>
>>>>>> On 20 sep 2013, at 16:49, Yasumasa Suenaga
>>>>>> wrote:
>>>>>>
>>>>>>> On 2013/09/20 23:34, Staffan Larsen wrote:
>>>>>>>
>>>>>>>> On 20 sep 2013, at 16:24, Yasumasa Suenaga
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> I thought your code too. However...
>>>>>>>>
>>>>>>>> - These code is different from other code (rule?).
>>>>>>>
>>>>>>> Well, you are introducing a new macro that is also different from
>>>>>>> other code, so I'm not sure how valid that argument is.
>>>>>>
>>>>>> My macro is modified from "CATCH" in exceptions.hpp:
>>>>>>
>>>>>> #define CATCH \
>>>>>> THREAD); if (HAS_PENDING_EXCEPTION) { \
>>>>>> oop ex = PENDING_EXCEPTION; \
>>>>>> CLEAR_PENDING_EXCEPTION; \
>>>>>> ex->print(); \
>>>>>> ShouldNotReachHere(); \
>>>>>> } (void)(0
>>>>>>
>>>>>> So I think that my macro is not big difference fromother code.
>>>>>>
>>>>>>
>>>>>>>> - Similar crash cases exist. e.g. 6425580 and 7142442.
>>>>>>>> These crashes are different from 6989981. However, I guess that
>>>>>>>> crashed
>>>>>>>> thread had pending exception and we need to fix with similar patch.
>>>>>>>>
>>>>>>>> So I think that new macro is useful later.
>>>>>>>
>>>>>>> Yes, similar problems may come up in other cases as well.
>>>>>>>
>>>>>>> Generally, I don't think it's a good idea to have logging calls
>>>>>>> hidden away in general macros. What we really should do here is
>>>>>>> print some context around the stack trace as well. Something like:
>>>>>>>
>>>>>>> Initializing the attach listener failed with the following
>>>>>>> exception in AttachListener::init when initializing the thread_oop:
>>>>>>>
>>>>>>> This would be possible with the code I suggested, but very hard in a
>>>>>>> general macro.
>>>>>>
>>>>>> Agree.
>>>>>> Should we write code as following?
>>>>>>
>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>> tty->print_cr("Exception in VM (AttachListener::init) : ");
>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>> return;
>>>>>> }
>>>>>>
>>>>>> I like this way :-)
>>>>>
>>>>> Yes, this is what I'd like to see! Can you update your patch, please?
>>>>>
>>>>> Thanks,
>>>>> /Staffan
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Yasumasa
>>>>>>
>>>>>>
>>>>>>> Thanks,
>>>>>>> /Staffan
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Yasumasa
>>>>>>>>
>>>>>>>>> On 2013/09/20 23:05, Staffan Larsen wrote:
>>>>>>>>> I see. CHECK_AND_CLEAR_AND_PRINT? Just kidding... :-)
>>>>>>>>>
>>>>>>>>> Maybe in this case we should not have this as a macro, but
>>>>>>>>> actually add the code after the two calls to call_special?
>>>>>>>>> Something like the code below. I personally think this is more
>>>>>>>>> readable than obscure macros that I have to go look up to
>>>>>>>>> understand what they do.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> /Staffan
>>>>>>>>>
>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>> klass,
>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>
>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>> thread_group,
>>>>>>>>> string,
>>>>>>>>> THREAD);
>>>>>>>>>
>>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>>> return;
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> KlassHandle group(THREAD, SystemDictionary::ThreadGroup_klass());
>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>> thread_group,
>>>>>>>>> group,
>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>> THREAD);
>>>>>>>>>
>>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>>> return;
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On 20 sep 2013, at 15:53, Yasumasa
>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Staffan,
>>>>>>>>>>
>>>>>>>>>> Thank you for your sponsoring!
>>>>>>>>>>
>>>>>>>>>> "CHECK_AND_CLEAR" is already defined in exceptions.hpp:
>>>>>>>>>> ******************
>>>>>>>>>> #define CHECK_AND_CLEAR THREAD); if
>>>>>>>>>> (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return;
>>>>>>>>>> } (void)(0
>>>>>>>>>> ******************
>>>>>>>>>>
>>>>>>>>>> I think that user wants why serviceability tools are failed.
>>>>>>>>>> So I defined "CHECK_AND_CLEAR" + java_lang_Throwable::print() as
>>>>>>>>>> "CATCH_AND_RETURN" .
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I agree rename this macro.
>>>>>>>>>> Do you have any idea? I don't have a good name :-)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> Yasumasa
>>>>>>>>>>
>>>>>>>>>>> On 2013/09/20 20:10, Staffan Larsen wrote:
>>>>>>>>>>> Yasuma,
>>>>>>>>>>>
>>>>>>>>>>> Thanks for finding and fixing this! I have re-opened the bug.
>>>>>>>>>>> Your patch looks good to me, but perhaps CATCH_AND_RETURN should
>>>>>>>>>>> be renamed CHECK_AND_CLEAR?
>>>>>>>>>>>
>>>>>>>>>>> I can sponsor the fix.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> /Staffan
>>>>>>>>>>>
>>>>>>>>>>>> On 20 sep 2013, at 12:41, Yasumasa
>>>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I encountered this bug:
>>>>>>>>>>>> JDK-6989981: jstack causes "fatal error: ExceptionMark
>>>>>>>>>>>> destructor expects no pending exceptions"
>>>>>>>>>>>>
>>>>>>>>>>>> I read hs_err and attachListener.cpp, Java heap usage is very
>>>>>>>>>>>> high and
>>>>>>>>>>>> it could be OutOfMemoryError in AttachListener::init() .
>>>>>>>>>>>>
>>>>>>>>>>>> If JavaCalls::call_special() in AttachListener::init() fail
>>>>>>>>>>>> which is
>>>>>>>>>>>> caused by OOME, d'tor of EXCEPTION_MARK (~ExceptionMark) will
>>>>>>>>>>>> generate
>>>>>>>>>>>> internal error.
>>>>>>>>>>>>
>>>>>>>>>>>> So I make a patch for avoiding crash and attached in this email
>>>>>>>>>>>> (6989981.patch) .
>>>>>>>>>>>> I'd like to re-open this bug and contribute my patch.
>>>>>>>>>>>> Could you help me?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --- DETAILS ---
>>>>>>>>>>>> CHECK macro is used in JavaCalls::call_special() .
>>>>>>>>>>>>
>>>>>>>>>>>> ******************
>>>>>>>>>>>> void AttachListener::init() {
>>>>>>>>>>>> EXCEPTION_MARK;
>>>>>>>>>>>>
>>>>>>>>>>>> :
>>>>>>>>>>>>
>>>>>>>>>>>> // Initialize thread_oop to put it into the system threadGroup
>>>>>>>>>>>> Handle thread_group (THREAD, Universe::system_thread_group());
>>>>>>>>>>>> JavaValue result(T_VOID);
>>>>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>>>>> klass,
>>>>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>>>>
>>>>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>>>>> thread_group,
>>>>>>>>>>>> string,
>>>>>>>>>>>> CHECK);
>>>>>>>>>>>>
>>>>>>>>>>>> KlassHandle group(THREAD,
>>>>>>>>>>>> SystemDictionary::ThreadGroup_klass());
>>>>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>>>>> thread_group,
>>>>>>>>>>>> group,
>>>>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>>>>> CHECK);
>>>>>>>>>>>> ******************
>>>>>>>>>>>>
>>>>>>>>>>>> CHECK macro does not clear pending exception of current thread.
>>>>>>>>>>>> So call_special() fails with runtime exception, d'tor of
>>>>>>>>>>>> ExceptionMark
>>>>>>>>>>>> generates fatal error.
>>>>>>>>>>>>
>>>>>>>>>>>> ******************
>>>>>>>>>>>> ExceptionMark::~ExceptionMark() {
>>>>>>>>>>>> if (_thread->has_pending_exception()) {
>>>>>>>>>>>> Handle exception(_thread, _thread->pending_exception());
>>>>>>>>>>>> _thread->clear_pending_exception(); // Needed to avoid
>>>>>>>>>>>> infinite recursion
>>>>>>>>>>>> if (is_init_completed()) {
>>>>>>>>>>>> exception->print();
>>>>>>>>>>>> fatal("ExceptionMark destructor expects no pending
>>>>>>>>>>>> exceptions");
>>>>>>>>>>>> } else {
>>>>>>>>>>>> vm_exit_during_initialization(exception);
>>>>>>>>>>>> }
>>>>>>>>>>>> }
>>>>>>>>>>>> }
>>>>>>>>>>>> ******************
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --- HOW TO REPRODUCE ---
>>>>>>>>>>>> I also crate testcase of this issue (testcase.tar.gz) . This
>>>>>>>>>>>> testcase contains
>>>>>>>>>>>> two modules.
>>>>>>>>>>>>
>>>>>>>>>>>> - jvmti: JVMTI agent for this issue. This agent traps SIGQUIT and
>>>>>>>>>>>> calls original (in HotSpot) SIGQUIT handler.
>>>>>>>>>>>> This signal handler is invoked, MethodEntry event
>>>>>>>>>>>> callback is
>>>>>>>>>>>> enabled. MethodEntry generates OutOfMemoryError.
>>>>>>>>>>>>
>>>>>>>>>>>> - java : Simple long sleep program.
>>>>>>>>>>>>
>>>>>>>>>>>> I can run this testcase in Fedora18 x86_64. See below.
>>>>>>>>>>>>
>>>>>>>>>>>> -------
>>>>>>>>>>>> $ javac java/LongSleep.java
>>>>>>>>>>>> $ make -C jvmti
>>>>>>>>>>>> make: Entering directory
>>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>>> gcc -I/usr/lib/jvm/java-openjdk/include
>>>>>>>>>>>> -I/usr/lib/jvm/java-openjdk/include/linux -fPIC -c oome.c
>>>>>>>>>>>> gcc -shared -o liboome.so oome.o
>>>>>>>>>>>> make: Leaving directory
>>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>>> $ export JAVA_HOME=
>>>>>>>>>>>> $ ./test.sh
>>>>>>>>>>>> -------
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>
>>>>>>>>>>>> Yasumasa
>>>>>>>>>>>>
>>>>>>>>>>>> <6989981.patch>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Dmitry Samersoff
>>> Oracle Java development team, Saint Petersburg, Russia
>>> * I would love to change the world, but they won't give me the source code.
>>
>
From staffan.larsen at oracle.com Tue Oct 1 07:32:26 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Tue, 1 Oct 2013 16:32:26 +0200
Subject: JDK-6989981: jstack causes "fatal error: ExceptionMark destructor
expects no pending exceptions"
In-Reply-To: <524ACADB.3060600@oracle.com>
References: <523C264E.7060704@ysfactory.dip.jp>
<97D9FB54-FFF1-4337-942A-E7FE2196A354@oracle.com>
<523C534C.7060908@ysfactory.dip.jp>
<9367FE2B-C709-4273-BEAE-745841846560@oracle.com>
<523C5A8A.8060000@ysfactory.dip.jp>
<523C606B.5060204@ysfactory.dip.jp>
<952F096A-69D2-4E7C-B979-91E95AFE37F8@oracle.com>
<523D786C.5090605@ysfactory.dip.jp> <523EAF7C.3050000@oracle.com>
<3FE7CB8E-39F4-4915-B82E-AC2F88715189@oracle.com>
<524ACADB.3060600@oracle.com>
Message-ID:
On 1 okt 2013, at 15:15, David Holmes wrote:
> On 23/09/2013 2:41 AM, Staffan Larsen wrote:
>> Dmitry: Thanks for the review.
>>
>> Yasumasa: Thanks for your contribution! I have pushed the changes into HS25 and will push them to 7u60 as well.
>
> I've been on vacation so could not respond in time. I am concerned about this fix. Other than printing a message on the console it pretends that the init has succeeded! That seems wrong to me. What are the consequences of doing this?
The change is an improvement to the previous error message, but looking at the code again there is similar code in the block below. That code calls vm_exit_during_initialization() if the init failed. The only problem with that is that AttachListener::init() can be called not just during initialization, so it seems a bit drastic to kill the JVM if the init fails.
In the case where AttachListener::init() is called during initialization it makes sense to kill the VM if AttachListener::init() fails, in other cases an error message would be better. We now have an ugly combination...
If AttachListener::init() fails during runtime, I think it has no other consequences than attach operations not working.
/Staffan
>
> David
> -----
>
>> /Staffan
>>
>> On 22 sep 2013, at 01:51, Dmitry Samersoff wrote:
>>
>>> Yasumasa,
>>>
>>> Looks good for me.
>>>
>>> -Dmitry
>>>
>>> On 2013-09-21 14:43, Yasumasa Suenaga wrote:
>>>> Hi Staffan,
>>>>
>>>>> Can you update your patch, please?
>>>>
>>>> Of course!
>>>> I've attached new patch in this email.
>>>>
>>>> Could you check this?
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Yasumasa
>>>>
>>>> On 2013/09/21 15:36, Staffan Larsen wrote:
>>>>>
>>>>>
>>>>>> On 20 sep 2013, at 16:49, Yasumasa Suenaga
>>>>>> wrote:
>>>>>>
>>>>>>> On 2013/09/20 23:34, Staffan Larsen wrote:
>>>>>>>
>>>>>>>> On 20 sep 2013, at 16:24, Yasumasa Suenaga
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> I thought your code too. However...
>>>>>>>>
>>>>>>>> - These code is different from other code (rule?).
>>>>>>>
>>>>>>> Well, you are introducing a new macro that is also different from
>>>>>>> other code, so I'm not sure how valid that argument is.
>>>>>>
>>>>>> My macro is modified from "CATCH" in exceptions.hpp:
>>>>>>
>>>>>> #define CATCH \
>>>>>> THREAD); if (HAS_PENDING_EXCEPTION) { \
>>>>>> oop ex = PENDING_EXCEPTION; \
>>>>>> CLEAR_PENDING_EXCEPTION; \
>>>>>> ex->print(); \
>>>>>> ShouldNotReachHere(); \
>>>>>> } (void)(0
>>>>>>
>>>>>> So I think that my macro is not big difference fromother code.
>>>>>>
>>>>>>
>>>>>>>> - Similar crash cases exist. e.g. 6425580 and 7142442.
>>>>>>>> These crashes are different from 6989981. However, I guess that
>>>>>>>> crashed
>>>>>>>> thread had pending exception and we need to fix with similar patch.
>>>>>>>>
>>>>>>>> So I think that new macro is useful later.
>>>>>>>
>>>>>>> Yes, similar problems may come up in other cases as well.
>>>>>>>
>>>>>>> Generally, I don't think it's a good idea to have logging calls
>>>>>>> hidden away in general macros. What we really should do here is
>>>>>>> print some context around the stack trace as well. Something like:
>>>>>>>
>>>>>>> Initializing the attach listener failed with the following
>>>>>>> exception in AttachListener::init when initializing the thread_oop:
>>>>>>>
>>>>>>> This would be possible with the code I suggested, but very hard in a
>>>>>>> general macro.
>>>>>>
>>>>>> Agree.
>>>>>> Should we write code as following?
>>>>>>
>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>> tty->print_cr("Exception in VM (AttachListener::init) : ");
>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>> return;
>>>>>> }
>>>>>>
>>>>>> I like this way :-)
>>>>>
>>>>> Yes, this is what I'd like to see! Can you update your patch, please?
>>>>>
>>>>> Thanks,
>>>>> /Staffan
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Yasumasa
>>>>>>
>>>>>>
>>>>>>> Thanks,
>>>>>>> /Staffan
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Yasumasa
>>>>>>>>
>>>>>>>>> On 2013/09/20 23:05, Staffan Larsen wrote:
>>>>>>>>> I see. CHECK_AND_CLEAR_AND_PRINT? Just kidding... :-)
>>>>>>>>>
>>>>>>>>> Maybe in this case we should not have this as a macro, but
>>>>>>>>> actually add the code after the two calls to call_special?
>>>>>>>>> Something like the code below. I personally think this is more
>>>>>>>>> readable than obscure macros that I have to go look up to
>>>>>>>>> understand what they do.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> /Staffan
>>>>>>>>>
>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>> klass,
>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>
>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>> thread_group,
>>>>>>>>> string,
>>>>>>>>> THREAD);
>>>>>>>>>
>>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>>> return;
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> KlassHandle group(THREAD, SystemDictionary::ThreadGroup_klass());
>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>> thread_group,
>>>>>>>>> group,
>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>> THREAD);
>>>>>>>>>
>>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>>> return;
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On 20 sep 2013, at 15:53, Yasumasa
>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Staffan,
>>>>>>>>>>
>>>>>>>>>> Thank you for your sponsoring!
>>>>>>>>>>
>>>>>>>>>> "CHECK_AND_CLEAR" is already defined in exceptions.hpp:
>>>>>>>>>> ******************
>>>>>>>>>> #define CHECK_AND_CLEAR THREAD); if
>>>>>>>>>> (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return;
>>>>>>>>>> } (void)(0
>>>>>>>>>> ******************
>>>>>>>>>>
>>>>>>>>>> I think that user wants why serviceability tools are failed.
>>>>>>>>>> So I defined "CHECK_AND_CLEAR" + java_lang_Throwable::print() as
>>>>>>>>>> "CATCH_AND_RETURN" .
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I agree rename this macro.
>>>>>>>>>> Do you have any idea? I don't have a good name :-)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> Yasumasa
>>>>>>>>>>
>>>>>>>>>>> On 2013/09/20 20:10, Staffan Larsen wrote:
>>>>>>>>>>> Yasuma,
>>>>>>>>>>>
>>>>>>>>>>> Thanks for finding and fixing this! I have re-opened the bug.
>>>>>>>>>>> Your patch looks good to me, but perhaps CATCH_AND_RETURN should
>>>>>>>>>>> be renamed CHECK_AND_CLEAR?
>>>>>>>>>>>
>>>>>>>>>>> I can sponsor the fix.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> /Staffan
>>>>>>>>>>>
>>>>>>>>>>>> On 20 sep 2013, at 12:41, Yasumasa
>>>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I encountered this bug:
>>>>>>>>>>>> JDK-6989981: jstack causes "fatal error: ExceptionMark
>>>>>>>>>>>> destructor expects no pending exceptions"
>>>>>>>>>>>>
>>>>>>>>>>>> I read hs_err and attachListener.cpp, Java heap usage is very
>>>>>>>>>>>> high and
>>>>>>>>>>>> it could be OutOfMemoryError in AttachListener::init() .
>>>>>>>>>>>>
>>>>>>>>>>>> If JavaCalls::call_special() in AttachListener::init() fail
>>>>>>>>>>>> which is
>>>>>>>>>>>> caused by OOME, d'tor of EXCEPTION_MARK (~ExceptionMark) will
>>>>>>>>>>>> generate
>>>>>>>>>>>> internal error.
>>>>>>>>>>>>
>>>>>>>>>>>> So I make a patch for avoiding crash and attached in this email
>>>>>>>>>>>> (6989981.patch) .
>>>>>>>>>>>> I'd like to re-open this bug and contribute my patch.
>>>>>>>>>>>> Could you help me?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --- DETAILS ---
>>>>>>>>>>>> CHECK macro is used in JavaCalls::call_special() .
>>>>>>>>>>>>
>>>>>>>>>>>> ******************
>>>>>>>>>>>> void AttachListener::init() {
>>>>>>>>>>>> EXCEPTION_MARK;
>>>>>>>>>>>>
>>>>>>>>>>>> :
>>>>>>>>>>>>
>>>>>>>>>>>> // Initialize thread_oop to put it into the system threadGroup
>>>>>>>>>>>> Handle thread_group (THREAD, Universe::system_thread_group());
>>>>>>>>>>>> JavaValue result(T_VOID);
>>>>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>>>>> klass,
>>>>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>>>>
>>>>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>>>>> thread_group,
>>>>>>>>>>>> string,
>>>>>>>>>>>> CHECK);
>>>>>>>>>>>>
>>>>>>>>>>>> KlassHandle group(THREAD,
>>>>>>>>>>>> SystemDictionary::ThreadGroup_klass());
>>>>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>>>>> thread_group,
>>>>>>>>>>>> group,
>>>>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>>>>> CHECK);
>>>>>>>>>>>> ******************
>>>>>>>>>>>>
>>>>>>>>>>>> CHECK macro does not clear pending exception of current thread.
>>>>>>>>>>>> So call_special() fails with runtime exception, d'tor of
>>>>>>>>>>>> ExceptionMark
>>>>>>>>>>>> generates fatal error.
>>>>>>>>>>>>
>>>>>>>>>>>> ******************
>>>>>>>>>>>> ExceptionMark::~ExceptionMark() {
>>>>>>>>>>>> if (_thread->has_pending_exception()) {
>>>>>>>>>>>> Handle exception(_thread, _thread->pending_exception());
>>>>>>>>>>>> _thread->clear_pending_exception(); // Needed to avoid
>>>>>>>>>>>> infinite recursion
>>>>>>>>>>>> if (is_init_completed()) {
>>>>>>>>>>>> exception->print();
>>>>>>>>>>>> fatal("ExceptionMark destructor expects no pending
>>>>>>>>>>>> exceptions");
>>>>>>>>>>>> } else {
>>>>>>>>>>>> vm_exit_during_initialization(exception);
>>>>>>>>>>>> }
>>>>>>>>>>>> }
>>>>>>>>>>>> }
>>>>>>>>>>>> ******************
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --- HOW TO REPRODUCE ---
>>>>>>>>>>>> I also crate testcase of this issue (testcase.tar.gz) . This
>>>>>>>>>>>> testcase contains
>>>>>>>>>>>> two modules.
>>>>>>>>>>>>
>>>>>>>>>>>> - jvmti: JVMTI agent for this issue. This agent traps SIGQUIT and
>>>>>>>>>>>> calls original (in HotSpot) SIGQUIT handler.
>>>>>>>>>>>> This signal handler is invoked, MethodEntry event
>>>>>>>>>>>> callback is
>>>>>>>>>>>> enabled. MethodEntry generates OutOfMemoryError.
>>>>>>>>>>>>
>>>>>>>>>>>> - java : Simple long sleep program.
>>>>>>>>>>>>
>>>>>>>>>>>> I can run this testcase in Fedora18 x86_64. See below.
>>>>>>>>>>>>
>>>>>>>>>>>> -------
>>>>>>>>>>>> $ javac java/LongSleep.java
>>>>>>>>>>>> $ make -C jvmti
>>>>>>>>>>>> make: Entering directory
>>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>>> gcc -I/usr/lib/jvm/java-openjdk/include
>>>>>>>>>>>> -I/usr/lib/jvm/java-openjdk/include/linux -fPIC -c oome.c
>>>>>>>>>>>> gcc -shared -o liboome.so oome.o
>>>>>>>>>>>> make: Leaving directory
>>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>>> $ export JAVA_HOME=
>>>>>>>>>>>> $ ./test.sh
>>>>>>>>>>>> -------
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>
>>>>>>>>>>>> Yasumasa
>>>>>>>>>>>>
>>>>>>>>>>>> <6989981.patch>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Dmitry Samersoff
>>> Oracle Java development team, Saint Petersburg, Russia
>>> * I would love to change the world, but they won't give me the source code.
>>
From karen.kinnear at oracle.com Tue Oct 1 08:04:31 2013
From: karen.kinnear at oracle.com (karen.kinnear at oracle.com)
Date: Tue, 01 Oct 2013 15:04:31 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8011311: Private interface methods.
Default conflicts:ICCE. no erased_super_default.
Message-ID: <20131001150436.A834A62C47@hg.openjdk.java.net>
Changeset: 36b97be47bde
Author: acorn
Date: 2013-10-01 08:10 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/36b97be47bde
8011311: Private interface methods. Default conflicts:ICCE. no erased_super_default.
Reviewed-by: coleenp, bharadwaj, minqi
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/defaultMethods.cpp
! src/share/vm/classfile/defaultMethods.hpp
! src/share/vm/interpreter/linkResolver.cpp
! src/share/vm/oops/instanceKlass.cpp
! src/share/vm/oops/klassVtable.cpp
From tim.bell at oracle.com Tue Oct 1 08:30:14 2013
From: tim.bell at oracle.com (Tim Bell)
Date: Tue, 01 Oct 2013 08:30:14 -0700
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <524AD29A.3030806@oracle.com>
References: <523D144E.4000002@oracle.com> <524A8B0F.4070704@oracle.com>
<524AD29A.3030806@oracle.com>
Message-ID: <524AEA86.3070405@oracle.com>
Open changes look good to me as well.
Tim
On 10/ 1/13 06:48 AM, Daniel D. Daugherty wrote:
> Thanks (again). You previously posted a review for the OpenJDK side
> on 2013.09.23... :-)
>
> Dan
>
>
> On 10/1/13 2:42 AM, Erik Joelsson wrote:
>> I have looked at the build changes in the root and jdk repos and they
>> look OK.
>>
>> /Erik
>>
>> On 2013-09-21 05:36, Daniel D. Daugherty wrote:
>>> Greetings,
>>>
>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>>> and ready for review:
>>>
>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>
>>> Here is the JDK8/HSX-25 webrev URL:
>>>
>>> OpenJDK:
>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>> Internal:
>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>
>>>
>>> This webrev includes changes for the follow repos:
>>>
>>> jdk8
>>> jdk8/hotspot
>>> jdk8/jdk
>>> jdk8/jdk/make/closed
>>>
>>> Once these changes are approved, I'm planning to push them to
>>> RT_Baseline. From there, they can follow the normal path to
>>> Main_Baseline and eventually JDK8.
>>>
>>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>>> the other repos are necessary to support importing the .diz files from
>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>> FDS related errors in the magic incantations for the new build. This is
>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>> from Solaris. In other words, this is Frankenstein's monster...
>>>
>>> Thanks to Staffan Larsen for providing an initial set of changes
>>> which I morphed into what you see here.
>>>
>>> Testing:
>>> - JPRT HSX build and test on all platforms; verification of .diz
>>> files in the MacOS X JPRT bundles
>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>> .diz files in the MacOS X JPRT bundles
>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>> repo build and test, but that no longer seems to work.
>>>
>>> As always, comments, questions and suggestions are welcome.
>>>
>>> Dan
>>
>
From daniel.daugherty at oracle.com Tue Oct 1 08:48:19 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Tue, 01 Oct 2013 09:48:19 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <524AEA86.3070405@oracle.com>
References: <523D144E.4000002@oracle.com> <524A8B0F.4070704@oracle.com>
<524AD29A.3030806@oracle.com> <524AEA86.3070405@oracle.com>
Message-ID: <524AEEC3.9070908@oracle.com>
Tim,
Thanks for the review.
Dan
On 10/1/13 9:30 AM, Tim Bell wrote:
> Open changes look good to me as well.
>
> Tim
>
> On 10/ 1/13 06:48 AM, Daniel D. Daugherty wrote:
>> Thanks (again). You previously posted a review for the OpenJDK side
>> on 2013.09.23... :-)
>>
>> Dan
>>
>>
>> On 10/1/13 2:42 AM, Erik Joelsson wrote:
>>> I have looked at the build changes in the root and jdk repos and
>>> they look OK.
>>>
>>> /Erik
>>>
>>> On 2013-09-21 05:36, Daniel D. Daugherty wrote:
>>>> Greetings,
>>>>
>>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X
>>>> done
>>>> and ready for review:
>>>>
>>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>>
>>>> Here is the JDK8/HSX-25 webrev URL:
>>>>
>>>> OpenJDK:
>>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>>> Internal:
>>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>>
>>>>
>>>> This webrev includes changes for the follow repos:
>>>>
>>>> jdk8
>>>> jdk8/hotspot
>>>> jdk8/jdk
>>>> jdk8/jdk/make/closed
>>>>
>>>> Once these changes are approved, I'm planning to push them to
>>>> RT_Baseline. From there, they can follow the normal path to
>>>> Main_Baseline and eventually JDK8.
>>>>
>>>> This work enables FDS on MacOS X for the 'hotspot' repo; the
>>>> changes in
>>>> the other repos are necessary to support importing the .diz files from
>>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>>> FDS related errors in the magic incantations for the new build.
>>>> This is
>>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>>> from Solaris. In other words, this is Frankenstein's monster...
>>>>
>>>> Thanks to Staffan Larsen for providing an initial set of changes
>>>> which I morphed into what you see here.
>>>>
>>>> Testing:
>>>> - JPRT HSX build and test on all platforms; verification of .diz
>>>> files in the MacOS X JPRT bundles
>>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>>> .diz files in the MacOS X JPRT bundles
>>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>>> repo build and test, but that no longer seems to work.
>>>>
>>>> As always, comments, questions and suggestions are welcome.
>>>>
>>>> Dan
>>>
>>
>
From daniel.daugherty at oracle.com Tue Oct 1 09:01:48 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Tue, 01 Oct 2013 10:01:48 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <85C072F5-3EC8-41DB-A058-4055807F242A@oracle.com>
References: <523D144E.4000002@oracle.com>
<52498025.3040402@oracle.com>
<85C072F5-3EC8-41DB-A058-4055807F242A@oracle.com>
Message-ID: <524AF1EC.9040101@oracle.com>
On 9/30/13 12:00 PM, Staffan Larsen wrote:
> On 30 sep 2013, at 15:44, Daniel D. Daugherty wrote:
>
>>
>> I'm presuming that you're trying with a forest that includes
>> closed repos. If so, then you'll need the jdk/make/closed change
>> in order for the build to work.
> Yes, I was running with closed repos. I now have the additional patch, but what I get now is a bit strange. The libjvm.dylib.dSYM directory should be copied from
> build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/ to
> build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/server/ to
> build/macosx-x86_64-normal-server-slowdebug/jdk/lib/server/
>
> But what I get is for each copy, the result is different:
>
> build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/libjvm.dylib.dSYM/:
> Contents
>
> build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/server/libjvm.dylib.dSYM/:
> Info.plist libjvm.dylib
>
> build/macosx-x86_64-normal-server-slowdebug/jdk/lib/server/libjvm.dylib.dSYM:
> libjvm.dylib
>
>
> Looks like the recursive copy isn't working as expected.
Yesterday, I did a JPRT control build and here's what I see:
$ unzip -l macosx_x64_10.7-product.zip | grep .diz
2333 10-01-2013 00:13 jre/lib/libjsig.diz
3747 10-01-2013 00:13 jre/lib/libsaproc.diz
204 10-01-2013 00:13 jre/lib/server/libjsig.diz
132330347 10-01-2013 00:14 jre/lib/server/libjvm.diz
And inside libjvm.diz:
$ unzip -l jre/lib/server/libjvm.diz
Archive: jre/lib/server/libjvm.diz
Length Date Time Name
--------- ---------- ----- ----
0 09-30-2013 23:59 libjvm.dylib.dSYM/
0 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/
641 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/Info.plist
0 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/Resources/
0 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/Resources/DWARF/
326461252 09-30-2013 23:59
libjvm.dylib.dSYM/Contents/Resources/DWARF/libjvm.dylib
--------- -------
326461893 6 files
so it looks like JPRT is doing the "right thing" for control builds.
I had previously verified that a hotspot only JPRT was doing the right
thing before my vacation.
My personal manual hotspot builds on my MacMini also did the right
thing so I'll have to check out what's going on with your style of
build invocation.
>>> Another comment: There are some makefile logic for BSD, non-darwin platforms. Have you had a chance to test this logic? (hotspot/make/bsd/makefiles/vm.make)
>> No, I don't have access to a BSD (non-darwin) platform. However, I'll
>> be pinging Dmitri Samersoff to ask a few questions...
> OK. If we can't verify the logic, then maybe should leave it out.
I'll work with Dmitry S. on getting this tested. If we can't verify
that proposed changes work on BSD, then I'll back out that portion.
Dan
>
>>
>>> Nit: hotspot/make/bsd/makefiles/vm.make: L345, L356: wrong indentation.
>> These are make cmd lines:
>>
>> 344 else
>> 345 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DEBUGINFO)
>> 346 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
>> 347 ifeq ($(STRIP_POLICY),all_strip)
>>
>> so they have to be indented by a tab. Very ugly, but necessary.
> Ouch. :-(
>
> /Staffan
>
>> Dan
>>
>>
>>>
>>> /Staffan
>>>
>>>
>>>
>>> On 21 sep 2013, at 05:36, Daniel D. Daugherty wrote:
>>>
>>>> Greetings,
>>>>
>>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>>>> and ready for review:
>>>>
>>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>>
>>>> Here is the JDK8/HSX-25 webrev URL:
>>>>
>>>> OpenJDK: http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>>> Internal: http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>>
>>>> This webrev includes changes for the follow repos:
>>>>
>>>> jdk8
>>>> jdk8/hotspot
>>>> jdk8/jdk
>>>> jdk8/jdk/make/closed
>>>>
>>>> Once these changes are approved, I'm planning to push them to
>>>> RT_Baseline. From there, they can follow the normal path to
>>>> Main_Baseline and eventually JDK8.
>>>>
>>>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>>>> the other repos are necessary to support importing the .diz files from
>>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>>> FDS related errors in the magic incantations for the new build. This is
>>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>>> from Solaris. In other words, this is Frankenstein's monster...
>>>>
>>>> Thanks to Staffan Larsen for providing an initial set of changes
>>>> which I morphed into what you see here.
>>>>
>>>> Testing:
>>>> - JPRT HSX build and test on all platforms; verification of .diz
>>>> files in the MacOS X JPRT bundles
>>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>>> .diz files in the MacOS X JPRT bundles
>>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>>> repo build and test, but that no longer seems to work.
>>>>
>>>> As always, comments, questions and suggestions are welcome.
>>>>
>>>> Dan
From staffan.larsen at oracle.com Tue Oct 1 09:36:13 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Tue, 1 Oct 2013 18:36:13 +0200
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <524AF1EC.9040101@oracle.com>
References: <523D144E.4000002@oracle.com>
<52498025.3040402@oracle.com>
<85C072F5-3EC8-41DB-A058-4055807F242A@oracle.com>
<524AF1EC.9040101@oracle.com>
Message-ID:
On 1 okt 2013, at 18:01, "Daniel D. Daugherty" wrote:
> On 9/30/13 12:00 PM, Staffan Larsen wrote:
>> On 30 sep 2013, at 15:44, Daniel D. Daugherty wrote:
>>
>>>
>>> I'm presuming that you're trying with a forest that includes
>>> closed repos. If so, then you'll need the jdk/make/closed change
>>> in order for the build to work.
>> Yes, I was running with closed repos. I now have the additional patch, but what I get now is a bit strange. The libjvm.dylib.dSYM directory should be copied from
>> build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/ to
>> build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/server/ to
>> build/macosx-x86_64-normal-server-slowdebug/jdk/lib/server/
>>
>> But what I get is for each copy, the result is different:
>>
>> build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/libjvm.dylib.dSYM/:
>> Contents
>>
>> build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/server/libjvm.dylib.dSYM/:
>> Info.plist libjvm.dylib
>>
>> build/macosx-x86_64-normal-server-slowdebug/jdk/lib/server/libjvm.dylib.dSYM:
>> libjvm.dylib
>>
>>
>> Looks like the recursive copy isn't working as expected.
>
> Yesterday, I did a JPRT control build and here's what I see:
>
> $ unzip -l macosx_x64_10.7-product.zip | grep .diz
> 2333 10-01-2013 00:13 jre/lib/libjsig.diz
> 3747 10-01-2013 00:13 jre/lib/libsaproc.diz
> 204 10-01-2013 00:13 jre/lib/server/libjsig.diz
> 132330347 10-01-2013 00:14 jre/lib/server/libjvm.diz
>
> And inside libjvm.diz:
>
> $ unzip -l jre/lib/server/libjvm.diz
> Archive: jre/lib/server/libjvm.diz
> Length Date Time Name
> --------- ---------- ----- ----
> 0 09-30-2013 23:59 libjvm.dylib.dSYM/
> 0 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/
> 641 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/Info.plist
> 0 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/Resources/
> 0 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/Resources/DWARF/
> 326461252 09-30-2013 23:59 libjvm.dylib.dSYM/Contents/Resources/DWARF/libjvm.dylib
> --------- -------
> 326461893 6 files
>
> so it looks like JPRT is doing the "right thing" for control builds.
> I had previously verified that a hotspot only JPRT was doing the right
> thing before my vacation.
>
> My personal manual hotspot builds on my MacMini also did the right
> thing so I'll have to check out what's going on with your style of
> build invocation.
The problem I am seeing is with the option --disable-zip-debug-info to configure (which is very useful when compiling and debugging on the same system).
>
>
>>>> Another comment: There are some makefile logic for BSD, non-darwin platforms. Have you had a chance to test this logic? (hotspot/make/bsd/makefiles/vm.make)
>>> No, I don't have access to a BSD (non-darwin) platform. However, I'll
>>> be pinging Dmitri Samersoff to ask a few questions...
>> OK. If we can't verify the logic, then maybe should leave it out.
>
> I'll work with Dmitry S. on getting this tested. If we can't verify
> that proposed changes work on BSD, then I'll back out that portion.
Good.
/Staffan
>
> Dan
>
>
>>
>>>
>>>> Nit: hotspot/make/bsd/makefiles/vm.make: L345, L356: wrong indentation.
>>> These are make cmd lines:
>>>
>>> 344 else
>>> 345 $(QUIETLY) $(OBJCOPY) --only-keep-debug $@ $(LIBJVM_DEBUGINFO)
>>> 346 $(QUIETLY) $(OBJCOPY) --add-gnu-debuglink=$(LIBJVM_DEBUGINFO) $@
>>> 347 ifeq ($(STRIP_POLICY),all_strip)
>>>
>>> so they have to be indented by a tab. Very ugly, but necessary.
>> Ouch. :-(
>>
>> /Staffan
>>
>>> Dan
>>>
>>>
>>>>
>>>> /Staffan
>>>>
>>>>
>>>>
>>>> On 21 sep 2013, at 05:36, Daniel D. Daugherty wrote:
>>>>
>>>>> Greetings,
>>>>>
>>>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>>>>> and ready for review:
>>>>>
>>>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>>>
>>>>> Here is the JDK8/HSX-25 webrev URL:
>>>>>
>>>>> OpenJDK: http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>>>> Internal: http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>>>
>>>>> This webrev includes changes for the follow repos:
>>>>>
>>>>> jdk8
>>>>> jdk8/hotspot
>>>>> jdk8/jdk
>>>>> jdk8/jdk/make/closed
>>>>>
>>>>> Once these changes are approved, I'm planning to push them to
>>>>> RT_Baseline. From there, they can follow the normal path to
>>>>> Main_Baseline and eventually JDK8.
>>>>>
>>>>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>>>>> the other repos are necessary to support importing the .diz files from
>>>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>>>> FDS related errors in the magic incantations for the new build. This is
>>>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>>>> from Solaris. In other words, this is Frankenstein's monster...
>>>>>
>>>>> Thanks to Staffan Larsen for providing an initial set of changes
>>>>> which I morphed into what you see here.
>>>>>
>>>>> Testing:
>>>>> - JPRT HSX build and test on all platforms; verification of .diz
>>>>> files in the MacOS X JPRT bundles
>>>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>>>> .diz files in the MacOS X JPRT bundles
>>>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>>>> repo build and test, but that no longer seems to work.
>>>>>
>>>>> As always, comments, questions and suggestions are welcome.
>>>>>
>>>>> Dan
>
From mike.duigou at oracle.com Tue Oct 1 10:29:25 2013
From: mike.duigou at oracle.com (mike.duigou at oracle.com)
Date: Tue, 01 Oct 2013 17:29:25 +0000
Subject: hg: jdk8/tl/jdk: 2 new changesets
Message-ID: <20131001173020.8476462C5E@hg.openjdk.java.net>
Changeset: 8cfb2bddd95e
Author: mduigou
Date: 2013-09-30 15:50 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8cfb2bddd95e
7057785: Add note about optional support of recursive methods for self-referential Collection/Map
Reviewed-by: scolebourne, darcy, mduigou
Contributed-by: Stephen Colebourne
! src/share/classes/java/util/Collection.java
! src/share/classes/java/util/Map.java
Changeset: f2e2326f787b
Author: mduigou
Date: 2013-10-01 10:23 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f2e2326f787b
8025067: Unconditionally throw NPE if null op provided to Arrays.parallelPrefix
Reviewed-by: henryjen, chegar, psandoz
! src/share/classes/java/util/Arrays.java
! test/java/util/Arrays/ParallelPrefix.java
From mike.duigou at oracle.com Tue Oct 1 10:37:55 2013
From: mike.duigou at oracle.com (mike.duigou at oracle.com)
Date: Tue, 01 Oct 2013 17:37:55 +0000
Subject: hg: jdk8/tl/jdk: 8025686: Update jdk repo netbeans projects to
support NetBeans 7.4 for Java 8 support
Message-ID: <20131001173807.4DC8762C60@hg.openjdk.java.net>
Changeset: c32ab940a183
Author: mduigou
Date: 2013-10-01 10:37 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c32ab940a183
8025686: Update jdk repo netbeans projects to support NetBeans 7.4 for Java 8 support
Reviewed-by: lancea, chegar
! make/netbeans/common/java-data-native.ent
! make/netbeans/common/java-data-no-native.ent
From staffan.larsen at oracle.com Tue Oct 1 11:46:58 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Tue, 1 Oct 2013 20:46:58 +0200
Subject: RFR (S): 8025427 jstat tests fails on 32-bit platforms
In-Reply-To: <7483E09E-5283-412F-BEA3-F7CC015A67DC@oracle.com>
References: <7483E09E-5283-412F-BEA3-F7CC015A67DC@oracle.com>
Message-ID:
Any Reviewer who can take a look?
Thanks,
/Staffan
On 27 sep 2013, at 23:59, Staffan Larsen wrote:
> This change makes jstat output '-' instead of '\ufffd' when the result of a calculation is NaN. '\ufffd' is typically not displayable in a terminal.
>
> This change also updates the tests to allow '-' as the output int the CCS (Compressed Class Space Space - Percent Used) column from -gcutil and -gccause. It can be hard to see from the diff but what I have done is change the regexp for that column from:
>
> [0-9]+\.[0-9]+
>
> to:
>
> ([0-9]+\.[0-9]+)|-
>
> Testing: Passes tests locally, currently running JPRT.
>
> webrev: http://cr.openjdk.java.net/~sla/8025427/webrev.00/
> bug: https://bugs.openjdk.java.net/browse/JDK-8025427
>
> Thanks,
> /Staffan
From zhengyu.gu at oracle.com Tue Oct 1 12:36:42 2013
From: zhengyu.gu at oracle.com (zhengyu.gu at oracle.com)
Date: Tue, 01 Oct 2013 19:36:42 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 3 new changesets
Message-ID: <20131001193649.1BF4E62C63@hg.openjdk.java.net>
Changeset: de059a14e159
Author: zgu
Date: 2013-10-01 08:54 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/de059a14e159
8022187: Missing ResourceMark crash when assertion using FormatBufferResource fails
Summary: Uses stack for the format buffer instead of resource memory
Reviewed-by: kvn, coleenp
! src/share/vm/utilities/array.hpp
Changeset: 90b27e931639
Author: zgu
Date: 2013-10-01 09:21 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/90b27e931639
Merge
Changeset: 31f0118ea584
Author: zgu
Date: 2013-10-01 11:06 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/31f0118ea584
Merge
From eric.mccorkle at oracle.com Tue Oct 1 14:27:00 2013
From: eric.mccorkle at oracle.com (eric.mccorkle at oracle.com)
Date: Tue, 01 Oct 2013 21:27:00 +0000
Subject: hg: jdk8/tl/jdk: 8024616: JSR292: lazily initialize core
NamedFunctions used for bootstrapping
Message-ID: <20131001212712.1AB2F62C75@hg.openjdk.java.net>
Changeset: 1ed675532589
Author: vlivanov
Date: 2013-09-18 20:12 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1ed675532589
8024616: JSR292: lazily initialize core NamedFunctions used for bootstrapping
Reviewed-by: jrose
! src/share/classes/java/lang/invoke/DirectMethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleImpl.java
From eric.mccorkle at oracle.com Tue Oct 1 14:36:18 2013
From: eric.mccorkle at oracle.com (eric.mccorkle at oracle.com)
Date: Tue, 01 Oct 2013 21:36:18 +0000
Subject: hg: jdk8/tl/jdk: 8021398:
j.l.r.Parameter.getAnnotatedType().getType() for not annotated
use of type returns null
Message-ID: <20131001213630.DA85162C78@hg.openjdk.java.net>
Changeset: bf1118ab775b
Author: emc
Date: 2013-10-01 17:35 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/bf1118ab775b
8021398: j.l.r.Parameter.getAnnotatedType().getType() for not annotated use of type returns null
Summary: Fixed issue with type annotation reflection framework that would cause getType of AnnotatedTypes to be null if no annotations were present.
Reviewed-by: darcy, jfranck
! src/share/classes/sun/reflect/annotation/TypeAnnotationParser.java
+ test/java/lang/reflect/Parameter/GetAnnotatedTypeTest.java
From eric.mccorkle at oracle.com Tue Oct 1 14:43:01 2013
From: eric.mccorkle at oracle.com (eric.mccorkle at oracle.com)
Date: Tue, 01 Oct 2013 21:43:01 +0000
Subject: hg: jdk8/tl/langtools: 8021339: Compile-time error during casting
array to intersection
Message-ID: <20131001214305.099F362C79@hg.openjdk.java.net>
Changeset: de1c5dbe6c28
Author: emc
Date: 2013-10-01 17:41 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/de1c5dbe6c28
8021339: Compile-time error during casting array to intersection
Summary: Add ability to have arrays in intersection types.
Reviewed-by: jjg, vromero
! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
+ test/tools/javac/ArraysInIntersections.java
+ test/tools/javac/InferArraysInIntersections.java
! test/tools/javac/generics/typevars/6680106/T6680106.out
From eric.mccorkle at oracle.com Tue Oct 1 14:24:14 2013
From: eric.mccorkle at oracle.com (eric.mccorkle at oracle.com)
Date: Tue, 01 Oct 2013 21:24:14 +0000
Subject: hg: jdk8/tl/jdk: 8001107: @Stable annotation for constant folding of
lazily evaluated variables
Message-ID: <20131001212426.B496562C73@hg.openjdk.java.net>
Changeset: 5a7bd9825c01
Author: vlivanov
Date: 2013-09-23 19:51 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5a7bd9825c01
8001107: @Stable annotation for constant folding of lazily evaluated variables
Reviewed-by: twisti, kvn, rbackman
Contributed-by: john.r.rose at oracle.com, vladimir.x.ivanov at oracle.com
! src/share/classes/java/lang/invoke/LambdaForm.java
! src/share/classes/java/lang/invoke/MethodType.java
! src/share/classes/java/lang/invoke/MethodTypeForm.java
+ src/share/classes/java/lang/invoke/Stable.java
From kumar.x.srinivasan at oracle.com Tue Oct 1 15:42:31 2013
From: kumar.x.srinivasan at oracle.com (kumar.x.srinivasan at oracle.com)
Date: Tue, 01 Oct 2013 22:42:31 +0000
Subject: hg: jdk8/tl/jdk: 8025342: NLS: unsupported translation format in
jar/pack/DriverResource.java
Message-ID: <20131001224245.5328862C7B@hg.openjdk.java.net>
Changeset: 84e7f6685319
Author: ksrini
Date: 2013-10-01 15:40 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/84e7f6685319
8025342: NLS: unsupported translation format in jar/pack/DriverResource.java
Reviewed-by: naoto, mfang
! src/share/classes/com/sun/java/util/jar/pack/Driver.java
! src/share/classes/com/sun/java/util/jar/pack/DriverResource.java
From john.r.rose at oracle.com Tue Oct 1 19:23:45 2013
From: john.r.rose at oracle.com (john.r.rose at oracle.com)
Date: Wed, 02 Oct 2013 02:23:45 +0000
Subject: hg: jdk8/tl/jdk: 8022701: Accessibility checking:
InvocationTargetException is thrown instead of IllegalAccessError
Message-ID: <20131002022421.327E062C86@hg.openjdk.java.net>
Changeset: d90928a89af5
Author: drchase
Date: 2013-09-27 13:32 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d90928a89af5
8022701: Accessibility checking: InvocationTargetException is thrown instead of IllegalAccessError
Summary: Inserted code to convert specific exceptions, case-by-case, plus a test.
Reviewed-by: jrose, twisti
! src/share/classes/java/lang/invoke/MethodHandleNatives.java
+ test/java/lang/invoke/8022701/BogoLoader.java
+ test/java/lang/invoke/8022701/InvokeSeveralWays.java
+ test/java/lang/invoke/8022701/Invoker.java
+ test/java/lang/invoke/8022701/MHIllegalAccess.java
+ test/java/lang/invoke/8022701/MethodSupplier.java
From david.holmes at oracle.com Tue Oct 1 19:52:40 2013
From: david.holmes at oracle.com (David Holmes)
Date: Wed, 02 Oct 2013 12:52:40 +1000
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <523D144E.4000002@oracle.com>
References: <523D144E.4000002@oracle.com>
Message-ID: <524B8A78.9040807@oracle.com>
Hi Dan,
Overall thumbs up. A couple of minor issues that need fixing. A few
meta-comments (I hate seeing all this stuff duplicated again and again.
David
-----
- common/autoconf/hotspot-spec.gmk.in
Seems a good simplification.
----
- common/autoconf/jdk-options.m4
No comment.
---
- common/makefiles/NativeCompilation.gmk
So JDK .diz support is phase 2? :)
The Windows changes here seem okay given that on windows a .debuginfo
file should never be in the target list.
---
- hotspot/make/Makefile
+ $(EXPORT_CLIENT_DIR)/%.dSYM:
$(MINIMAL1_BUILD_DIR)/%.dSYM
EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
For fun you can try building minimal on OSX, but I don't know how far
you will get:
--with-jvm-variants=client,server,minimal1
I'll point out obvious issues with minimal VM support anyway.
---
- hotspot/make/bsd/Makefile
No comment.
- hotspot/make/bsd/makefiles/buildtree.make
No comment.
- make/bsd/makefiles/defs.make
Note that the whole jdk6_or_earlier logic is defunct as this will never
be used for jdk6 or earlier. But best to clean all that up at the one time.
Sadly I never found a satisfactory solution to the multiplicity and
verbosity of the FDS messages, so OSX builds will now be afflicted by
them too.
328 else
329 EXPORT_LIST += $(EXPORT_MINIMAL_DIR)/libjvm.debuginfo
330 endif
This pre-existing minimal VM code needs to be modified to reference the
dSYM directory on OSX as per the client/server cases.
---
- hotspot/make/bsd/makefiles/dtrace.make
Note related to your changes but I don't think any of the "64" directory
stuff has any meaning outside of Solaris.
102 dsymutil $@
I think dsymutil should be assigned to a variable in the platform
defs.make as with other tools.
Would be nice if objcopy/dsymutil could be hidden behind a single
SYM_TOOL variables as well so there wasn't so much duplication of the
process. You could have a single set of instructions to invoke SYM_TOOL,
STRIP and ZIP (strip would be skipped of course because STRIP_POLICY
would never be set on osx). Just wishful thinking ...
---
- hotspot/make/bsd/makefiles/gcc.make
+ FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
should be
+ FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH))
Don't we need the USE_CLANG variations here as for linux?
---
- hotspot/make/bsd/makefiles/jsig.make
- hotspot/make/bsd/makefiles/saproc.make
Similar comments to dtrace.make
---
- make/bsd/makefiles/universal.gmk
I did not understand the additional logic here:
63 # Copy built non-universal binaries in place
64 $(UNIVERSAL_COPY_LIST):
65 BUILT_COPY_FILES="`find
$(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
2>/dev/null`"; \
66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
67 for i in $${BUILT_COPY_FILES}; do \
68 if [ -f $${i} ]; then \
69 $(MKDIR) -p $(shell dirname $@); \
70 $(CP) -R $${i} $@; \
71 fi; \
72 if [ -d $${i} ]; then \
73 $(MKDIR) -p $@; \
74 fi; \
75 done; \
76 fi
until I realized that foo.dSYM is a directory not a file! Even so don't
you want to copy the contents of the directory across ?
BTW: UNIVERSAL_COPY_LIST doesn't handle minimal VM.
---
- make/bsd/makefiles/vm.make
Similar comments to dtrace.make ref dsymutil.
---
- hotspot/make/defs.make
No comment.
---
- jdk/make/common/Defs-macosx.gmk
No comment
- jdk/makefiles/Tools.gmk
Not sure about this one. Logically is seems correct but up to now this
has been defined for everything without it seeming to cause a problem.
So why do we need to change it and what impact will it have?
David
-----
On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
> Greetings,
>
> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
> and ready for review:
>
> 7165611 implement Full Debug Symbols on MacOS X hotspot
> https://bugs.openjdk.java.net/browse/JDK-7165611
>
> Here is the JDK8/HSX-25 webrev URL:
>
> OpenJDK:
> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
> Internal:
> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>
> This webrev includes changes for the follow repos:
>
> jdk8
> jdk8/hotspot
> jdk8/jdk
> jdk8/jdk/make/closed
>
> Once these changes are approved, I'm planning to push them to
> RT_Baseline. From there, they can follow the normal path to
> Main_Baseline and eventually JDK8.
>
> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
> the other repos are necessary to support importing the .diz files from
> the MacOS X 'hotspot' build into the forest build. I also fixed a few
> FDS related errors in the magic incantations for the new build. This is
> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
> from Solaris. In other words, this is Frankenstein's monster...
>
> Thanks to Staffan Larsen for providing an initial set of changes
> which I morphed into what you see here.
>
> Testing:
> - JPRT HSX build and test on all platforms; verification of .diz
> files in the MacOS X JPRT bundles
> - JPRT JDK8 forest build and test on all platforms; verification of
> .diz files in the MacOS X JPRT bundles
> Note: In previous FDS changesets, I also did a standalone 'jdk'
> repo build and test, but that no longer seems to work.
>
> As always, comments, questions and suggestions are welcome.
>
> Dan
From coleen.phillimore at oracle.com Tue Oct 1 20:10:58 2013
From: coleen.phillimore at oracle.com (coleen.phillimore at oracle.com)
Date: Wed, 02 Oct 2013 03:10:58 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131002031105.5C7C062C87@hg.openjdk.java.net>
Changeset: 5b3b75d9eb2f
Author: coleenp
Date: 2013-10-01 14:23 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/5b3b75d9eb2f
8025570: Naked oop in test/serviceability/ParserTest
Summary: Fix for two naked objArrayOop(s) oops causing test failure
Reviewed-by: coleenp, ctornqvi
Contributed-by: lois.foltan at oracle.com
! src/share/vm/prims/wbtestmethods/parserTests.cpp
Changeset: f21415c32ca1
Author: coleenp
Date: 2013-10-01 15:41 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/f21415c32ca1
Merge
From alan.bateman at oracle.com Tue Oct 1 20:27:06 2013
From: alan.bateman at oracle.com (alan.bateman at oracle.com)
Date: Wed, 02 Oct 2013 03:27:06 +0000
Subject: hg: jdk8/tl: 8006843: org.w3c.dom.events.UIEvent.getView is specified
to return type that is not in the Java SE specification
Message-ID: <20131002032706.AFBCC62C89@hg.openjdk.java.net>
Changeset: 187a759c08ba
Author: alanb
Date: 2013-10-02 04:21 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/rev/187a759c08ba
8006843: org.w3c.dom.events.UIEvent.getView is specified to return type that is not in the Java SE specification
Reviewed-by: mduigou, tbell
! common/makefiles/javadoc/CORE_PKGS.gmk
From xuelei.fan at oracle.com Tue Oct 1 20:26:43 2013
From: xuelei.fan at oracle.com (xuelei.fan at oracle.com)
Date: Wed, 02 Oct 2013 03:26:43 +0000
Subject: hg: jdk8/tl/jdk: 8025123: SNI support in Kerberos cipher suites
Message-ID: <20131002032658.A714B62C88@hg.openjdk.java.net>
Changeset: 3fca37c636be
Author: xuelei
Date: 2013-10-01 20:25 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3fca37c636be
8025123: SNI support in Kerberos cipher suites
Reviewed-by: weijun, xuelei
Contributed-by: Artem Smotrakov
! src/share/classes/sun/security/ssl/ClientHandshaker.java
! src/share/classes/sun/security/ssl/Handshaker.java
! src/share/classes/sun/security/ssl/KerberosClientKeyExchange.java
! src/share/classes/sun/security/ssl/krb5/KerberosClientKeyExchangeImpl.java
! test/sun/security/krb5/auto/SSL.java
From masayoshi.okutsu at oracle.com Tue Oct 1 23:32:25 2013
From: masayoshi.okutsu at oracle.com (masayoshi.okutsu at oracle.com)
Date: Wed, 02 Oct 2013 06:32:25 +0000
Subject: hg: jdk8/tl/jdk: 6902861: (cal) GregorianCalendar roll WEEK_OF_YEAR
is broken for January 1 2010
Message-ID: <20131002063239.AC93662C8C@hg.openjdk.java.net>
Changeset: 914c29c10bce
Author: okutsu
Date: 2013-10-02 15:31 +0900
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/914c29c10bce
6902861: (cal) GregorianCalendar roll WEEK_OF_YEAR is broken for January 1 2010
Reviewed-by: peytoia
! src/share/classes/java/util/GregorianCalendar.java
+ test/java/util/Calendar/Bug6902861.java
From staffan.larsen at oracle.com Wed Oct 2 00:22:28 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Wed, 2 Oct 2013 09:22:28 +0200
Subject: RFR (S): 8016845: SA is unable to use hsdis on windows
In-Reply-To: <523C5BD3.1010106@oracle.com>
References: <523C5BD3.1010106@oracle.com>
Message-ID: <06A81151-E94D-4E81-99A9-8413FA509456@oracle.com>
Looks good!
Thanks,
/Staffan
On 20 sep 2013, at 16:29, Fredrik Arvidsson wrote:
> Please help me review this:
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8016845
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8016845/webrev.00/
>
> Small change was made in the sa.make file for windows to compile and link sadis.c in to sawindbg.dll providing JNI entrypoints needed to call the hsdis disassembler from SADB on windows. A small change in agent/src/share/classes/sun/jvm/hotspot/asm/Disassembler.java to have the correct library name when loading library depending if running on 32 or 64 bit platform.
>
> To test this you have to build the hsdis library yourself, since it cant be bundled due to license issues. Instructions can be found here: http://dropzone.nfshost.com/hsdis.htm (hint, I have pre-built binaries). When running disassembling in HSDB (using the 'dis' command in the console) the hsdis-amd64.dll/hsdis-i386.dll must be in the /bin directory of the JRE/JDK used.
>
> Cheers
> /Fredrik
From sean.coffey at oracle.com Wed Oct 2 01:22:34 2013
From: sean.coffey at oracle.com (sean.coffey at oracle.com)
Date: Wed, 02 Oct 2013 08:22:34 +0000
Subject: hg: jdk8/tl/jdk: 8024952: ClassCastException in
PlainSocketImpl.accept() when using custom socketImpl
Message-ID: <20131002082305.2A14B62C96@hg.openjdk.java.net>
Changeset: 368172cb6dc5
Author: coffeys
Date: 2013-10-02 09:21 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/368172cb6dc5
8024952: ClassCastException in PlainSocketImpl.accept() when using custom socketImpl
Reviewed-by: chegar
! src/windows/classes/java/net/PlainSocketImpl.java
+ test/java/net/PlainSocketImpl/CustomSocketImplFactory.java
From jaroslav.bachorik at oracle.com Wed Oct 2 01:47:26 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Wed, 02 Oct 2013 10:47:26 +0200
Subject: RFR 6523160: RuntimeMXBean.getUptime() returns negative values
Message-ID: <524BDD9E.1050100@oracle.com>
Hello,
currently the JVM uptime reported by the RuntimeMXBean is based on
System.currentTimeMillis() which makes it susceptible to changes of the
OS time (eg. changing timezone, NTP synchronization etc.). The uptime
should not depend on the system time and should be calculated using a
monotonic clock source.
There is already the way to get the actual JVM uptime in ticks. It is
accessible as Management::timestamp() and the ticks are convertible to
milliseconds using Management::ticks_to_ms(ts_ticks) thus making it very
easy to switch to the monotonic clock based uptime.
The patch consists of the hotspot and jdk parts.
For the hotspot a new constant needs to be introduced in
src/share/vm/services/jmm.h and the actual logic to obtain the uptime in
milliseconds is added in src/share/vm/services/management.cpp.
For the jdk the changes comprise of adding the necessary JNI bridging
methods in order to get the new uptime, introducing the same constant
that is used in hotspot and changes to mapfile-vers files in order to
properly build the native library.
Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
Thanks,
-JB-
From peter.allwin at oracle.com Wed Oct 2 01:49:04 2013
From: peter.allwin at oracle.com (Peter Allwin)
Date: Wed, 2 Oct 2013 10:49:04 +0200
Subject: RFR (S): 6313383: SA: Update jmap to support HPROF binary format
"JAVA PROFILE 1.0.2"
In-Reply-To: <523C4118.2050502@oracle.com>
References: <523C4118.2050502@oracle.com>
Message-ID: <4F092E8F-8002-4E02-9F75-519A3083AB96@oracle.com>
Hi Fredrik,
Looks great!
Thanks for fixing this,
/peter
On Sep 20, 2013, at 2:35 PM, Fredrik Arvidsson wrote:
> Hi
>
> Please help me and review the changes below:
>
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/6313383/webrev.00/
> Bug: https://bugs.openjdk.java.net/browse/JDK-6313383
>
> This change adds support for dumping large heaps (> 4G) using jmap by implementing the "JAVA PROFILE 1.0.2" file format with segmented heap dump records.
> The HPROF binary format specification can be found here: https://java.net/downloads/heap-snapshot/hprof-binary-format.html.
>
> I added a simple test to verify that heaps smaller than 2G are dumped using the "JAVA PROFILE 1.0.1" format. The last section in the test, aiming to test the format used when dumping heaps larger than 2G, is commented out since the test system didn't like that kind of heap sizes and ultimately failed (OOM and sometimes timeout). The test should be reintroduced once we can reliably support such tests in the test system.
>
> Thanks 'allwin' for hosting my review :)
>
> Cheers
> /Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131002/6d76ccd9/attachment.html
From mikael.gerdin at oracle.com Wed Oct 2 01:51:53 2013
From: mikael.gerdin at oracle.com (Mikael Gerdin)
Date: Wed, 02 Oct 2013 10:51:53 +0200
Subject: RFR (S): 8016845: SA is unable to use hsdis on windows
In-Reply-To: <523C5BD3.1010106@oracle.com>
References: <523C5BD3.1010106@oracle.com>
Message-ID: <524BDEA9.5020800@oracle.com>
Fredrik,
On 09/20/2013 04:29 PM, Fredrik Arvidsson wrote:
> Please help me review this:
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8016845
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8016845/webrev.00/
>
the change looks good to me.
>
> Small change was made in the sa.make file for windows to compile and
> link sadis.c in to sawindbg.dll providing JNI entrypoints needed to call
> the hsdis disassembler from SADB on windows. A small change in
> agent/src/share/classes/sun/jvm/hotspot/asm/Disassembler.java to have
> the correct library name when loading library depending if running on 32
> or 64 bit platform.
Thanks for fixing this!
/Mikael
>
> To test this you have to build the hsdis library yourself, since it cant
> be bundled due to license issues. Instructions can be found here:
> http://dropzone.nfshost.com/hsdis.htm (hint, I have pre-built binaries).
> When running disassembling in HSDB (using the 'dis' command in the
> console) the hsdis-amd64.dll/hsdis-i386.dll must be in the /bin
> directory of the JRE/JDK used.
>
> Cheers
> /Fredrik
From staffan.larsen at oracle.com Wed Oct 2 02:23:34 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Wed, 2 Oct 2013 11:23:34 +0200
Subject: RFR 6523160: RuntimeMXBean.getUptime() returns negative values
In-Reply-To: <524BDD9E.1050100@oracle.com>
References: <524BDD9E.1050100@oracle.com>
Message-ID: <4088022F-6550-4C95-86D5-640F2E737839@oracle.com>
Looks good!
Thanks,
/Staffan
On 2 okt 2013, at 10:47, Jaroslav Bachorik wrote:
> Hello,
>
> currently the JVM uptime reported by the RuntimeMXBean is based on System.currentTimeMillis() which makes it susceptible to changes of the OS time (eg. changing timezone, NTP synchronization etc.). The uptime should not depend on the system time and should be calculated using a monotonic clock source.
>
> There is already the way to get the actual JVM uptime in ticks. It is accessible as Management::timestamp() and the ticks are convertible to milliseconds using Management::ticks_to_ms(ts_ticks) thus making it very easy to switch to the monotonic clock based uptime.
>
> The patch consists of the hotspot and jdk parts.
>
> For the hotspot a new constant needs to be introduced in src/share/vm/services/jmm.h and the actual logic to obtain the uptime in milliseconds is added in src/share/vm/services/management.cpp.
>
> For the jdk the changes comprise of adding the necessary JNI bridging methods in order to get the new uptime, introducing the same constant that is used in hotspot and changes to mapfile-vers files in order to properly build the native library.
>
> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>
> Thanks,
>
> -JB-
From fredrik.arvidsson at oracle.com Wed Oct 2 02:28:19 2013
From: fredrik.arvidsson at oracle.com (Fredrik Arvidsson)
Date: Wed, 02 Oct 2013 11:28:19 +0200
Subject: RFR (S): JDK-8024423: JVMTI: GetLoadedClasses doesn't enumerate
anonymous classes
In-Reply-To: <524A7B07.1000300@oracle.com>
References: <5249643F.3030209@oracle.com> <524A7B07.1000300@oracle.com>
Message-ID: <524BE733.2070205@oracle.com>
Hi and thanks for all your comments.
I have simplified the code in *instanceKlass.cpp* like suggested and
here is a new webrev:
http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.01/
Regarding the need to synchronize the access to ClassLoaderDataGraph I
have come to the conclusion that it should be safe to call this without
any additional synchronization since newly loaded and added classes are
appended to the end of its 'list' of classes. This would mean that the
call could 'miss' the classes added during the collection phase, but
this is not a big issue. I hope that my conclusion is correct.
I believe that the JvmtiGetLoadedClasses::getClassLoaderClasses(...)
method is to be left alone this time since I got the impression that
only SystemDictionary 'knows' about initiating class loaders.
There is plenty of room for improvement and simplification of much of
the code in this area, but I feel that it must wait until another time.
The task to re-factor and simplify would quickly grow out of hands I'm
afraid :)
Cheers
/Fredrik
On 2013-10-01 09:34, serguei.spitsyn at oracle.com wrote:
> Hi Frederik,
>
>
> Thank you for jumping on this issue!
>
>
> *src/share/vm/oops/instanceKlass.cpp*
> 2333 int src_index = 0;
> 2334 while (src_index < src_length) {
> 2335 dest[dest_index++] = src[src_index++];
> 2336 }
> 2337
> 2338 // If we have a hash, append it
> 2339 if(hash_len > 0) {
> 2340 int hash_index = 0;
> 2341 while (hash_index < hash_len) {
> 2342 dest[dest_index++] = hash_buf[hash_index++];
> 2343 }
> 2344 }
>
> The above can be simplified a little bit:
> // Add the actual class name
> for (int src_index = 0; src_index < src_length; ) {
> dest[dest_index++] = src[src_index++];
> }
> // If we have a hash, append it
> for (int hash_index = 0; hash_index < hash_len; ) {
> dest[dest_index++] = hash_buf[hash_index++];
> }
>
> The conditionif(hash_len > 0) is covered by the loop itself.
>
> Style-related comments:
> -wrong indent at the lines: 2316-2319
> - need a space after the 'if' at the lines: 2315, 2339
>
>
> *src/share/vm/prims/jvmtiGetLoadedClasses.cpp
>
> *The copyright comment must be up-to-date.
> The comments at the lines 35-38, 258-260 are not valid anymore.
>
>
> > In this review I still have an outstanding unanswered question about
> > the need to synchronize the access to the:
>
> > ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::increment);
> > and
> > ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::add);
>
> This kind of walking is usually done at safepoint in a VM_Operation.
> You will find many examples in the jvmtiEnv.cpp, for instance, VM_GetAllStackTraces.
> The suggestion from Mikael is good too.
>
> Should this fix include the getClassLoaderClasses() as well?
> I'm still trying to realize the impact and consistency of this fix. :(
>
> What tests are you going to run for verification?
>
> Thanks,
> Serguei
> *
> *On 9/30/13 4:45 AM, Fredrik Arvidsson wrote:
>> Hi
>>
>> Please help me to review the changes below:
>>
>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024423
>> Webrev:
>> http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.00/
>>
>>
>> In this review I still have an outstanding unanswered question about
>> the need to synchronize the access to the:
>> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::increment);
>> and
>> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::add);
>>
>> calls in
>> http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.00/src/share/vm/prims/jvmtiGetLoadedClasses.cpp.udiff.html
>>
>> Please give me advise on this.
>>
>> There will be a review soon regarding re-enabling the tests that failed because of the above bug, see:
>> https://bugs.openjdk.java.net/browse/JDK-8025576
>>
>> Cheers
>> /Fredrik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131002/49255ad9/attachment-0001.html
From Christer.Burtus at delaval.com Wed Oct 2 02:35:42 2013
From: Christer.Burtus at delaval.com (Burtus, Christer)
Date: Wed, 2 Oct 2013 11:35:42 +0200
Subject: serviceability-dev Digest, Vol 71, Issue 7
In-Reply-To:
Message-ID:
----- Original Message -----
From: serviceability-dev-request at openjdk.java.net [mailto:serviceability-dev-request at openjdk.java.net]
Sent: Wednesday, October 02, 2013 11:27 AM W. Europe Standard Time
To: serviceability-dev at openjdk.java.net
Subject: serviceability-dev Digest, Vol 71, Issue 7
Send serviceability-dev mailing list submissions to
serviceability-dev at openjdk.java.net
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.openjdk.java.net/mailman/listinfo/serviceability-dev
or, via email, send a message with subject or body 'help' to
serviceability-dev-request at openjdk.java.net
You can reach the person managing the list at
serviceability-dev-owner at openjdk.java.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of serviceability-dev digest..."
Today's Topics:
1. hg: jdk8/tl/jdk: 8025123: SNI support in Kerberos cipher
suites (xuelei.fan at oracle.com)
2. hg: jdk8/tl/jdk: 6902861: (cal) GregorianCalendar roll
WEEK_OF_YEAR is broken for January 1 2010
(masayoshi.okutsu at oracle.com)
3. Re: RFR (S): 8016845: SA is unable to use hsdis on windows
(Staffan Larsen)
4. hg: jdk8/tl/jdk: 8024952: ClassCastException in
PlainSocketImpl.accept() when using custom socketImpl
(sean.coffey at oracle.com)
5. RFR 6523160: RuntimeMXBean.getUptime() returns negative
values (Jaroslav Bachorik)
6. Re: RFR (S): 6313383: SA: Update jmap to support HPROF binary
format "JAVA PROFILE 1.0.2" (Peter Allwin)
7. Re: RFR (S): 8016845: SA is unable to use hsdis on windows
(Mikael Gerdin)
8. Re: RFR 6523160: RuntimeMXBean.getUptime() returns negative
values (Staffan Larsen)
9. Re: RFR (S): JDK-8024423: JVMTI: GetLoadedClasses doesn't
enumerate anonymous classes (Fredrik Arvidsson)
----------------------------------------------------------------------
Message: 1
Date: Wed, 02 Oct 2013 03:26:43 +0000
From: xuelei.fan at oracle.com
Subject: hg: jdk8/tl/jdk: 8025123: SNI support in Kerberos cipher
suites
To: jdk8-changes at openjdk.java.net, compiler-dev at openjdk.java.net,
core-libs-dev at openjdk.java.net, serviceability-dev at openjdk.java.net,
security-dev at openjdk.java.net, net-dev at openjdk.java.net
Message-ID: <20131002032658.A714B62C88 at hg.openjdk.java.net>
Changeset: 3fca37c636be
Author: xuelei
Date: 2013-10-01 20:25 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3fca37c636be
8025123: SNI support in Kerberos cipher suites
Reviewed-by: weijun, xuelei
Contributed-by: Artem Smotrakov
! src/share/classes/sun/security/ssl/ClientHandshaker.java
! src/share/classes/sun/security/ssl/Handshaker.java
! src/share/classes/sun/security/ssl/KerberosClientKeyExchange.java
! src/share/classes/sun/security/ssl/krb5/KerberosClientKeyExchangeImpl.java
! test/sun/security/krb5/auto/SSL.java
------------------------------
Message: 2
Date: Wed, 02 Oct 2013 06:32:25 +0000
From: masayoshi.okutsu at oracle.com
Subject: hg: jdk8/tl/jdk: 6902861: (cal) GregorianCalendar roll
WEEK_OF_YEAR is broken for January 1 2010
To: jdk8-changes at openjdk.java.net, compiler-dev at openjdk.java.net,
core-libs-dev at openjdk.java.net, serviceability-dev at openjdk.java.net,
security-dev at openjdk.java.net, net-dev at openjdk.java.net
Message-ID: <20131002063239.AC93662C8C at hg.openjdk.java.net>
Changeset: 914c29c10bce
Author: okutsu
Date: 2013-10-02 15:31 +0900
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/914c29c10bce
6902861: (cal) GregorianCalendar roll WEEK_OF_YEAR is broken for January 1 2010
Reviewed-by: peytoia
! src/share/classes/java/util/GregorianCalendar.java
+ test/java/util/Calendar/Bug6902861.java
------------------------------
Message: 3
Date: Wed, 2 Oct 2013 09:22:28 +0200
From: Staffan Larsen
Subject: Re: RFR (S): 8016845: SA is unable to use hsdis on windows
To: Fredrik Arvidsson
Cc: serviceability-dev at openjdk.java.net,
hotspot-runtime-dev at openjdk.java.net
Message-ID: <06A81151-E94D-4E81-99A9-8413FA509456 at oracle.com>
Content-Type: text/plain; charset=iso-8859-1
Looks good!
Thanks,
/Staffan
On 20 sep 2013, at 16:29, Fredrik Arvidsson wrote:
> Please help me review this:
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8016845
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8016845/webrev.00/
>
> Small change was made in the sa.make file for windows to compile and link sadis.c in to sawindbg.dll providing JNI entrypoints needed to call the hsdis disassembler from SADB on windows. A small change in agent/src/share/classes/sun/jvm/hotspot/asm/Disassembler.java to have the correct library name when loading library depending if running on 32 or 64 bit platform.
>
> To test this you have to build the hsdis library yourself, since it cant be bundled due to license issues. Instructions can be found here: http://dropzone.nfshost.com/hsdis.htm (hint, I have pre-built binaries). When running disassembling in HSDB (using the 'dis' command in the console) the hsdis-amd64.dll/hsdis-i386.dll must be in the /bin directory of the JRE/JDK used.
>
> Cheers
> /Fredrik
------------------------------
Message: 4
Date: Wed, 02 Oct 2013 08:22:34 +0000
From: sean.coffey at oracle.com
Subject: hg: jdk8/tl/jdk: 8024952: ClassCastException in
PlainSocketImpl.accept() when using custom socketImpl
To: jdk8-changes at openjdk.java.net, compiler-dev at openjdk.java.net,
core-libs-dev at openjdk.java.net, serviceability-dev at openjdk.java.net,
security-dev at openjdk.java.net, net-dev at openjdk.java.net
Message-ID: <20131002082305.2A14B62C96 at hg.openjdk.java.net>
Changeset: 368172cb6dc5
Author: coffeys
Date: 2013-10-02 09:21 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/368172cb6dc5
8024952: ClassCastException in PlainSocketImpl.accept() when using custom socketImpl
Reviewed-by: chegar
! src/windows/classes/java/net/PlainSocketImpl.java
+ test/java/net/PlainSocketImpl/CustomSocketImplFactory.java
------------------------------
Message: 5
Date: Wed, 02 Oct 2013 10:47:26 +0200
From: Jaroslav Bachorik
Subject: RFR 6523160: RuntimeMXBean.getUptime() returns negative
values
To: "serviceability-dev at openjdk.java.net
serviceability-dev at openjdk.java.net"
, jmx-dev at openjdk.java.net
Message-ID: <524BDD9E.1050100 at oracle.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
currently the JVM uptime reported by the RuntimeMXBean is based on
System.currentTimeMillis() which makes it susceptible to changes of the
OS time (eg. changing timezone, NTP synchronization etc.). The uptime
should not depend on the system time and should be calculated using a
monotonic clock source.
There is already the way to get the actual JVM uptime in ticks. It is
accessible as Management::timestamp() and the ticks are convertible to
milliseconds using Management::ticks_to_ms(ts_ticks) thus making it very
easy to switch to the monotonic clock based uptime.
The patch consists of the hotspot and jdk parts.
For the hotspot a new constant needs to be introduced in
src/share/vm/services/jmm.h and the actual logic to obtain the uptime in
milliseconds is added in src/share/vm/services/management.cpp.
For the jdk the changes comprise of adding the necessary JNI bridging
methods in order to get the new uptime, introducing the same constant
that is used in hotspot and changes to mapfile-vers files in order to
properly build the native library.
Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
Thanks,
-JB-
------------------------------
Message: 6
Date: Wed, 2 Oct 2013 10:49:04 +0200
From: Peter Allwin
Subject: Re: RFR (S): 6313383: SA: Update jmap to support HPROF binary
format "JAVA PROFILE 1.0.2"
To: Fredrik Arvidsson
Cc: serviceability-dev at openjdk.java.net,
hotspot-runtime-dev at openjdk.java.net
Message-ID: <4F092E8F-8002-4E02-9F75-519A3083AB96 at oracle.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Fredrik,
Looks great!
Thanks for fixing this,
/peter
On Sep 20, 2013, at 2:35 PM, Fredrik Arvidsson wrote:
> Hi
>
> Please help me and review the changes below:
>
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/6313383/webrev.00/
> Bug: https://bugs.openjdk.java.net/browse/JDK-6313383
>
> This change adds support for dumping large heaps (> 4G) using jmap by implementing the "JAVA PROFILE 1.0.2" file format with segmented heap dump records.
> The HPROF binary format specification can be found here: https://java.net/downloads/heap-snapshot/hprof-binary-format.html.
>
> I added a simple test to verify that heaps smaller than 2G are dumped using the "JAVA PROFILE 1.0.1" format. The last section in the test, aiming to test the format used when dumping heaps larger than 2G, is commented out since the test system didn't like that kind of heap sizes and ultimately failed (OOM and sometimes timeout). The test should be reintroduced once we can reliably support such tests in the test system.
>
> Thanks 'allwin' for hosting my review :)
>
> Cheers
> /Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131002/6d76ccd9/attachment-0001.html
------------------------------
Message: 7
Date: Wed, 02 Oct 2013 10:51:53 +0200
From: Mikael Gerdin
Subject: Re: RFR (S): 8016845: SA is unable to use hsdis on windows
To: Fredrik Arvidsson ,
serviceability-dev at openjdk.java.net,
hotspot-runtime-dev at openjdk.java.net
Message-ID: <524BDEA9.5020800 at oracle.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Fredrik,
On 09/20/2013 04:29 PM, Fredrik Arvidsson wrote:
> Please help me review this:
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8016845
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8016845/webrev.00/
>
the change looks good to me.
>
> Small change was made in the sa.make file for windows to compile and
> link sadis.c in to sawindbg.dll providing JNI entrypoints needed to call
> the hsdis disassembler from SADB on windows. A small change in
> agent/src/share/classes/sun/jvm/hotspot/asm/Disassembler.java to have
> the correct library name when loading library depending if running on 32
> or 64 bit platform.
Thanks for fixing this!
/Mikael
>
> To test this you have to build the hsdis library yourself, since it cant
> be bundled due to license issues. Instructions can be found here:
> http://dropzone.nfshost.com/hsdis.htm (hint, I have pre-built binaries).
> When running disassembling in HSDB (using the 'dis' command in the
> console) the hsdis-amd64.dll/hsdis-i386.dll must be in the /bin
> directory of the JRE/JDK used.
>
> Cheers
> /Fredrik
------------------------------
Message: 8
Date: Wed, 2 Oct 2013 11:23:34 +0200
From: Staffan Larsen
Subject: Re: RFR 6523160: RuntimeMXBean.getUptime() returns negative
values
To: Jaroslav Bachorik
Cc: "serviceability-dev at openjdk.java.net
serviceability-dev at openjdk.java.net"
, jmx-dev at openjdk.java.net
Message-ID: <4088022F-6550-4C95-86D5-640F2E737839 at oracle.com>
Content-Type: text/plain; charset=iso-8859-1
Looks good!
Thanks,
/Staffan
On 2 okt 2013, at 10:47, Jaroslav Bachorik wrote:
> Hello,
>
> currently the JVM uptime reported by the RuntimeMXBean is based on System.currentTimeMillis() which makes it susceptible to changes of the OS time (eg. changing timezone, NTP synchronization etc.). The uptime should not depend on the system time and should be calculated using a monotonic clock source.
>
> There is already the way to get the actual JVM uptime in ticks. It is accessible as Management::timestamp() and the ticks are convertible to milliseconds using Management::ticks_to_ms(ts_ticks) thus making it very easy to switch to the monotonic clock based uptime.
>
> The patch consists of the hotspot and jdk parts.
>
> For the hotspot a new constant needs to be introduced in src/share/vm/services/jmm.h and the actual logic to obtain the uptime in milliseconds is added in src/share/vm/services/management.cpp.
>
> For the jdk the changes comprise of adding the necessary JNI bridging methods in order to get the new uptime, introducing the same constant that is used in hotspot and changes to mapfile-vers files in order to properly build the native library.
>
> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>
> Thanks,
>
> -JB-
------------------------------
Message: 9
Date: Wed, 02 Oct 2013 11:28:19 +0200
From: Fredrik Arvidsson
Subject: Re: RFR (S): JDK-8024423: JVMTI: GetLoadedClasses doesn't
enumerate anonymous classes
To: "serguei.spitsyn at oracle.com"
Cc: serviceability-dev at openjdk.java.net,
hotspot-gc-dev at openjdk.java.net, hotspot-runtime-dev at openjdk.java.net
Message-ID: <524BE733.2070205 at oracle.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi and thanks for all your comments.
I have simplified the code in *instanceKlass.cpp* like suggested and
here is a new webrev:
http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.01/
Regarding the need to synchronize the access to ClassLoaderDataGraph I
have come to the conclusion that it should be safe to call this without
any additional synchronization since newly loaded and added classes are
appended to the end of its 'list' of classes. This would mean that the
call could 'miss' the classes added during the collection phase, but
this is not a big issue. I hope that my conclusion is correct.
I believe that the JvmtiGetLoadedClasses::getClassLoaderClasses(...)
method is to be left alone this time since I got the impression that
only SystemDictionary 'knows' about initiating class loaders.
There is plenty of room for improvement and simplification of much of
the code in this area, but I feel that it must wait until another time.
The task to re-factor and simplify would quickly grow out of hands I'm
afraid :)
Cheers
/Fredrik
On 2013-10-01 09:34, serguei.spitsyn at oracle.com wrote:
> Hi Frederik,
>
>
> Thank you for jumping on this issue!
>
>
> *src/share/vm/oops/instanceKlass.cpp*
> 2333 int src_index = 0;
> 2334 while (src_index < src_length) {
> 2335 dest[dest_index++] = src[src_index++];
> 2336 }
> 2337
> 2338 // If we have a hash, append it
> 2339 if(hash_len > 0) {
> 2340 int hash_index = 0;
> 2341 while (hash_index < hash_len) {
> 2342 dest[dest_index++] = hash_buf[hash_index++];
> 2343 }
> 2344 }
>
> The above can be simplified a little bit:
> // Add the actual class name
> for (int src_index = 0; src_index < src_length; ) {
> dest[dest_index++] = src[src_index++];
> }
> // If we have a hash, append it
> for (int hash_index = 0; hash_index < hash_len; ) {
> dest[dest_index++] = hash_buf[hash_index++];
> }
>
> The conditionif(hash_len > 0) is covered by the loop itself.
>
> Style-related comments:
> -wrong indent at the lines: 2316-2319
> - need a space after the 'if' at the lines: 2315, 2339
>
>
> *src/share/vm/prims/jvmtiGetLoadedClasses.cpp
>
> *The copyright comment must be up-to-date.
> The comments at the lines 35-38, 258-260 are not valid anymore.
>
>
> > In this review I still have an outstanding unanswered question about
> > the need to synchronize the access to the:
>
> > ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::increment);
> > and
> > ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::add);
>
> This kind of walking is usually done at safepoint in a VM_Operation.
> You will find many examples in the jvmtiEnv.cpp, for instance, VM_GetAllStackTraces.
> The suggestion from Mikael is good too.
>
> Should this fix include the getClassLoaderClasses() as well?
> I'm still trying to realize the impact and consistency of this fix. :(
>
> What tests are you going to run for verification?
>
> Thanks,
> Serguei
> *
> *On 9/30/13 4:45 AM, Fredrik Arvidsson wrote:
>> Hi
>>
>> Please help me to review the changes below:
>>
>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024423
>> Webrev:
>> http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.00/
>>
>>
>> In this review I still have an outstanding unanswered question about
>> the need to synchronize the access to the:
>> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::increment);
>> and
>> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::add);
>>
>> calls in
>> http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.00/src/share/vm/prims/jvmtiGetLoadedClasses.cpp.udiff.html
>>
>> Please give me advise on this.
>>
>> There will be a review soon regarding re-enabling the tests that failed because of the above bug, see:
>> https://bugs.openjdk.java.net/browse/JDK-8025576
>>
>> Cheers
>> /Fredrik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131002/49255ad9/attachment.html
End of serviceability-dev Digest, Vol 71, Issue 7
*************************************************
"This is an e-mail from a DeLaval company. This e-mail is confidential
and may also be privileged. Please delete the email and notify us
immediately if you are not the intended recipient. DeLaval does not
enter into contracts or contractual obligations via electronic mail,
unless otherwise agreed in writing between parties concerned.
Thank you."
From masayoshi.okutsu at oracle.com Wed Oct 2 01:58:02 2013
From: masayoshi.okutsu at oracle.com (masayoshi.okutsu at oracle.com)
Date: Wed, 02 Oct 2013 08:58:02 +0000
Subject: hg: jdk8/tl/jdk: 8022666: java.util.Calendar.set(int, int, int, int,
int, int) documentation typo
Message-ID: <20131002085900.D4ADF62C97@hg.openjdk.java.net>
Changeset: 82e3150778e0
Author: okutsu
Date: 2013-10-02 17:57 +0900
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/82e3150778e0
8022666: java.util.Calendar.set(int,int,int,int,int,int) documentation typo
Reviewed-by: peytoia
! src/share/classes/java/util/Calendar.java
From jaroslav.bachorik at oracle.com Wed Oct 2 03:55:03 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Wed, 02 Oct 2013 12:55:03 +0200
Subject: jmx-dev RFR: 8024613
javax/management/remote/mandatory/connection/RMIConnector_NPETest.java
failing intermittently
In-Reply-To: <523C459A.3080303@oracle.com>
References: <523C3F8B.6080002@oracle.com> <523C459A.3080303@oracle.com>
Message-ID: <524BFB87.10808@oracle.com>
On 20.9.2013 14:54, shanliang wrote:
> Jaroslav,
>
> It is a good idea to use the RMI Testlibrary.
>
> Better to call:
> agent.close();
>
> at Line 55, close the RMIRegistry (rmid.shutdown(rmidPort) Line 55)
> does not ensure the JMX connector doing full clean, it is always better
> to do clean within a test.
Thanks. Implemented.
http://cr.openjdk.java.net/~jbachorik/8024613/webrev.01
-JB-
>
> Shanliang
>
>
> Jaroslav Bachorik wrote:
>> Please, review the following change for JDK-8024613
>>
>> Issue: https://bugs.openjdk.java.net/browse/JDK-8024613
>> Webrev: http://cr.openjdk.java.net/~jbachorik/8024613/webrev.00/
>>
>>
>> The patch takes care of intermittent test failures caused by timing
>> issues when starting the RMID process. It could happen that the RMID
>> process hasn't been properly initialized in the timeframe of 5 seconds
>> and the test would fail.
>>
>> The patch replaces the home-brewed RMID process management with the
>> one available in the RMI Testlibrary which is used by more tests and
>> therefore should be more stable.
>>
>> Thanks,
>>
>> -JB-
>
From jaroslav.bachorik at oracle.com Wed Oct 2 03:57:06 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Wed, 02 Oct 2013 12:57:06 +0200
Subject: [ping] Re: jmx-dev RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <523B0B30.4020003@oracle.com>
References: <52308ECC.1050304@oracle.com> <523138CB.9040401@oracle.com>
<52317782.1060300@oracle.com> <523179C8.50606@oracle.com>
<5231CCE4.7060902@oracle.com> <5231DA1B.4070706@oracle.com>
<5231DE69.7090309@oracle.com> <523B0B30.4020003@oracle.com>
Message-ID: <524BFC02.4050800@oracle.com>
On 19.9.2013 16:33, Jaroslav Bachorik wrote:
> The updated webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>
> I've moved some of the functionality to the testlibrary.
>
> -JB -
>
> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>> Jaroslav,
>>>
>>> CustomLauncherTest.java:
>>>
>>> 102: this check could be moved to switch at ll. 108
>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>> unset.
>> Good idea. Thanks.
>>
>>> 129: I would prefer don't have pattern like this one ever in shell
>>> script. Could you prepare a list of VM's to check and just loop over it?
>>> It makes test better readable. Also I think nowdays we can always use
>>> server VM.
>> I tried to mirror the original shell test as closely as possible. It
>> would be nice if we could rely on the "server" vm only. Definitely more
>> readable.
>>
>> -JB-
>>
>>> -Dmitry
>>>
>>>
>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>> Hi Jaroslav,
>>>>>>>
>>>>>>> You need a copyright notice in the new file.
>>>>>>>
>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>> it to
>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to come
>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>
>>>>>>> Is there a reason this test can't run on OSX? I know it would need
>>>>>>> further modification but was wondering if there is something
>>>>>>> inherent in
>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>
>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>> hotspot
>>>>>>> test library's process tools available. :(
>>>>>> We have some, is there an obvious gap?
>>>>>>
>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>
>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>
>>>>> Please, stand by for the updated webrev.
>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>> application can recognize its own PID and print it to its stdout. The
>>>> main application then just reads the stdout to parse the PID. No need
>>>> for JCMD any more.
>>>>
>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>> property. According to the jtreg web documentation
>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>> "test.java"
>>>> system property should be available but in fact is not. But it seems
>>>> that the testlibrary uses "test.jdk" system property too.
>>>>
>>>> The test does not run on OSX because nobody built the launcher
>>>> binary :)
>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>> linux-amd64 launcher while working on the test.
>>>>
>>>> While working with the test library I realized I was missing a crucial
>>>> feature (at least for my purposes) - waiting for a certain message to
>>>> appear in the stdout/stderr of the launched process. Very often I need
>>>> to wait for the target process to get to certain point before the test
>>>> can be allowed to continue - and the point is indicated by a message in
>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>> analyzed after the target process died - and are not suitable for this
>>>> kind of usage.
>>>>
>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>
>>>>> -JB-
>>>>>
>>>>>>
>>>>>> -Chris.
>>>>>>
>>>>>>> David
>>>>>>> -----
>>>>>>>
>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>
>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>
>>>>>>>> In order to fix this the test is rewritten in Java - the original
>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>> similarity
>>>>>>>> between the *.sh and *.java file so one needs to go through the new
>>>>>>>> source in whole.
>>>>>>>>
>>>>>>>> The changes in "launcher" files are all about adding permissions to
>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Issue : JDK-8004926
>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>
>>>>>>>> -JB-
>>>>>>>>
>>>
>
From jaroslav.bachorik at oracle.com Wed Oct 2 03:59:33 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Wed, 02 Oct 2013 12:59:33 +0200
Subject: [ping] Re: RFR: 8022220 Intermittent test failures in
javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
In-Reply-To: <52308A5B.8020206@oracle.com>
References: <52308389.6060001@oracle.com> <523086E2.4050307@oracle.com>
<52308A5B.8020206@oracle.com>
Message-ID: <524BFC95.60605@oracle.com>
On 11.9.2013 17:20, Jaroslav Bachorik wrote:
> On 09/11/2013 05:06 PM, shanliang wrote:
>> The fix looks OK for me.
>>
>> I am wondering that in case of loopback address, is it better to always
>> using "127.0.0.1" to generate a connectionId? this will make sure to
>> have a unique id.
>
> I am afraid we are getting the 127.0.1.1 variant from RMI
> (java.rmi.server.RemoteServer#getClientHost()). I don't know what else
> might break if we start fiddling around with it. For now I would better
> keep it the simplest possible.
>
> -JB-
>
>>
>> Shanliang
>>
>> Jaroslav Bachorik wrote:
>>> Please, review this simple patch for an intermittently failing test.
>>>
>>> The test fails in cases when the connection loopback is resolved to be
>>> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu. The
>>> test does not anticipate this possibility and requires the loopback
>>> address to be exactly 127.0.0.1
>>>
>>> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
>>> consider them non equal even though they are both the same loopback. The
>>> patch adds a bit of flexibility to the test allowing for any two valid
>>> loopback addresses (127.0.0.0/8) to be equal.
>>>
>>> Issue : JDK-8022220
>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>>>
>>> Thanks,
>>>
>>> -JB-
>>>
>>
>
From paul.sandoz at oracle.com Wed Oct 2 05:25:58 2013
From: paul.sandoz at oracle.com (paul.sandoz at oracle.com)
Date: Wed, 02 Oct 2013 12:25:58 +0000
Subject: hg: jdk8/tl/jdk: 8025535: Unsafe typecast in
java.util.stream.SortedOps
Message-ID: <20131002122644.6D9B862C9D@hg.openjdk.java.net>
Changeset: e1b04fd49204
Author: psandoz
Date: 2013-10-01 18:20 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e1b04fd49204
8025535: Unsafe typecast in java.util.stream.SortedOps
Reviewed-by: mduigou, chegar
! src/share/classes/java/util/stream/SortedOps.java
! test/java/util/stream/test/org/openjdk/tests/java/util/stream/SortedOpTest.java
From dmitry.samersoff at oracle.com Wed Oct 2 07:11:02 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Wed, 02 Oct 2013 18:11:02 +0400
Subject: jmx-dev RFR: 8022220 Intermittent test failures in
javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
In-Reply-To: <52308389.6060001@oracle.com>
References: <52308389.6060001@oracle.com>
Message-ID: <524C2976.8020109@oracle.com>
Jaroslav,
As a far as loopback address could be resolved to any of 127.0.0.0/8
client and server have to use the same loopback address.
Generally speaking it's not required for 127.0.1.1 to be able to talk to
127.0.0.1 and we are in risk to get a weird fail instead of clear error
message.
-Dmitry
On 2013-09-11 18:51, Jaroslav Bachorik wrote:
> Please, review this simple patch for an intermittently failing test.
>
> The test fails in cases when the connection loopback is resolved to be
> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu. The
> test does not anticipate this possibility and requires the loopback
> address to be exactly 127.0.0.1
>
> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
> consider them non equal even though they are both the same loopback. The
> patch adds a bit of flexibility to the test allowing for any two valid
> loopback addresses (127.0.0.0/8) to be equal.
>
> Issue : JDK-8022220
> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>
> 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.
From ron.durbin at oracle.com Wed Oct 2 07:44:50 2013
From: ron.durbin at oracle.com (Ron Durbin)
Date: Wed, 2 Oct 2013 07:44:50 -0700 (PDT)
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <524B8A78.9040807@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
Message-ID:
Dan
You have my thumbs up changes look good
> -----Original Message-----
> From: David Holmes
> Sent: Tuesday, October 01, 2013 8:53 PM
> To: Daniel Daugherty
> Cc: serviceability-dev at openjdk.java.net; build-dev; hotspot-runtime-dev at openjdk.java.net
> Subject: Re: code review round 0 for Full Debug Symbols on MacOS X hotspot (7165611)
>
> Hi Dan,
>
> Overall thumbs up. A couple of minor issues that need fixing. A few meta-comments (I hate
> seeing all this stuff duplicated again and again.
>
> David
> -----
>
> - common/autoconf/hotspot-spec.gmk.in
>
> Seems a good simplification.
>
> ----
>
> - common/autoconf/jdk-options.m4
>
> No comment.
>
> ---
>
> - common/makefiles/NativeCompilation.gmk
>
> So JDK .diz support is phase 2? :)
>
> The Windows changes here seem okay given that on windows a .debuginfo file should never be
> in the target list.
>
> ---
>
> - hotspot/make/Makefile
>
> + $(EXPORT_CLIENT_DIR)/%.dSYM:
> $(MINIMAL1_BUILD_DIR)/%.dSYM
>
> EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
>
> For fun you can try building minimal on OSX, but I don't know how far you will get:
>
> --with-jvm-variants=client,server,minimal1
>
> I'll point out obvious issues with minimal VM support anyway.
>
> ---
>
> - hotspot/make/bsd/Makefile
>
> No comment.
>
> - hotspot/make/bsd/makefiles/buildtree.make
>
> No comment.
>
> - make/bsd/makefiles/defs.make
>
> Note that the whole jdk6_or_earlier logic is defunct as this will never be used for jdk6 or
> earlier. But best to clean all that up at the one time.
>
> Sadly I never found a satisfactory solution to the multiplicity and verbosity of the FDS
> messages, so OSX builds will now be afflicted by them too.
>
> 328 else
> 329 EXPORT_LIST += $(EXPORT_MINIMAL_DIR)/libjvm.debuginfo
> 330 endif
>
> This pre-existing minimal VM code needs to be modified to reference the dSYM directory on
> OSX as per the client/server cases.
>
> ---
>
> - hotspot/make/bsd/makefiles/dtrace.make
>
> Note related to your changes but I don't think any of the "64" directory stuff has any
> meaning outside of Solaris.
>
> 102 dsymutil $@
>
> I think dsymutil should be assigned to a variable in the platform defs.make as with other
> tools.
>
> Would be nice if objcopy/dsymutil could be hidden behind a single SYM_TOOL variables as well
> so there wasn't so much duplication of the process. You could have a single set of
> instructions to invoke SYM_TOOL, STRIP and ZIP (strip would be skipped of course because
> STRIP_POLICY would never be set on osx). Just wishful thinking ...
>
> ---
>
> - hotspot/make/bsd/makefiles/gcc.make
>
> + FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
>
> should be
>
> + FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH))
>
> Don't we need the USE_CLANG variations here as for linux?
>
> ---
>
> - hotspot/make/bsd/makefiles/jsig.make
> - hotspot/make/bsd/makefiles/saproc.make
>
> Similar comments to dtrace.make
>
> ---
>
> - make/bsd/makefiles/universal.gmk
>
> I did not understand the additional logic here:
>
> 63 # Copy built non-universal binaries in place
> 64 $(UNIVERSAL_COPY_LIST):
> 65 BUILT_COPY_FILES="`find
> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
> 2>/dev/null`"; \
> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
> 67 for i in $${BUILT_COPY_FILES}; do \
> 68 if [ -f $${i} ]; then \
> 69 $(MKDIR) -p $(shell dirname $@); \
> 70 $(CP) -R $${i} $@; \
> 71 fi; \
> 72 if [ -d $${i} ]; then \
> 73 $(MKDIR) -p $@; \
> 74 fi; \
> 75 done; \
> 76 fi
>
> until I realized that foo.dSYM is a directory not a file! Even so don't
> you want to copy the contents of the directory across ?
>
> BTW: UNIVERSAL_COPY_LIST doesn't handle minimal VM.
>
> ---
>
> - make/bsd/makefiles/vm.make
>
> Similar comments to dtrace.make ref dsymutil.
>
> ---
>
> - hotspot/make/defs.make
>
> No comment.
>
> ---
>
> - jdk/make/common/Defs-macosx.gmk
>
> No comment
>
> - jdk/makefiles/Tools.gmk
>
> Not sure about this one. Logically is seems correct but up to now this
> has been defined for everything without it seeming to cause a problem.
> So why do we need to change it and what impact will it have?
>
> David
> -----
>
> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
> > Greetings,
> >
> > I have the initial support for Full Debug Symbols (FDS) on MacOS X done
> > and ready for review:
> >
> > 7165611 implement Full Debug Symbols on MacOS X hotspot
> > https://bugs.openjdk.java.net/browse/JDK-7165611
> >
> > Here is the JDK8/HSX-25 webrev URL:
> >
> > OpenJDK:
> > http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
> > Internal:
> > http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
> >
> > This webrev includes changes for the follow repos:
> >
> > jdk8
> > jdk8/hotspot
> > jdk8/jdk
> > jdk8/jdk/make/closed
> >
> > Once these changes are approved, I'm planning to push them to
> > RT_Baseline. From there, they can follow the normal path to
> > Main_Baseline and eventually JDK8.
> >
> > This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
> > the other repos are necessary to support importing the .diz files from
> > the MacOS X 'hotspot' build into the forest build. I also fixed a few
> > FDS related errors in the magic incantations for the new build. This is
> > mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
> > from Solaris. In other words, this is Frankenstein's monster...
> >
> > Thanks to Staffan Larsen for providing an initial set of changes
> > which I morphed into what you see here.
> >
> > Testing:
> > - JPRT HSX build and test on all platforms; verification of .diz
> > files in the MacOS X JPRT bundles
> > - JPRT JDK8 forest build and test on all platforms; verification of
> > .diz files in the MacOS X JPRT bundles
> > Note: In previous FDS changesets, I also did a standalone 'jdk'
> > repo build and test, but that no longer seems to work.
> >
> > As always, comments, questions and suggestions are welcome.
> >
> > Dan
From staffan.larsen at oracle.com Wed Oct 2 05:37:32 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Wed, 02 Oct 2013 12:37:32 +0000
Subject: hg: jdk8/tl/jdk: 6696975: JTop plugin fails if connected readonly to
target JVM
Message-ID: <20131002123745.087CF62C9E@hg.openjdk.java.net>
Changeset: 3bb89c509d59
Author: egahlin
Date: 2013-10-01 17:48 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3bb89c509d59
6696975: JTop plugin fails if connected readonly to target JVM
Reviewed-by: mchung, jbachorik, sla, sjiang
! src/share/demo/management/JTop/JTop.java
From daniel.daugherty at oracle.com Wed Oct 2 08:32:55 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Wed, 02 Oct 2013 09:32:55 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <524B8A78.9040807@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
Message-ID: <524C3CA7.5070705@oracle.com>
David,
Thanks for the thorough review (as always)!
It will take me a while to process all the comments, but another
reply will be forthcoming.
Dan
On 10/1/13 8:52 PM, David Holmes wrote:
> Hi Dan,
>
> Overall thumbs up. A couple of minor issues that need fixing. A few
> meta-comments (I hate seeing all this stuff duplicated again and again.
>
> David
> -----
>
> - common/autoconf/hotspot-spec.gmk.in
>
> Seems a good simplification.
>
> ----
>
> - common/autoconf/jdk-options.m4
>
> No comment.
>
> ---
>
> - common/makefiles/NativeCompilation.gmk
>
> So JDK .diz support is phase 2? :)
>
> The Windows changes here seem okay given that on windows a .debuginfo
> file should never be in the target list.
>
> ---
>
> - hotspot/make/Makefile
>
> + $(EXPORT_CLIENT_DIR)/%.dSYM: $(MINIMAL1_BUILD_DIR)/%.dSYM
>
> EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
>
> For fun you can try building minimal on OSX, but I don't know how far
> you will get:
>
> --with-jvm-variants=client,server,minimal1
>
> I'll point out obvious issues with minimal VM support anyway.
>
> ---
>
> - hotspot/make/bsd/Makefile
>
> No comment.
>
> - hotspot/make/bsd/makefiles/buildtree.make
>
> No comment.
>
> - make/bsd/makefiles/defs.make
>
> Note that the whole jdk6_or_earlier logic is defunct as this will
> never be used for jdk6 or earlier. But best to clean all that up at
> the one time.
>
> Sadly I never found a satisfactory solution to the multiplicity and
> verbosity of the FDS messages, so OSX builds will now be afflicted by
> them too.
>
> 328 else
> 329 EXPORT_LIST += $(EXPORT_MINIMAL_DIR)/libjvm.debuginfo
> 330 endif
>
> This pre-existing minimal VM code needs to be modified to reference
> the dSYM directory on OSX as per the client/server cases.
>
> ---
>
> - hotspot/make/bsd/makefiles/dtrace.make
>
> Note related to your changes but I don't think any of the "64"
> directory stuff has any meaning outside of Solaris.
>
> 102 dsymutil $@
>
> I think dsymutil should be assigned to a variable in the platform
> defs.make as with other tools.
>
> Would be nice if objcopy/dsymutil could be hidden behind a single
> SYM_TOOL variables as well so there wasn't so much duplication of the
> process. You could have a single set of instructions to invoke
> SYM_TOOL, STRIP and ZIP (strip would be skipped of course because
> STRIP_POLICY would never be set on osx). Just wishful thinking ...
>
> ---
>
> - hotspot/make/bsd/makefiles/gcc.make
>
> + FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
>
> should be
>
> + FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH))
>
> Don't we need the USE_CLANG variations here as for linux?
>
> ---
>
> - hotspot/make/bsd/makefiles/jsig.make
> - hotspot/make/bsd/makefiles/saproc.make
>
> Similar comments to dtrace.make
>
> ---
>
> - make/bsd/makefiles/universal.gmk
>
> I did not understand the additional logic here:
>
> 63 # Copy built non-universal binaries in place
> 64 $(UNIVERSAL_COPY_LIST):
> 65 BUILT_COPY_FILES="`find
> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
> 2>/dev/null`"; \
> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
> 67 for i in $${BUILT_COPY_FILES}; do \
> 68 if [ -f $${i} ]; then \
> 69 $(MKDIR) -p $(shell dirname $@); \
> 70 $(CP) -R $${i} $@; \
> 71 fi; \
> 72 if [ -d $${i} ]; then \
> 73 $(MKDIR) -p $@; \
> 74 fi; \
> 75 done; \
> 76 fi
>
> until I realized that foo.dSYM is a directory not a file! Even so
> don't you want to copy the contents of the directory across ?
>
> BTW: UNIVERSAL_COPY_LIST doesn't handle minimal VM.
>
> ---
>
> - make/bsd/makefiles/vm.make
>
> Similar comments to dtrace.make ref dsymutil.
>
> ---
>
> - hotspot/make/defs.make
>
> No comment.
>
> ---
>
> - jdk/make/common/Defs-macosx.gmk
>
> No comment
>
> - jdk/makefiles/Tools.gmk
>
> Not sure about this one. Logically is seems correct but up to now this
> has been defined for everything without it seeming to cause a problem.
> So why do we need to change it and what impact will it have?
>
> David
> -----
>
> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
>> Greetings,
>>
>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>> and ready for review:
>>
>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>
>> Here is the JDK8/HSX-25 webrev URL:
>>
>> OpenJDK:
>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>> Internal:
>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>
>> This webrev includes changes for the follow repos:
>>
>> jdk8
>> jdk8/hotspot
>> jdk8/jdk
>> jdk8/jdk/make/closed
>>
>> Once these changes are approved, I'm planning to push them to
>> RT_Baseline. From there, they can follow the normal path to
>> Main_Baseline and eventually JDK8.
>>
>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>> the other repos are necessary to support importing the .diz files from
>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>> FDS related errors in the magic incantations for the new build. This is
>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>> from Solaris. In other words, this is Frankenstein's monster...
>>
>> Thanks to Staffan Larsen for providing an initial set of changes
>> which I morphed into what you see here.
>>
>> Testing:
>> - JPRT HSX build and test on all platforms; verification of .diz
>> files in the MacOS X JPRT bundles
>> - JPRT JDK8 forest build and test on all platforms; verification of
>> .diz files in the MacOS X JPRT bundles
>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>> repo build and test, but that no longer seems to work.
>>
>> As always, comments, questions and suggestions are welcome.
>>
>> Dan
From daniel.daugherty at oracle.com Wed Oct 2 08:33:59 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Wed, 02 Oct 2013 09:33:59 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To:
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
Message-ID: <524C3CE7.90500@oracle.com>
Ron,
Thanks for the review.
Dan
On 10/2/13 8:44 AM, Ron Durbin wrote:
> Dan
>
> You have my thumbs up changes look good
>
>
>> -----Original Message-----
>>
>> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
>>> Greetings,
>>>
>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>>> and ready for review:
>>>
>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>
>>> Here is the JDK8/HSX-25 webrev URL:
>>>
>>> OpenJDK:
>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>> Internal:
>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>
>>> This webrev includes changes for the follow repos:
>>>
>>> jdk8
>>> jdk8/hotspot
>>> jdk8/jdk
>>> jdk8/jdk/make/closed
>>>
>>> Once these changes are approved, I'm planning to push them to
>>> RT_Baseline. From there, they can follow the normal path to
>>> Main_Baseline and eventually JDK8.
>>>
>>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>>> the other repos are necessary to support importing the .diz files from
>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>> FDS related errors in the magic incantations for the new build. This is
>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>> from Solaris. In other words, this is Frankenstein's monster...
>>>
>>> Thanks to Staffan Larsen for providing an initial set of changes
>>> which I morphed into what you see here.
>>>
>>> Testing:
>>> - JPRT HSX build and test on all platforms; verification of .diz
>>> files in the MacOS X JPRT bundles
>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>> .diz files in the MacOS X JPRT bundles
>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>> repo build and test, but that no longer seems to work.
>>>
>>> As always, comments, questions and suggestions are welcome.
>>>
>>> Dan
From vicente.romero at oracle.com Wed Oct 2 09:06:03 2013
From: vicente.romero at oracle.com (vicente.romero at oracle.com)
Date: Wed, 02 Oct 2013 16:06:03 +0000
Subject: hg: jdk8/tl/langtools: 8023679: Improve error message for '_' used as
a lambda parameter name
Message-ID: <20131002160614.8D2F162CA7@hg.openjdk.java.net>
Changeset: 1e6088da1740
Author: vromero
Date: 2013-10-02 17:04 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/1e6088da1740
8023679: Improve error message for '_' used as a lambda parameter name
Reviewed-by: jjg, dlsmith
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/tools/javac/diags/examples/UnderscoreInLambdaExpression.java
From bradford.wetmore at oracle.com Wed Oct 2 09:41:47 2013
From: bradford.wetmore at oracle.com (bradford.wetmore at oracle.com)
Date: Wed, 02 Oct 2013 16:41:47 +0000
Subject: hg: jdk8/tl/jdk: 8025694: Rename getStrongSecureRandom based on
feedback; ...
Message-ID: <20131002164200.1A7E462CAB@hg.openjdk.java.net>
Changeset: a6ac824b463d
Author: wetmore
Date: 2013-10-02 09:38 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a6ac824b463d
8025694: Rename getStrongSecureRandom based on feedback
8014838: getStrongSecureRandom() should require at least one implementation
Reviewed-by: mullan, darcy
! src/share/classes/java/security/SecureRandom.java
! src/share/lib/security/java.security-windows
! test/sun/security/provider/SecureRandom/StrongSecureRandom.java
From dmitry.samersoff at oracle.com Wed Oct 2 11:43:56 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Wed, 02 Oct 2013 22:43:56 +0400
Subject: RR(S): JDK-8022616 u4 should not be used as a type for thread_id
In-Reply-To: <5241E953.3060707@oracle.com>
References: <524145D4.5020009@oracle.com>
<5241DFB2.7020800@oracle.com> <5241E19B.5090308@oracle.com>
<5241E953.3060707@oracle.com>
Message-ID: <524C696C.5020004@oracle.com>
Serguei,
I run all runtime tests on MAC OS X - lots of tests fails[1], but this
numners is exactly the same with or without my fix.
I'd considered it as a good result and plan to push changes tomorrow.
Do you have any concerns?
[1]
TOTAL TESTS IN RUN: 1043
TEST PASS: 502; 48% rate
TEST FAIL: 541; 51% rate
TEST UNDEFINED: 0; 0% rate
TEST INCOMPLETE: 0; 0% rate
TESTS NOT RUN: 0
TOTAL TEST IN TESTLIST: 1043
-Dmitry
On 2013-09-24 23:34, serguei.spitsyn at oracle.com wrote:
> On 9/24/13 12:01 PM, Dmitry Samersoff wrote:
>> Sergey,
>>
>> I'm rely on JPRT in testing. Also I run some tests on FreeBSD.
>
> It should not be too hard to run the same subset of tests on Mac OS, right?
>
>>
>> So if you think I should run extra tests, let me know which one, I'll
>> run it.
>>
>> Actually the fix doesn't change MacOS X implementation - just move a
>> call to ::pthread_mach_thread_np to different place so I don't expect
>> any problem.
>
> It is what we think about the code change. :)
> In fact, the change is non-trivial.
> It is a good idea to test it anyway.
> Not sure the JPRT covers this well.
>
> Thanks,
> Serguei
>
>>
>> -Dmitry
>>
>>
>> On 2013-09-24 22:53, serguei.spitsyn at oracle.com wrote:
>>> This looks good module Staffan comment on guarantee.
>>>
>>> How do you test it?
>>> Also, should it be tested on Mac OS as well?
>>>
>>>
>>> Thanks,
>>> Serguei
>>>
>>> On 9/24/13 12:57 AM, Dmitry Samersoff wrote:
>>>> Please review changes:
>>>>
>>>> http://cr.openjdk.java.net/~dsamersoff/JDK-8022616/webrev.02/
>>>>
>>>> Story:
>>>>
>>>> Tracing framework expect u4 as an id of thread
>>>>
>>>> pthread_t chosen as a tread id for variety of BSD platforms couldn't be
>>>> converted to u4 so it cause compilation failure on BSD x64
>>>>
>>>> Solution:
>>>>
>>>> Change thread_id to pid_t and get this id directly from kernel, the
>>>> same manner as Linux code does. Mac Os X still uses mach_port
>>>> instead of
>>>> thread id.
>>>>
>>>> Tested on FreeBSD and OpenBSD and also code passed jprt.
>>>>
>>>> -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.
From christian.tornqvist at oracle.com Wed Oct 2 12:03:19 2013
From: christian.tornqvist at oracle.com (christian.tornqvist at oracle.com)
Date: Wed, 02 Oct 2013 19:03:19 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8025671: Test name changed,
test list not updated. Test6878713.sh
Message-ID: <20131002190323.5A39B62CB8@hg.openjdk.java.net>
Changeset: d574419c5372
Author: mseledtsov
Date: 2013-10-02 15:17 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/d574419c5372
8025671: Test name changed, test list not updated. Test6878713.sh
Summary: Removed the obsolete test from the test group file
Reviewed-by: sla, ctornqvi, dholmes
! test/TEST.groups
From serguei.spitsyn at oracle.com Wed Oct 2 12:05:40 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Wed, 02 Oct 2013 12:05:40 -0700
Subject: RR(S): JDK-8022616 u4 should not be used as a type for thread_id
In-Reply-To: <524C696C.5020004@oracle.com>
References: <524145D4.5020009@oracle.com>
<5241DFB2.7020800@oracle.com> <5241E19B.5090308@oracle.com>
<5241E953.3060707@oracle.com> <524C696C.5020004@oracle.com>
Message-ID: <524C6E84.7020609@oracle.com>
Dmitry,
Thank you for running the tests, it is good to be safe.
In general it is Ok to judge on the fix quality basing on the test
result differences.
But I'm surprised the TEST FAIL rate is so high (is it normal for Mac OS?).
You may want to take a look how many of them are unexpected.
It is in the file tonga.output/testlist.unexpected.
Thanks,
Serguei
On 10/2/13 11:43 AM, Dmitry Samersoff wrote:
> Serguei,
>
> I run all runtime tests on MAC OS X - lots of tests fails[1], but this
> numners is exactly the same with or without my fix.
>
> I'd considered it as a good result and plan to push changes tomorrow.
>
> Do you have any concerns?
>
> [1]
> TOTAL TESTS IN RUN: 1043
> TEST PASS: 502; 48% rate
> TEST FAIL: 541; 51% rate
> TEST UNDEFINED: 0; 0% rate
> TEST INCOMPLETE: 0; 0% rate
> TESTS NOT RUN: 0
>
> TOTAL TEST IN TESTLIST: 1043
>
> -Dmitry
>
>
>
>
> On 2013-09-24 23:34, serguei.spitsyn at oracle.com wrote:
>> On 9/24/13 12:01 PM, Dmitry Samersoff wrote:
>>> Sergey,
>>>
>>> I'm rely on JPRT in testing. Also I run some tests on FreeBSD.
>> It should not be too hard to run the same subset of tests on Mac OS, right?
>>
>>> So if you think I should run extra tests, let me know which one, I'll
>>> run it.
>>>
>>> Actually the fix doesn't change MacOS X implementation - just move a
>>> call to ::pthread_mach_thread_np to different place so I don't expect
>>> any problem.
>> It is what we think about the code change. :)
>> In fact, the change is non-trivial.
>> It is a good idea to test it anyway.
>> Not sure the JPRT covers this well.
>>
>> Thanks,
>> Serguei
>>
>>> -Dmitry
>>>
>>>
>>> On 2013-09-24 22:53, serguei.spitsyn at oracle.com wrote:
>>>> This looks good module Staffan comment on guarantee.
>>>>
>>>> How do you test it?
>>>> Also, should it be tested on Mac OS as well?
>>>>
>>>>
>>>> Thanks,
>>>> Serguei
>>>>
>>>> On 9/24/13 12:57 AM, Dmitry Samersoff wrote:
>>>>> Please review changes:
>>>>>
>>>>> http://cr.openjdk.java.net/~dsamersoff/JDK-8022616/webrev.02/
>>>>>
>>>>> Story:
>>>>>
>>>>> Tracing framework expect u4 as an id of thread
>>>>>
>>>>> pthread_t chosen as a tread id for variety of BSD platforms couldn't be
>>>>> converted to u4 so it cause compilation failure on BSD x64
>>>>>
>>>>> Solution:
>>>>>
>>>>> Change thread_id to pid_t and get this id directly from kernel, the
>>>>> same manner as Linux code does. Mac Os X still uses mach_port
>>>>> instead of
>>>>> thread id.
>>>>>
>>>>> Tested on FreeBSD and OpenBSD and also code passed jprt.
>>>>>
>>>>> -Dmitry
>>>>>
>
From dmitry.samersoff at oracle.com Wed Oct 2 15:40:13 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Thu, 03 Oct 2013 02:40:13 +0400
Subject: RR(S): JDK-8022616 u4 should not be used as a type for thread_id
In-Reply-To: <524C6E84.7020609@oracle.com>
References: <524145D4.5020009@oracle.com>
<5241DFB2.7020800@oracle.com> <5241E19B.5090308@oracle.com>
<5241E953.3060707@oracle.com> <524C696C.5020004@oracle.com>
<524C6E84.7020609@oracle.com>
Message-ID: <524CA0CD.6060006@oracle.com>
Serguei,
UTE attempts to run windows specific (dotnet) tests[1] and it cause huge
failure rate.
I'd contacted SQE (Leonid) and he is in process of investigation
whether it is result of wrong MAC setup or bug in latest UTE.
I'd checked - none of these failures is related to my fix.
[1]
"/Users/dsamerso/ute/local/common/testbase/sqe/8/vm/vm/bin/bin/macos-amd64/runtime/invoker.exe"
(in directory
"/Users/dsamerso/UTEwork/ResultDir/allocLargeConcurent_copy_8"):
error=2, No such file or directory" during execution of
"${TONGA_EXECUTE} ${TEST_ARGS} 1>${test_work_dir}/${test_name}.eout"
-Dmitry
On 2013-10-02 23:05, serguei.spitsyn at oracle.com wrote:
> Dmitry,
>
> Thank you for running the tests, it is good to be safe.
>
> In general it is Ok to judge on the fix quality basing on the test
> result differences.
> But I'm surprised the TEST FAIL rate is so high (is it normal for Mac OS?).
> You may want to take a look how many of them are unexpected.
> It is in the file tonga.output/testlist.unexpected.
>
> Thanks,
> Serguei
>
> On 10/2/13 11:43 AM, Dmitry Samersoff wrote:
>> Serguei,
>>reads
>> I run all runtime tests on MAC OS X - lots of tests fails[1], but this
>> numners is exactly the same with or without my fix.
>>
>> I'd considered it as a good result and plan to push changes tomorrow.
>>
>> Do you have any concerns?
>>
>> [1]
>> TOTAL TESTS IN RUN: 1043
>> TEST PASS: 502; 48% rate
>> TEST FAIL: 541; 51% rate
>> TEST UNDEFINED: 0; 0% rate
>> TEST INCOMPLETE: 0; 0% rate
>> TESTS NOT RUN: 0
>>
>> TOTAL TEST IN TESTLIST: 1043
>>
>> -Dmitry
>>
>>
>>
>>
>> On 2013-09-24 23:34, serguei.spitsyn at oracle.com wrote:
>>> On 9/24/13 12:01 PM, Dmitry Samersoff wrote:
>>>> Sergey,
>>>>
>>>> I'm rely on JPRT in testing. Also I run some tests on FreeBSD.
>>> It should not be too hard to run the same subset of tests on Mac OS,
>>> right?
>>>
>>>> So if you think I should run extra tests, let me know which one,
>>>> I'll
>>>> run it.
>>>>
>>>> Actually the fix doesn't change MacOS X implementation - just move a
>>>> call to ::pthread_mach_thread_np to different place so I don't expect
>>>> any problem.
>>> It is what we think about the code change. :)
>>> In fact, the change is non-trivial.
>>> It is a good idea to test it anyway.
>>> Not sure the JPRT covers this well.
>>>
>>> Thanks,
>>> Serguei
>>>
>>>> -Dmitry
>>>>
>>>>
>>>> On 2013-09-24 22:53, serguei.spitsyn at oracle.com wrote:
>>>>> This looks good module Staffan comment on guarantee.
>>>>>
>>>>> How do you test it?
>>>>> Also, should it be tested on Mac OS as well?
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Serguei
>>>>>
>>>>> On 9/24/13 12:57 AM, Dmitry Samersoff wrote:
>>>>>> Please review changes:
>>>>>>
>>>>>> http://cr.openjdk.java.net/~dsamersoff/JDK-8022616/webrev.02/
>>>>>>
>>>>>> Story:
>>>>>>
>>>>>> Tracing framework expect u4 as an id of thread
>>>>>>
>>>>>> pthread_t chosen as a tread id for variety of BSD platforms
>>>>>> couldn't be
>>>>>> converted to u4 so it cause compilation failure on BSD x64
>>>>>>
>>>>>> Solution:
>>>>>>
>>>>>> Change thread_id to pid_t and get this id directly from kernel, the
>>>>>> same manner as Linux code does. Mac Os X still uses mach_port
>>>>>> instead of
>>>>>> thread id.
>>>>>>
>>>>>> Tested on FreeBSD and OpenBSD and also code passed jprt.
>>>>>>
>>>>>> -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.
From serguei.spitsyn at oracle.com Wed Oct 2 15:59:27 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Wed, 02 Oct 2013 15:59:27 -0700
Subject: RR(S): JDK-8022616 u4 should not be used as a type for thread_id
In-Reply-To: <524CA0CD.6060006@oracle.com>
References: <524145D4.5020009@oracle.com>
<5241DFB2.7020800@oracle.com> <5241E19B.5090308@oracle.com>
<5241E953.3060707@oracle.com> <524C696C.5020004@oracle.com>
<524C6E84.7020609@oracle.com> <524CA0CD.6060006@oracle.com>
Message-ID: <524CA54F.3060802@oracle.com>
Ok.
Thanks, Dmitry!
Serguei
On 10/2/13 3:40 PM, Dmitry Samersoff wrote:
> Serguei,
>
> UTE attempts to run windows specific (dotnet) tests[1] and it cause huge
> failure rate.
>
> I'd contacted SQE (Leonid) and he is in process of investigation
> whether it is result of wrong MAC setup or bug in latest UTE.
>
> I'd checked - none of these failures is related to my fix.
>
> [1]
>
> "/Users/dsamerso/ute/local/common/testbase/sqe/8/vm/vm/bin/bin/macos-amd64/runtime/invoker.exe"
> (in directory
> "/Users/dsamerso/UTEwork/ResultDir/allocLargeConcurent_copy_8"):
> error=2, No such file or directory" during execution of
> "${TONGA_EXECUTE} ${TEST_ARGS} 1>${test_work_dir}/${test_name}.eout"
>
> -Dmitry
>
>
> On 2013-10-02 23:05, serguei.spitsyn at oracle.com wrote:
>> Dmitry,
>>
>> Thank you for running the tests, it is good to be safe.
>>
>> In general it is Ok to judge on the fix quality basing on the test
>> result differences.
>> But I'm surprised the TEST FAIL rate is so high (is it normal for Mac OS?).
>> You may want to take a look how many of them are unexpected.
>> It is in the file tonga.output/testlist.unexpected.
>>
>> Thanks,
>> Serguei
>>
>> On 10/2/13 11:43 AM, Dmitry Samersoff wrote:
>>> Serguei,
>>> reads
>>> I run all runtime tests on MAC OS X - lots of tests fails[1], but this
>>> numners is exactly the same with or without my fix.
>>>
>>> I'd considered it as a good result and plan to push changes tomorrow.
>>>
>>> Do you have any concerns?
>>>
>>> [1]
>>> TOTAL TESTS IN RUN: 1043
>>> TEST PASS: 502; 48% rate
>>> TEST FAIL: 541; 51% rate
>>> TEST UNDEFINED: 0; 0% rate
>>> TEST INCOMPLETE: 0; 0% rate
>>> TESTS NOT RUN: 0
>>>
>>> TOTAL TEST IN TESTLIST: 1043
>>>
>>> -Dmitry
>>>
>>>
>>>
>>>
>>> On 2013-09-24 23:34, serguei.spitsyn at oracle.com wrote:
>>>> On 9/24/13 12:01 PM, Dmitry Samersoff wrote:
>>>>> Sergey,
>>>>>
>>>>> I'm rely on JPRT in testing. Also I run some tests on FreeBSD.
>>>> It should not be too hard to run the same subset of tests on Mac OS,
>>>> right?
>>>>
>>>>> So if you think I should run extra tests, let me know which one,
>>>>> I'll
>>>>> run it.
>>>>>
>>>>> Actually the fix doesn't change MacOS X implementation - just move a
>>>>> call to ::pthread_mach_thread_np to different place so I don't expect
>>>>> any problem.
>>>> It is what we think about the code change. :)
>>>> In fact, the change is non-trivial.
>>>> It is a good idea to test it anyway.
>>>> Not sure the JPRT covers this well.
>>>>
>>>> Thanks,
>>>> Serguei
>>>>
>>>>> -Dmitry
>>>>>
>>>>>
>>>>> On 2013-09-24 22:53, serguei.spitsyn at oracle.com wrote:
>>>>>> This looks good module Staffan comment on guarantee.
>>>>>>
>>>>>> How do you test it?
>>>>>> Also, should it be tested on Mac OS as well?
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Serguei
>>>>>>
>>>>>> On 9/24/13 12:57 AM, Dmitry Samersoff wrote:
>>>>>>> Please review changes:
>>>>>>>
>>>>>>> http://cr.openjdk.java.net/~dsamersoff/JDK-8022616/webrev.02/
>>>>>>>
>>>>>>> Story:
>>>>>>>
>>>>>>> Tracing framework expect u4 as an id of thread
>>>>>>>
>>>>>>> pthread_t chosen as a tread id for variety of BSD platforms
>>>>>>> couldn't be
>>>>>>> converted to u4 so it cause compilation failure on BSD x64
>>>>>>>
>>>>>>> Solution:
>>>>>>>
>>>>>>> Change thread_id to pid_t and get this id directly from kernel, the
>>>>>>> same manner as Linux code does. Mac Os X still uses mach_port
>>>>>>> instead of
>>>>>>> thread id.
>>>>>>>
>>>>>>> Tested on FreeBSD and OpenBSD and also code passed jprt.
>>>>>>>
>>>>>>> -Dmitry
>>>>>>>
>
From coleen.phillimore at oracle.com Wed Oct 2 16:07:17 2013
From: coleen.phillimore at oracle.com (coleen.phillimore at oracle.com)
Date: Wed, 02 Oct 2013 23:07:17 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131002230722.C938562CC4@hg.openjdk.java.net>
Changeset: 931f105563c5
Author: coleenp
Date: 2013-10-02 13:02 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/931f105563c5
8025569: -XX:+CheckUnhandledOops crashes on Windows
Summary: Disable CHECK_UNHANDLED_OOPS in fastdebug builds for JDK 8 on WIndows 32 & 64 bit machines
Reviewed-by: coleenp, ctornqvi, zgu
Contributed-by: lois.foltan at oracle.com
! make/windows/makefiles/fastdebug.make
Changeset: 6f73bc5df986
Author: coleenp
Date: 2013-10-02 15:06 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/6f73bc5df986
Merge
From eric.mccorkle at oracle.com Wed Oct 2 16:14:18 2013
From: eric.mccorkle at oracle.com (eric.mccorkle at oracle.com)
Date: Wed, 02 Oct 2013 23:14:18 +0000
Subject: hg: jdk8/tl/jdk: 8020981: Update methods of
java.lang.reflect.Parameter to throw correct exceptions
Message-ID: <20131002231431.6950C62CC5@hg.openjdk.java.net>
Changeset: cb8946eda85b
Author: emc
Date: 2013-10-02 19:13 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cb8946eda85b
8020981: Update methods of java.lang.reflect.Parameter to throw correct exceptions
Summary: Fix behavior of parameter reflection API for malformed class files.
Reviewed-by: darcy
! src/share/classes/java/lang/reflect/Executable.java
+ src/share/classes/java/lang/reflect/MalformedParametersException.java
! src/share/classes/java/lang/reflect/Parameter.java
+ test/java/lang/reflect/Parameter/BadClassFiles.java
From dmitry.samersoff at oracle.com Wed Oct 2 19:38:48 2013
From: dmitry.samersoff at oracle.com (dmitry.samersoff at oracle.com)
Date: Thu, 03 Oct 2013 02:38:48 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131003023855.B1EBD62CCC@hg.openjdk.java.net>
Changeset: 2bd38d594b9a
Author: dsamersoff
Date: 2013-10-02 20:58 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/2bd38d594b9a
8025283: Nits in os_bsd file breaks compilation of open hotspot
Summary: Couple of nits in os_bsd.cpp brake compilation of open hotspot on non-apple platforms
Reviewed-by: sla, sspitsyn
! src/os/bsd/vm/os_bsd.cpp
Changeset: 9855f17334d8
Author: dsamersoff
Date: 2013-10-03 01:12 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9855f17334d8
Merge
From dmitry.samersoff at oracle.com Wed Oct 2 22:58:20 2013
From: dmitry.samersoff at oracle.com (dmitry.samersoff at oracle.com)
Date: Thu, 03 Oct 2013 05:58:20 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131003055827.568F462CD0@hg.openjdk.java.net>
Changeset: 5705c7ee6dd7
Author: dsamersoff
Date: 2013-10-02 22:27 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/5705c7ee6dd7
8025250: SA: Sync linux and bsd versions of ps_core file
Summary: linux/ps_core.c and bsd/ps_core.c share most of code, but it has different formatting, comments etc.
Reviewed-by: sla, minqi
! agent/src/os/bsd/ps_core.c
! agent/src/os/linux/ps_core.c
Changeset: 7ae82c3a781a
Author: dsamersoff
Date: 2013-10-03 04:42 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/7ae82c3a781a
Merge
From kevin.walls at oracle.com Thu Oct 3 02:21:23 2013
From: kevin.walls at oracle.com (Kevin Walls)
Date: Thu, 03 Oct 2013 10:21:23 +0100
Subject: RFR 8019375: Internal symbol table size should be tunable.
In-Reply-To:
References: <52172CC0.30103@oracle.com>
Message-ID: <524D3713.6090302@oracle.com>
Hi,
Revisiting this after further testing, and marking the flag as
experimental as Karen suggested (usage will be
-XX:+UnlockExperimentalVMOptions -XX:SymbolTableSize=...).
After removing an unnecessary method in the SA SymbolTable.java and
further testing, here's a webrev:
http://cr.openjdk.java.net/~kevinw/8019375/webrev.02/
Making the symbol table size tunable, and removing
SymbolTable::symbol_table_size in vmStructs.cpp, affects a
Serviceability Agent class,
agent/src/share/classes/sun/jvm/hotspot/memory/SymbolTable.java.
There we reference the size we've removed, and that class has a method
getSymbolTableSize() which returns it, but that method is never called.
My succesful testing including e.g the internal test suit
nsk/sajdi.nsk/sajdi is with that method removed.
The SA SymbolTable has its own tableSize() which still does match the
size of the VM's own symboltable,
after this change, and when using the new tunable to change the symbol
table size, without using the field I removed from vmStructs.
How? 8-) sun/jvm/hotspot/memory/SymbolTable initialises using the
vmStructs type information that describes the native BasicHashtable
(from src/share/vm/utilities/hashtable.hpp), and never needed the field
that directly stored the symbol table size.
(I see we did something similar in StringTable for 6962930, including
removing the table size method in the SA class.)
Thanks
Kevin
On 29/08/13 13:44, Kirk Pepperdine wrote:
> Hi all,
>
> I'm inclined to believe that there are performance benefits to be gained by being able to get statistics and then use those statistics to better size both the dictionary and the String table. The fact that we've not had ready access to these stats and settings in the field has at times compromised tuning efforts. The Code Cache is another example of where an auto-tunable hasn't quite worked out and that the ability to obtain measures and make adjustments would have been invaluable.
>
> Kind regards,
> Kirk Pepperdine
>
> On 2013-08-29, at 1:55 PM, Karen Kinnear wrote:
>
>> Kevin,
>>
>> Let's talk - I was serious about not asking customers to give values that tune our internal metadata sizes -
>> we are potentially moving to different types of metadata or combining symbols with other things -- please
>> modify to get a PredictedMaxVMStrings (other names welcome) - but to get a size from the customers that
>> we then adopt metadata heuristics to.
>>
>> thanks,
>> Karen
>>
>> On Aug 23, 2013, at 5:34 AM, Kevin Walls wrote:
>>
>>> Hi,
>>>
>>> I'd like to get reviews on this change to make the size of the symbol table tunable. This can be a performance benefit to some apps, i.e. when the symbol table becomes overloaded (see PrintStringTableStatistics output).
>>>
>>> This work here actually comes from Coleen. I'm happy to take any further comments and update.
>>>
>>> http://cr.openjdk.java.net/~kevinw/8019375/webrev.01/
>>> http://bugs.sun.com/view_bug.do?bug_id=8019375
>>>
>>> This uses SymbolTableSize as the tunable name. (Another suggestion and possibile name, was PredictedMaxVMStrings to avoid talking explicity about the internal format. Comments welcome!...)
>>>
>>> Thanks
>>> Kevin
From serguei.spitsyn at oracle.com Thu Oct 3 02:23:27 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Thu, 03 Oct 2013 02:23:27 -0700
Subject: RFR (S): JDK-8024423: JVMTI: GetLoadedClasses doesn't enumerate
anonymous classes
In-Reply-To: <524BE733.2070205@oracle.com>
References: <5249643F.3030209@oracle.com> <524A7B07.1000300@oracle.com>
<524BE733.2070205@oracle.com>
Message-ID: <524D378F.9000809@oracle.com>
Hi Frederik,
Will review this tomorrow.
Sorry for the latency, was busy with other things.
In general, I do not like the idea to skip the synchronization.
Also, it is important to keep the information from JVMTI consistent.
The data returned by the getLoadedClasses and getClassLoaderClasses
should match.
We also need to make sure it is consistent with other info the JVMTI
provides.
This requirement is not for improvement or simplification.
But more tomorrow...
Thanks,
Serguei
On 10/2/13 2:28 AM, Fredrik Arvidsson wrote:
> Hi and thanks for all your comments.
>
> I have simplified the code in *instanceKlass.cpp* like suggested and
> here is a new webrev:
> http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.01/
>
>
> Regarding the need to synchronize the access to ClassLoaderDataGraph I
> have come to the conclusion that it should be safe to call this
> without any additional synchronization since newly loaded and added
> classes are appended to the end of its 'list' of classes. This would
> mean that the call could 'miss' the classes added during the
> collection phase, but this is not a big issue. I hope that my
> conclusion is correct.
>
> I believe that the JvmtiGetLoadedClasses::getClassLoaderClasses(...)
> method is to be left alone this time since I got the impression that
> only SystemDictionary 'knows' about initiating class loaders.
>
> There is plenty of room for improvement and simplification of much of
> the code in this area, but I feel that it must wait until another
> time. The task to re-factor and simplify would quickly grow out of
> hands I'm afraid :)
>
> Cheers
> /Fredrik
>
> On 2013-10-01 09:34, serguei.spitsyn at oracle.com wrote:
>> Hi Frederik,
>>
>>
>> Thank you for jumping on this issue!
>>
>>
>> *src/share/vm/oops/instanceKlass.cpp*
>> 2333 int src_index = 0;
>> 2334 while (src_index < src_length) {
>> 2335 dest[dest_index++] = src[src_index++];
>> 2336 }
>> 2337
>> 2338 // If we have a hash, append it
>> 2339 if(hash_len > 0) {
>> 2340 int hash_index = 0;
>> 2341 while (hash_index < hash_len) {
>> 2342 dest[dest_index++] = hash_buf[hash_index++];
>> 2343 }
>> 2344 }
>>
>> The above can be simplified a little bit:
>> // Add the actual class name
>> for (int src_index = 0; src_index < src_length; ) {
>> dest[dest_index++] = src[src_index++];
>> }
>> // If we have a hash, append it
>> for (int hash_index = 0; hash_index < hash_len; ) {
>> dest[dest_index++] = hash_buf[hash_index++];
>> }
>>
>> The conditionif(hash_len > 0) is covered by the loop itself.
>>
>> Style-related comments:
>> -wrong indent at the lines: 2316-2319
>> - need a space after the 'if' at the lines: 2315, 2339
>>
>>
>> *src/share/vm/prims/jvmtiGetLoadedClasses.cpp
>>
>> *The copyright comment must be up-to-date.
>> The comments at the lines 35-38, 258-260 are not valid anymore.
>>
>>
>> > In this review I still have an outstanding unanswered question about
>> > the need to synchronize the access to the:
>>
>> > ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::increment);
>> > and
>> > ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::add);
>>
>> This kind of walking is usually done at safepoint in a VM_Operation.
>> You will find many examples in the jvmtiEnv.cpp, for instance, VM_GetAllStackTraces.
>> The suggestion from Mikael is good too.
>>
>> Should this fix include the getClassLoaderClasses() as well?
>> I'm still trying to realize the impact and consistency of this fix. :(
>>
>> What tests are you going to run for verification?
>>
>> Thanks,
>> Serguei
>> *
>> *On 9/30/13 4:45 AM, Fredrik Arvidsson wrote:
>>> Hi
>>>
>>> Please help me to review the changes below:
>>>
>>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024423
>>> Webrev:
>>> http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.00/
>>>
>>>
>>> In this review I still have an outstanding unanswered question about
>>> the need to synchronize the access to the:
>>> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::increment);
>>> and
>>> ClassLoaderDataGraph::classes_do(&JvmtiGetLoadedClassesClosure::add);
>>>
>>> calls in
>>> http://cr.openjdk.java.net/~allwin/farvidss/8024423/webrev.00/src/share/vm/prims/jvmtiGetLoadedClasses.cpp.udiff.html
>>>
>>> Please give me advise on this.
>>>
>>> There will be a review soon regarding re-enabling the tests that failed because of the above bug, see:
>>> https://bugs.openjdk.java.net/browse/JDK-8025576
>>>
>>> Cheers
>>> /Fredrik
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131003/a9a80317/attachment.html
From paul.sandoz at oracle.com Thu Oct 3 03:12:22 2013
From: paul.sandoz at oracle.com (paul.sandoz at oracle.com)
Date: Thu, 03 Oct 2013 10:12:22 +0000
Subject: hg: jdk8/tl/jdk: 2 new changesets
Message-ID: <20131003101314.93FAA62CE2@hg.openjdk.java.net>
Changeset: 811c35a6a58f
Author: psandoz
Date: 2013-10-02 16:34 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/811c35a6a58f
8025534: Unsafe typecast in java.util.stream.Streams.Nodes
8025538: Unsafe typecast in java.util.stream.SpinedBuffer
8025533: Unsafe typecast in java.util.stream.Streams.RangeIntSpliterator.splitPoint()
8025525: Unsafe typecast in java.util.stream.Node.OfPrimitive.asArray()
Reviewed-by: chegar
! src/share/classes/java/util/stream/Node.java
! src/share/classes/java/util/stream/Nodes.java
! src/share/classes/java/util/stream/SortedOps.java
! src/share/classes/java/util/stream/SpinedBuffer.java
! src/share/classes/java/util/stream/Streams.java
Changeset: c55a7941050c
Author: psandoz
Date: 2013-10-03 10:59 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c55a7941050c
8025567: Mark relevant public stream tests as serialization hostile
Reviewed-by: alanb
! test/java/util/stream/test/org/openjdk/tests/java/util/stream/ForEachOpTest.java
! test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java
! test/java/util/stream/test/org/openjdk/tests/java/util/stream/StreamBuilderTest.java
! test/java/util/stream/test/org/openjdk/tests/java/util/stream/ToArrayOpTest.java
From dmitry.samersoff at oracle.com Thu Oct 3 05:27:50 2013
From: dmitry.samersoff at oracle.com (dmitry.samersoff at oracle.com)
Date: Thu, 03 Oct 2013 12:27:50 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8022616: u4 should not be used as a type
for thread_id
Message-ID: <20131003122800.B3CDB62CE9@hg.openjdk.java.net>
Changeset: faff125a1ead
Author: dsamersoff
Date: 2013-10-03 12:39 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/faff125a1ead
8022616: u4 should not be used as a type for thread_id
Summary: Usage of u4 as a type for thread_id cause a compilation error on platform, where thread_id is a pointer
Reviewed-by: sla, sspitsyn, minqi
! src/os/bsd/vm/osThread_bsd.hpp
! src/os/bsd/vm/os_bsd.cpp
! src/os/bsd/vm/os_bsd.hpp
From dmitry.samersoff at oracle.com Thu Oct 3 05:55:27 2013
From: dmitry.samersoff at oracle.com (dmitry.samersoff at oracle.com)
Date: Thu, 03 Oct 2013 12:55:27 +0000
Subject: hg: jdk8/tl/jdk: 8009213: sun/management/jdp/JdpTest.sh fails with
exit code 1
Message-ID: <20131003125539.805AB62CEC@hg.openjdk.java.net>
Changeset: 5d6dc0cba08f
Author: dsamersoff
Date: 2013-10-03 16:54 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5d6dc0cba08f
8009213: sun/management/jdp/JdpTest.sh fails with exit code 1
Summary: There's no guarantee that the java process has executed far enough to be found by jps when we try to obtain it's pid.
Reviewed-by: sla
! test/sun/management/jdp/JdpTest.sh
From aleksey.shipilev at oracle.com Thu Oct 3 06:40:20 2013
From: aleksey.shipilev at oracle.com (Aleksey Shipilev)
Date: Thu, 03 Oct 2013 17:40:20 +0400
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should include
-server/-client/-d32/-d64
Message-ID: <524D73C4.7060004@oracle.com>
Hi,
Please take a look at the potential fix for:
https://bugs.openjdk.java.net/browse/JDK-8025700
The webrev is here:
http://cr.openjdk.java.net/~shade/8025700/webrev.01/
Rationale: when doing the Java tools which need to replicate the VM
launch, e.g. fork the JVM with the same set of command line options, we
need the exact command line. Otherwise we miss the significant part of
configuration, which confuses people. So far we miss "-server",
"-client", "-d32", and "-d64" options from there. I have seen troubles
with jmh and jcstress stemming from this very issue.
Testing:
- new jtreg test, works fine on Linux x86_64; (I can run other
platforms as long as the fix approach is sound)
- jdk/test/tools/launcher jtreg tests on Linux x86_64
Thanks,
-Aleksey
From alexander.zuev at oracle.com Thu Oct 3 06:41:00 2013
From: alexander.zuev at oracle.com (alexander.zuev at oracle.com)
Date: Thu, 03 Oct 2013 13:41:00 +0000
Subject: hg: jdk8/tl/jdk: 8025738: locale related test fails on langtools mac
10.7 test host
Message-ID: <20131003134121.D9BFE62CEE@hg.openjdk.java.net>
Changeset: 9c32a9490eac
Author: kizune
Date: 2013-10-03 17:40 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/9c32a9490eac
8025738: locale related test fails on langtools mac 10.7 test host
Reviewed-by: ksrini
! test/tools/launcher/DiacriticTest.java
From ivan.gerasimov at oracle.com Thu Oct 3 07:11:02 2013
From: ivan.gerasimov at oracle.com (Ivan Gerasimov)
Date: Thu, 03 Oct 2013 18:11:02 +0400
Subject: RFR [8025886] typo in shell regtest == instead of =
Message-ID: <524D7AF6.2000705@oracle.com>
Hello!
May I please have a review for a simple fix of the shell regtest?
Bash seems to accept both = and == comparisons, but sh accepts only =.
http://bugs.sun.com/view_bug.do?bug_id=8025886 (not yet visible.)
Sincerely yours,
Ivan
--- a/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
+++ b/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
@@ -34,7 +34,7 @@
OS=`uname -s`
UMASK=`umask`
-if [[ $OS == CYGWIN_NT* ]] ; then
+if [[ $OS = CYGWIN_NT* ]] ; then
OS="Windows_NT"
if [ -z "$SystemRoot" ] ; then
SystemRoot=$SYSTEMROOT
From mandy.chung at oracle.com Thu Oct 3 07:50:51 2013
From: mandy.chung at oracle.com (Mandy Chung)
Date: Thu, 03 Oct 2013 07:50:51 -0700
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <524D73C4.7060004@oracle.com>
References: <524D73C4.7060004@oracle.com>
Message-ID: <524D844B.5010103@oracle.com>
On 10/3/2013 6:40 AM, Aleksey Shipilev wrote:
> Hi,
>
> Please take a look at the potential fix for:
> https://bugs.openjdk.java.net/browse/JDK-8025700
>
> The webrev is here:
> http://cr.openjdk.java.net/~shade/8025700/webrev.01/
>
> Rationale: when doing the Java tools which need to replicate the VM
> launch, e.g. fork the JVM with the same set of command line options, we
> need the exact command line. Otherwise we miss the significant part of
> configuration, which confuses people. So far we miss "-server",
> "-client", "-d32", and "-d64" options from there. I have seen troubles
> with jmh and jcstress stemming from this very issue.
What other command-line options are missing besides
-server/-client/-d32/-d64?
RuntimeMXBean.getVmName() tells you whether server or client, 32-bit or
64-bit JVM is running. Would that satisfy your need?
Mandy
From jaroslav.bachorik at oracle.com Thu Oct 3 08:02:37 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Thu, 03 Oct 2013 17:02:37 +0200
Subject: jmx-dev RFR: 8022220 Intermittent test failures in
javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
In-Reply-To: <524C2976.8020109@oracle.com>
References: <52308389.6060001@oracle.com> <524C2976.8020109@oracle.com>
Message-ID: <524D870D.2080804@oracle.com>
On 2.10.2013 16:11, Dmitry Samersoff wrote:
> Jaroslav,
>
> As a far as loopback address could be resolved to any of 127.0.0.0/8
> client and server have to use the same loopback address.
AFAIK, all the IPs 127.*.*.* equally designate the loopback interface.
This might start breaking when you have more than one loopback interface
in the system.
But all of this might be irrelevant here - the IPs are retrieved *after*
the JMX connection has been established making it clear that they are
reachable.
>
> Generally speaking it's not required for 127.0.1.1 to be able to talk to
> 127.0.0.1 and we are in risk to get a weird fail instead of clear error
> message.
As I said before as long as there is only one loopback interface it is
safe to assume that all the loopback IPs are virtually identical. When
we start considering multiple loopback interfaces we would need to take
into account the also the assigned network interfaces.
But it might hardly matter - it seems that the main culprit for this
test to fail on this particular configuration was the fact that
127.0.0.1 was *NOT* detected as a loopback IP. This is pretty weird and
makes one question the sanity of the test setup...
-JB-
>
> -Dmitry
>
>
> On 2013-09-11 18:51, Jaroslav Bachorik wrote:
>> Please, review this simple patch for an intermittently failing test.
>>
>> The test fails in cases when the connection loopback is resolved to be
>> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu. The
>> test does not anticipate this possibility and requires the loopback
>> address to be exactly 127.0.0.1
>>
>> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
>> consider them non equal even though they are both the same loopback. The
>> patch adds a bit of flexibility to the test allowing for any two valid
>> loopback addresses (127.0.0.0/8) to be equal.
>>
>> Issue : JDK-8022220
>> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>>
>> Thanks,
>>
>> -JB-
>>
>
>
From aleksey.shipilev at oracle.com Thu Oct 3 08:25:29 2013
From: aleksey.shipilev at oracle.com (Aleksey Shipilev)
Date: Thu, 03 Oct 2013 19:25:29 +0400
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <524D844B.5010103@oracle.com>
References: <524D73C4.7060004@oracle.com> <524D844B.5010103@oracle.com>
Message-ID: <524D8C69.3050309@oracle.com>
Hi Mandy,
On 10/03/2013 06:50 PM, Mandy Chung wrote:
> What other command-line options are missing besides
> -server/-client/-d32/-d64?
These four were problematic "in the wild". I didn't see any other
options that are problematic, but does not mean there is none other.
> RuntimeMXBean.getVmName() tells you whether server or client, 32-bit or
> 64-bit JVM is running. Would that satisfy your need?
Immediate need: possibly, but this requires stringly guesswork.
Moving forward, I can foresee different VMs being requested which can
not be guessed that easily. Think -XXaltjvm= or some other black magic
in launcher. Because of that, I think more generic solution (like the
variant being proposed) is more viable.
-Aleksey.
From chris.hegarty at oracle.com Thu Oct 3 08:29:48 2013
From: chris.hegarty at oracle.com (Chris Hegarty)
Date: Thu, 03 Oct 2013 16:29:48 +0100
Subject: jmx-dev RFR: 8022220 Intermittent test failures in
javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
In-Reply-To: <524D870D.2080804@oracle.com>
References: <52308389.6060001@oracle.com> <524C2976.8020109@oracle.com>
<524D870D.2080804@oracle.com>
Message-ID: <524D8D6C.9050907@oracle.com>
On 10/03/2013 04:02 PM, Jaroslav Bachorik wrote:
> .......
> But it might hardly matter - it seems that the main culprit for this
> test to fail on this particular configuration was the fact that
> 127.0.0.1 was *NOT* detected as a loopback IP. This is pretty weird and
I have not looked at the specifics, but if you have an InetAddress
instance you can invoke the isLoopbackAddress() [1][2] method to
correctly determine if the instance is a valid loopback address.
-Chris.
[1]
http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/54e099776f08/src/share/classes/java/net/Inet4Address.java
[2]
http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/54e099776f08/src/share/classes/java/net/Inet6Address.java
> makes one question the sanity of the test setup...
>
> -JB-
>
>>
>> -Dmitry
>>
>>
>> On 2013-09-11 18:51, Jaroslav Bachorik wrote:
>>> Please, review this simple patch for an intermittently failing test.
>>>
>>> The test fails in cases when the connection loopback is resolved to be
>>> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu. The
>>> test does not anticipate this possibility and requires the loopback
>>> address to be exactly 127.0.0.1
>>>
>>> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
>>> consider them non equal even though they are both the same loopback. The
>>> patch adds a bit of flexibility to the test allowing for any two valid
>>> loopback addresses (127.0.0.0/8) to be equal.
>>>
>>> Issue : JDK-8022220
>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>>>
>>> Thanks,
>>>
>>> -JB-
>>>
>>
>>
>
From jaroslav.bachorik at oracle.com Thu Oct 3 08:37:02 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Thu, 03 Oct 2013 17:37:02 +0200
Subject: jmx-dev RFR: 8022220 Intermittent test failures in
javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
In-Reply-To: <524D8D6C.9050907@oracle.com>
References: <52308389.6060001@oracle.com> <524C2976.8020109@oracle.com>
<524D870D.2080804@oracle.com> <524D8D6C.9050907@oracle.com>
Message-ID: <524D8F1E.9050904@oracle.com>
On 3.10.2013 17:29, Chris Hegarty wrote:
>
>
> On 10/03/2013 04:02 PM, Jaroslav Bachorik wrote:
>> .......
>> But it might hardly matter - it seems that the main culprit for this
>> test to fail on this particular configuration was the fact that
>> 127.0.0.1 was *NOT* detected as a loopback IP. This is pretty weird and
>
> I have not looked at the specifics, but if you have an InetAddress
> instance you can invoke the isLoopbackAddress() [1][2] method to
> correctly determine if the instance is a valid loopback address.
Yes, and exactly this method seems to have failed to determine 127.0.0.1
being a loopback - according to the test output.
I really can't see how because it basically compares the left-most byte
of the IP to 127 ...
-JB-
>
> -Chris.
>
> [1]
> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/54e099776f08/src/share/classes/java/net/Inet4Address.java
>
> [2]
> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/54e099776f08/src/share/classes/java/net/Inet6Address.java
>
>
>> makes one question the sanity of the test setup...
>>
>> -JB-
>>
>>>
>>> -Dmitry
>>>
>>>
>>> On 2013-09-11 18:51, Jaroslav Bachorik wrote:
>>>> Please, review this simple patch for an intermittently failing test.
>>>>
>>>> The test fails in cases when the connection loopback is resolved to be
>>>> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu.
>>>> The
>>>> test does not anticipate this possibility and requires the loopback
>>>> address to be exactly 127.0.0.1
>>>>
>>>> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
>>>> consider them non equal even though they are both the same loopback.
>>>> The
>>>> patch adds a bit of flexibility to the test allowing for any two valid
>>>> loopback addresses (127.0.0.0/8) to be equal.
>>>>
>>>> Issue : JDK-8022220
>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>>>>
>>>> Thanks,
>>>>
>>>> -JB-
>>>>
>>>
>>>
>>
From chris.hegarty at oracle.com Thu Oct 3 08:43:20 2013
From: chris.hegarty at oracle.com (Chris Hegarty)
Date: Thu, 03 Oct 2013 16:43:20 +0100
Subject: jmx-dev RFR: 8022220 Intermittent test failures in
javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
In-Reply-To: <524D8F1E.9050904@oracle.com>
References: <52308389.6060001@oracle.com> <524C2976.8020109@oracle.com>
<524D870D.2080804@oracle.com> <524D8D6C.9050907@oracle.com>
<524D8F1E.9050904@oracle.com>
Message-ID: <524D9098.6030701@oracle.com>
On 10/03/2013 04:37 PM, Jaroslav Bachorik wrote:
> On 3.10.2013 17:29, Chris Hegarty wrote:
>>
>>
>> On 10/03/2013 04:02 PM, Jaroslav Bachorik wrote:
>>> .......
>>> But it might hardly matter - it seems that the main culprit for this
>>> test to fail on this particular configuration was the fact that
>>> 127.0.0.1 was *NOT* detected as a loopback IP. This is pretty weird and
>>
>> I have not looked at the specifics, but if you have an InetAddress
>> instance you can invoke the isLoopbackAddress() [1][2] method to
>> correctly determine if the instance is a valid loopback address.
>
> Yes, and exactly this method seems to have failed to determine 127.0.0.1
> being a loopback - according to the test output.
>
> I really can't see how because it basically compares the left-most byte
> of the IP to 127 ...
Hmm... if this method fails to make the correct determination then we
have problems ;-) We use isLoopbackAddress in may other networking, and
similar, tests in the jdk.
Sorry, I don't know what to say, there must be some other kind of issue
on your machine, or address is not truly 127.0.0.1.
-Chris.
>
> -JB-
>
>>
>> -Chris.
>>
>> [1]
>> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/54e099776f08/src/share/classes/java/net/Inet4Address.java
>>
>>
>> [2]
>> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/54e099776f08/src/share/classes/java/net/Inet6Address.java
>>
>>
>>
>>> makes one question the sanity of the test setup...
>>>
>>> -JB-
>>>
>>>>
>>>> -Dmitry
>>>>
>>>>
>>>> On 2013-09-11 18:51, Jaroslav Bachorik wrote:
>>>>> Please, review this simple patch for an intermittently failing test.
>>>>>
>>>>> The test fails in cases when the connection loopback is resolved to be
>>>>> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu.
>>>>> The
>>>>> test does not anticipate this possibility and requires the loopback
>>>>> address to be exactly 127.0.0.1
>>>>>
>>>>> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
>>>>> consider them non equal even though they are both the same loopback.
>>>>> The
>>>>> patch adds a bit of flexibility to the test allowing for any two valid
>>>>> loopback addresses (127.0.0.0/8) to be equal.
>>>>>
>>>>> Issue : JDK-8022220
>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>>>>>
>>>>> Thanks,
>>>>>
>>>>> -JB-
>>>>>
>>>>
>>>>
>>>
>
From robert.field at oracle.com Thu Oct 3 10:24:42 2013
From: robert.field at oracle.com (robert.field at oracle.com)
Date: Thu, 03 Oct 2013 17:24:42 +0000
Subject: hg: jdk8/tl/jdk: 8010433: Remove lambda metafactory work-around to
JDK-8005119
Message-ID: <20131003172512.E48F462D0B@hg.openjdk.java.net>
Changeset: 8d8b809dd294
Author: rfield
Date: 2013-10-03 10:23 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8d8b809dd294
8010433: Remove lambda metafactory work-around to JDK-8005119
Summary: Restore invokespecial to lambda metafactory
Reviewed-by: ksrini
! src/share/classes/java/lang/invoke/AbstractValidatingLambdaMetafactory.java
From coleen.phillimore at oracle.com Thu Oct 3 11:02:45 2013
From: coleen.phillimore at oracle.com (Coleen Phillimore)
Date: Thu, 03 Oct 2013 14:02:45 -0400
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
Message-ID: <524DB145.5030109@oracle.com>
Summary: Redefined class in stack trace may not be found by method_idnum
so handle null.
This is a simple change. I had another change to save the method name
(as u2) in the backtrace, but it's not worth the extra footprint in
backtraces for this rare case.
The root problem was that we save method_idnum in the backtrace (u2)
instead of Method* to avoid Method* from being redefined and
deallocated. I made a change to InstanceKlass::method_from_idnum() to
return null rather than the last method in the list, which causes this
crash. Dan and I went down the long rabbit-hole of why method_idnum is
changed for obsolete methods and we think there's some cleanup and
potential bugs in this area. But this is not that change. I'll file
another bug to continue this investigation for jdk9 (or 8uN).
Staffan created a test - am including core-libs for the review request.
Also tested with all of the vm testbase tests, mlvm tests, and
java/lang/instrument tests.
open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
bug link https://bugs.openjdk.java.net/browse/JDK-8025238
test case for jdk8 repository:
open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
Thanks,
Coleen
From robert.field at oracle.com Thu Oct 3 11:27:36 2013
From: robert.field at oracle.com (robert.field at oracle.com)
Date: Thu, 03 Oct 2013 18:27:36 +0000
Subject: hg: jdk8/tl/jdk: 8020849: jdk/lambda/vm/DefaultMethodsTest.java
Message-ID: <20131003182839.8556662D1C@hg.openjdk.java.net>
Changeset: 1b3616c4a836
Author: rfield
Date: 2013-10-03 11:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1b3616c4a836
8020849: jdk/lambda/vm/DefaultMethodsTest.java
Summary: Bridge generation has been removed from the VM. Fix is to remove tests that no longer make sense.
Reviewed-by: ksrini
! test/jdk/lambda/vm/DefaultMethodsTest.java
From dmitry.samersoff at oracle.com Thu Oct 3 12:09:55 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Thu, 03 Oct 2013 23:09:55 +0400
Subject: jmx-dev RFR: 8022220 Intermittent test failures in
javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
In-Reply-To: <524D870D.2080804@oracle.com>
References: <52308389.6060001@oracle.com> <524C2976.8020109@oracle.com>
<524D870D.2080804@oracle.com>
Message-ID: <524DC103.7080401@oracle.com>
Jaroslav,
Behevior of mulitple loopback is not specified clearly[1] and is up to
OS developers or more precise - kernel setup.
Common practice is to assign 127.*.*.* to interfaces like tun, to be
able to use some socket-related calls ever if it is not connected to peer.
Other common situation - multiple loopback interfaces on host computer
to support virtual instances.
So on my opinion, it's better to be pessimistic and don't assume that
different loopback addresses are able to talk with each other.
[1]
http://tools.ietf.org/html/rfc3330
127.0.0.0/8 - This block is assigned for use as the Internet host
loopback address. A datagram sent by a higher level protocol to an
address anywhere within this block should loop back inside the host.
This is ordinarily implemented using only 127.0.0.1/32 for loopback,
but no addresses within this block should ever appear on any network
anywhere.
-Dmitry
On 2013-10-03 19:02, Jaroslav Bachorik wrote:
> On 2.10.2013 16:11, Dmitry Samersoff wrote:
>> Jaroslav,
>>
>> As a far as loopback address could be resolved to any of 127.0.0.0/8
>> client and server have to use the same loopback address.
>
> AFAIK, all the IPs 127.*.*.* equally designate the loopback interface.
> This might start breaking when you have more than one loopback interface
> in the system.
> But all of this might be irrelevant here - the IPs are retrieved *after*
> the JMX connection has been established making it clear that they are
> reachable.
>
>>
>> Generally speaking it's not required for 127.0.1.1 to be able to talk to
>> 127.0.0.1 and we are in risk to get a weird fail instead of clear error
>> message.
>
> As I said before as long as there is only one loopback interface it is
> safe to assume that all the loopback IPs are virtually identical. When
> we start considering multiple loopback interfaces we would need to take
> into account the also the assigned network interfaces.
>
> But it might hardly matter - it seems that the main culprit for this
> test to fail on this particular configuration was the fact that
> 127.0.0.1 was *NOT* detected as a loopback IP. This is pretty weird and
> makes one question the sanity of the test setup...
>
> -JB-
>
>>
>> -Dmitry
>>
>>
>> On 2013-09-11 18:51, Jaroslav Bachorik wrote:
>>> Please, review this simple patch for an intermittently failing test.
>>>
>>> The test fails in cases when the connection loopback is resolved to be
>>> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu. The
>>> test does not anticipate this possibility and requires the loopback
>>> address to be exactly 127.0.0.1
>>>
>>> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
>>> consider them non equal even though they are both the same loopback. The
>>> patch adds a bit of flexibility to the test allowing for any two valid
>>> loopback addresses (127.0.0.0/8) to be equal.
>>>
>>> Issue : JDK-8022220
>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>>>
>>> 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.
From staffan.larsen at oracle.com Thu Oct 3 12:29:53 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Thu, 3 Oct 2013 21:29:53 +0200
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002
crashed with SIGSEGV
In-Reply-To: <524DB145.5030109@oracle.com>
References: <524DB145.5030109@oracle.com>
Message-ID:
Looks good! (Obviously I would think so for the testcase :-) )
Thanks for fixing,
/Staffan
On 3 okt 2013, at 20:02, Coleen Phillimore wrote:
> Summary: Redefined class in stack trace may not be found by method_idnum so handle null.
>
> This is a simple change. I had another change to save the method name (as u2) in the backtrace, but it's not worth the extra footprint in backtraces for this rare case.
>
> The root problem was that we save method_idnum in the backtrace (u2) instead of Method* to avoid Method* from being redefined and deallocated. I made a change to InstanceKlass::method_from_idnum() to return null rather than the last method in the list, which causes this crash. Dan and I went down the long rabbit-hole of why method_idnum is changed for obsolete methods and we think there's some cleanup and potential bugs in this area. But this is not that change. I'll file another bug to continue this investigation for jdk9 (or 8uN).
>
> Staffan created a test - am including core-libs for the review request. Also tested with all of the vm testbase tests, mlvm tests, and java/lang/instrument tests.
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>
> test case for jdk8 repository:
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>
> Thanks,
> Coleen
From serguei.spitsyn at oracle.com Thu Oct 3 12:50:58 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Thu, 03 Oct 2013 12:50:58 -0700
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To: <524DB145.5030109@oracle.com>
References: <524DB145.5030109@oracle.com>
Message-ID: <524DCAA2.7050305@oracle.com>
Coleen,
The fix looks good.
It is nice you've come up with this.
Thanks,
Serguei
On 10/3/13 11:02 AM, Coleen Phillimore wrote:
> Summary: Redefined class in stack trace may not be found by
> method_idnum so handle null.
>
> This is a simple change. I had another change to save the method name
> (as u2) in the backtrace, but it's not worth the extra footprint in
> backtraces for this rare case.
>
> The root problem was that we save method_idnum in the backtrace (u2)
> instead of Method* to avoid Method* from being redefined and
> deallocated. I made a change to InstanceKlass::method_from_idnum() to
> return null rather than the last method in the list, which causes this
> crash. Dan and I went down the long rabbit-hole of why method_idnum
> is changed for obsolete methods and we think there's some cleanup and
> potential bugs in this area. But this is not that change. I'll file
> another bug to continue this investigation for jdk9 (or 8uN).
>
> Staffan created a test - am including core-libs for the review
> request. Also tested with all of the vm testbase tests, mlvm tests,
> and java/lang/instrument tests.
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>
> test case for jdk8 repository:
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>
> Thanks,
> Coleen
From daniel.daugherty at oracle.com Thu Oct 3 13:07:25 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Thu, 03 Oct 2013 14:07:25 -0600
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To: <524DB145.5030109@oracle.com>
References: <524DB145.5030109@oracle.com>
Message-ID: <524DCE7D.7020703@oracle.com>
> http://cr.openjdk.java.net/~coleenp/8025238/
src/share/vm/classfile/javaClasses.cpp
1804 if (method == NULL) {
1805 // leave name and fileName null
1806 java_lang_StackTraceElement::set_lineNumber(element(), -1);
Is it possible to set the name and fileName to something?
A caller may not be expecting those to be NULL.
Also, holder->method_with_idnum(method_id) should be able to
search the previous class version list and find the obsolete
Method* that matches the 'method_id' value.
src/share/vm/prims/jvmtiRedefineClasses.cpp
Better comment than the original.
Dan
On 10/3/13 12:02 PM, Coleen Phillimore wrote:
> Summary: Redefined class in stack trace may not be found by
> method_idnum so handle null.
>
> This is a simple change. I had another change to save the method name
> (as u2) in the backtrace, but it's not worth the extra footprint in
> backtraces for this rare case.
>
> The root problem was that we save method_idnum in the backtrace (u2)
> instead of Method* to avoid Method* from being redefined and
> deallocated. I made a change to InstanceKlass::method_from_idnum() to
> return null rather than the last method in the list, which causes this
> crash. Dan and I went down the long rabbit-hole of why method_idnum
> is changed for obsolete methods and we think there's some cleanup and
> potential bugs in this area. But this is not that change. I'll file
> another bug to continue this investigation for jdk9 (or 8uN).
>
> Staffan created a test - am including core-libs for the review
> request. Also tested with all of the vm testbase tests, mlvm tests,
> and java/lang/instrument tests.
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>
> test case for jdk8 repository:
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>
> Thanks,
> Coleen
From roger.riggs at oracle.com Thu Oct 3 13:20:21 2013
From: roger.riggs at oracle.com (roger.riggs at oracle.com)
Date: Thu, 03 Oct 2013 20:20:21 +0000
Subject: hg: jdk8/tl/jdk: 2 new changesets
Message-ID: <20131003202235.747C262D32@hg.openjdk.java.net>
Changeset: 01b8604e8268
Author: rriggs
Date: 2013-08-22 10:01 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/01b8604e8268
8024896: Refactor java.time serialization tests into separate subpackage
Summary: Move serialization tests to .serial subpackage
Reviewed-by: sherman
Contributed-by: paul.rank at oracle.com
! test/java/time/tck/java/time/TCKDuration.java
! test/java/time/tck/java/time/TCKInstant.java
! test/java/time/tck/java/time/TCKLocalDate.java
! test/java/time/tck/java/time/TCKLocalDateTime.java
! test/java/time/tck/java/time/TCKLocalTime.java
! test/java/time/tck/java/time/TCKMonthDay.java
! test/java/time/tck/java/time/TCKOffsetDateTime.java
! test/java/time/tck/java/time/TCKOffsetTime.java
! test/java/time/tck/java/time/TCKPeriod.java
! test/java/time/tck/java/time/TCKYear.java
! test/java/time/tck/java/time/TCKYearMonth.java
! test/java/time/tck/java/time/TCKZoneId.java
! test/java/time/tck/java/time/TCKZoneOffset.java
! test/java/time/tck/java/time/TCKZonedDateTime.java
! test/java/time/tck/java/time/chrono/TCKChronoLocalDate.java
! test/java/time/tck/java/time/chrono/TCKChronoLocalDateTime.java
- test/java/time/tck/java/time/chrono/TCKChronologySerialization.java
+ test/java/time/tck/java/time/chrono/serial/TCKChronoLocalDate.java
+ test/java/time/tck/java/time/chrono/serial/TCKChronoLocalDateTime.java
+ test/java/time/tck/java/time/chrono/serial/TCKChronologySerialization.java
+ test/java/time/tck/java/time/serial/TCKDuration.java
+ test/java/time/tck/java/time/serial/TCKInstant.java
+ test/java/time/tck/java/time/serial/TCKLocalDate.java
+ test/java/time/tck/java/time/serial/TCKLocalDateTime.java
+ test/java/time/tck/java/time/serial/TCKLocalTime.java
+ test/java/time/tck/java/time/serial/TCKMonthDay.java
+ test/java/time/tck/java/time/serial/TCKOffsetDateTime.java
+ test/java/time/tck/java/time/serial/TCKOffsetTime.java
+ test/java/time/tck/java/time/serial/TCKPeriod.java
+ test/java/time/tck/java/time/serial/TCKYear.java
+ test/java/time/tck/java/time/serial/TCKYearMonth.java
+ test/java/time/tck/java/time/serial/TCKZoneId.java
+ test/java/time/tck/java/time/serial/TCKZoneOffset.java
+ test/java/time/tck/java/time/serial/TCKZonedDateTime.java
! test/java/time/tck/java/time/temporal/TCKWeekFields.java
+ test/java/time/tck/java/time/temporal/serial/TCKWeekFields.java
! test/java/time/tck/java/time/zone/TCKFixedZoneRules.java
! test/java/time/tck/java/time/zone/TCKZoneOffsetTransition.java
! test/java/time/tck/java/time/zone/TCKZoneOffsetTransitionRule.java
! test/java/time/tck/java/time/zone/TCKZoneRules.java
+ test/java/time/tck/java/time/zone/serial/TCKFixedZoneRules.java
+ test/java/time/tck/java/time/zone/serial/TCKZoneOffsetTransition.java
+ test/java/time/tck/java/time/zone/serial/TCKZoneOffsetTransitionRule.java
+ test/java/time/tck/java/time/zone/serial/TCKZoneRules.java
Changeset: e813b58bd6db
Author: rriggs
Date: 2013-10-03 15:16 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e813b58bd6db
8024427: Missing java.time.chrono serialization tests
Summary: Add tests and cleanup existing serialization tests
Reviewed-by: sherman
! src/share/classes/java/time/temporal/ValueRange.java
! test/java/time/tck/java/time/AbstractTCKTest.java
! test/java/time/tck/java/time/TCKClock_Fixed.java
! test/java/time/tck/java/time/TCKClock_Offset.java
! test/java/time/tck/java/time/TCKClock_System.java
! test/java/time/tck/java/time/TCKClock_Tick.java
! test/java/time/tck/java/time/chrono/CopticDate.java
! test/java/time/tck/java/time/chrono/TCKChronoZonedDateTime.java
! test/java/time/tck/java/time/chrono/TCKChronology.java
! test/java/time/tck/java/time/chrono/TCKTestServiceLoader.java
! test/java/time/tck/java/time/chrono/serial/TCKChronoLocalDateSerialization.java < test/java/time/tck/java/time/chrono/serial/TCKChronoLocalDate.java
! test/java/time/tck/java/time/chrono/serial/TCKChronoLocalDateTimeSerialization.java < test/java/time/tck/java/time/chrono/serial/TCKChronoLocalDateTime.java
+ test/java/time/tck/java/time/chrono/serial/TCKChronoZonedDateTimeSerialization.java
! test/java/time/tck/java/time/chrono/serial/TCKChronologySerialization.java
+ test/java/time/tck/java/time/chrono/serial/TCKCopticSerialization.java
+ test/java/time/tck/java/time/chrono/serial/TCKEraSerialization.java
+ test/java/time/tck/java/time/serial/TCKClockSerialization.java
! test/java/time/tck/java/time/serial/TCKDurationSerialization.java < test/java/time/tck/java/time/serial/TCKDuration.java
! test/java/time/tck/java/time/serial/TCKInstantSerialization.java < test/java/time/tck/java/time/serial/TCKInstant.java
! test/java/time/tck/java/time/serial/TCKLocalDateSerialization.java < test/java/time/tck/java/time/serial/TCKLocalDate.java
! test/java/time/tck/java/time/serial/TCKLocalDateTimeSerialization.java < test/java/time/tck/java/time/serial/TCKLocalDateTime.java
! test/java/time/tck/java/time/serial/TCKLocalTimeSerialization.java < test/java/time/tck/java/time/serial/TCKLocalTime.java
! test/java/time/tck/java/time/serial/TCKMonthDaySerialization.java < test/java/time/tck/java/time/serial/TCKMonthDay.java
! test/java/time/tck/java/time/serial/TCKOffsetDateTimeSerialization.java < test/java/time/tck/java/time/serial/TCKOffsetDateTime.java
! test/java/time/tck/java/time/serial/TCKOffsetTimeSerialization.java < test/java/time/tck/java/time/serial/TCKOffsetTime.java
! test/java/time/tck/java/time/serial/TCKPeriodSerialization.java < test/java/time/tck/java/time/serial/TCKPeriod.java
! test/java/time/tck/java/time/serial/TCKYearMonthSerialization.java < test/java/time/tck/java/time/serial/TCKYearMonth.java
! test/java/time/tck/java/time/serial/TCKYearSerialization.java < test/java/time/tck/java/time/serial/TCKYear.java
! test/java/time/tck/java/time/serial/TCKZoneIdSerialization.java < test/java/time/tck/java/time/serial/TCKZoneId.java
! test/java/time/tck/java/time/serial/TCKZoneOffsetSerialization.java < test/java/time/tck/java/time/serial/TCKZoneOffset.java
! test/java/time/tck/java/time/serial/TCKZonedDateTimeSerialization.java < test/java/time/tck/java/time/serial/TCKZonedDateTime.java
! test/java/time/tck/java/time/temporal/TCKJulianFields.java
+ test/java/time/tck/java/time/temporal/serial/TCKChronoFieldSerialization.java
+ test/java/time/tck/java/time/temporal/serial/TCKChronoUnitSerialization.java
+ test/java/time/tck/java/time/temporal/serial/TCKJulianFieldsSerialization.java
+ test/java/time/tck/java/time/temporal/serial/TCKValueRangeSerialization.java
! test/java/time/tck/java/time/temporal/serial/TCKWeekFieldsSerialization.java < test/java/time/tck/java/time/temporal/serial/TCKWeekFields.java
! test/java/time/tck/java/time/zone/TCKZoneOffsetTransition.java
! test/java/time/tck/java/time/zone/TCKZoneOffsetTransitionRule.java
! test/java/time/tck/java/time/zone/serial/TCKFixedZoneRulesSerialization.java < test/java/time/tck/java/time/zone/serial/TCKFixedZoneRules.java
! test/java/time/tck/java/time/zone/serial/TCKZoneOffsetTransitionRuleSerialization.java < test/java/time/tck/java/time/zone/serial/TCKZoneOffsetTransitionRule.java
! test/java/time/tck/java/time/zone/serial/TCKZoneOffsetTransitionSerialization.java < test/java/time/tck/java/time/zone/serial/TCKZoneOffsetTransition.java
! test/java/time/tck/java/time/zone/serial/TCKZoneRulesSerialization.java < test/java/time/tck/java/time/zone/serial/TCKZoneRules.java
! test/java/time/test/java/time/AbstractTest.java
! test/java/time/test/java/time/TestDuration.java
! test/java/time/test/java/time/temporal/TestDateTimeValueRange.java
From daniel.daugherty at oracle.com Thu Oct 3 13:28:56 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Thu, 03 Oct 2013 14:28:56 -0600
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To: <524DB145.5030109@oracle.com>
References: <524DB145.5030109@oracle.com>
Message-ID: <524DD388.8060706@oracle.com>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
test/java/lang/instrument/RedefineMethodInBacktrace.sh
No comments.
test/java/lang/instrument/RedefineMethodInBacktraceApp.java
line 78: t.setDaemon(true);
Why make the target thread a daemon? Wouldn't it be a more
complete test to do Thread.join() of that thread just to
be sure that the target thread has finished (and is not
stuck)?
test/java/lang/instrument/RedefineMethodInBacktraceTargetB.java
test/java/lang/instrument/RedefineMethodInBacktraceTargetB_2.java
Nice sync logic with the test driver.
Thumbs up.
Dan
On 10/3/13 12:02 PM, Coleen Phillimore wrote:
> Summary: Redefined class in stack trace may not be found by
> method_idnum so handle null.
>
> This is a simple change. I had another change to save the method name
> (as u2) in the backtrace, but it's not worth the extra footprint in
> backtraces for this rare case.
>
> The root problem was that we save method_idnum in the backtrace (u2)
> instead of Method* to avoid Method* from being redefined and
> deallocated. I made a change to InstanceKlass::method_from_idnum() to
> return null rather than the last method in the list, which causes this
> crash. Dan and I went down the long rabbit-hole of why method_idnum
> is changed for obsolete methods and we think there's some cleanup and
> potential bugs in this area. But this is not that change. I'll file
> another bug to continue this investigation for jdk9 (or 8uN).
>
> Staffan created a test - am including core-libs for the review
> request. Also tested with all of the vm testbase tests, mlvm tests,
> and java/lang/instrument tests.
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>
> test case for jdk8 repository:
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>
> Thanks,
> Coleen
>
>
From john.coomes at oracle.com Thu Oct 3 13:56:58 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 03 Oct 2013 20:56:58 +0000
Subject: hg: hsx/hotspot-rt: 5 new changesets
Message-ID: <20131003205659.19BAD62D3C@hg.openjdk.java.net>
Changeset: 5ec3c4948863
Author: ksrini
Date: 2013-09-27 16:27 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/5ec3c4948863
8023495: [infra] create 64-bit solaris bits with symlinks
Reviewed-by: ihse, tbell, erikj
! common/makefiles/Jprt.gmk
! common/makefiles/Main.gmk
Changeset: 72c2495c86c9
Author: katleman
Date: 2013-10-01 12:43 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/72c2495c86c9
Merge
Changeset: 0f704e36bc5d
Author: ihse
Date: 2013-10-01 10:58 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/0f704e36bc5d
8006661: Use LC_ALL=C instead of LANG=C compare.sh
Reviewed-by: tbell
! common/bin/compare.sh
Changeset: 4faa09c7fe55
Author: erikj
Date: 2013-10-02 15:08 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/4faa09c7fe55
Merge
Changeset: 669e3e3d4459
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/669e3e3d4459
Added tag jdk8-b110 for changeset 4faa09c7fe55
! .hgtags
From john.coomes at oracle.com Thu Oct 3 13:57:44 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 03 Oct 2013 20:57:44 +0000
Subject: hg: hsx/hotspot-rt/jaxws: Added tag jdk8-b110 for changeset
cc682329886b
Message-ID: <20131003205749.5DD3962D3F@hg.openjdk.java.net>
Changeset: 32edc7a2c866
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jaxws/rev/32edc7a2c866
Added tag jdk8-b110 for changeset cc682329886b
! .hgtags
From john.coomes at oracle.com Thu Oct 3 13:57:10 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 03 Oct 2013 20:57:10 +0000
Subject: hg: hsx/hotspot-rt/corba: Added tag jdk8-b110 for changeset
3d2b7ce93c5c
Message-ID: <20131003205711.EB38662D3D@hg.openjdk.java.net>
Changeset: 85c1c94e7235
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/corba/rev/85c1c94e7235
Added tag jdk8-b110 for changeset 3d2b7ce93c5c
! .hgtags
From john.coomes at oracle.com Thu Oct 3 13:57:25 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 03 Oct 2013 20:57:25 +0000
Subject: hg: hsx/hotspot-rt/jaxp: Added tag jdk8-b110 for changeset
4c84c5b447b0
Message-ID: <20131003205730.5D3B362D3E@hg.openjdk.java.net>
Changeset: 17ee0d3e97fd
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jaxp/rev/17ee0d3e97fd
Added tag jdk8-b110 for changeset 4c84c5b447b0
! .hgtags
From john.coomes at oracle.com Thu Oct 3 14:32:00 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 03 Oct 2013 21:32:00 +0000
Subject: hg: hsx/hotspot-rt/langtools: 35 new changesets
Message-ID: <20131003213358.CA6DB62D43@hg.openjdk.java.net>
Changeset: fdfbc5f0c4ed
Author: jjg
Date: 2013-09-17 14:17 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/fdfbc5f0c4ed
8024538: -Xdoclint + -Xprefer:source + incremental compilation == FAIL
Reviewed-by: darcy
! src/share/classes/com/sun/tools/doclint/DocLint.java
! src/share/classes/com/sun/tools/javac/comp/Enter.java
+ test/tools/javac/doclint/implicitSource/ImplicitSourceTest.java
+ test/tools/javac/doclint/implicitSource/Other.java
Changeset: ac6ec071c2b2
Author: alundblad
Date: 2013-09-18 14:39 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/ac6ec071c2b2
8024127: javac, Code_attribute.exception_table_langth should be Code_attribute.exception_table_length
Summary: exception_table_langth renamed to exception_table_length
Reviewed-by: jfranck, jjg
! src/share/classes/com/sun/tools/classfile/Code_attribute.java
! src/share/classes/com/sun/tools/javap/CodeWriter.java
! test/tools/javac/T7093325.java
! test/tools/javac/T8024039/NoDeadCodeGenerationOnTrySmtTest.java
! test/tools/javac/multicatch/Pos05.java
Changeset: a2a5ad0853ed
Author: bpatel
Date: 2013-09-18 17:13 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/a2a5ad0853ed
8015249: javadoc fails to document static final fields in annotation types
Reviewed-by: jjg
+ src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/WriterFactoryImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlConstants.java
+ src/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeFieldWriter.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeRequiredMemberWriter.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeWriter.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/WriterFactory.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeBuilder.java
+ src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeFieldBuilder.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/BuilderFactory.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MemberSummaryBuilder.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclet.xml
! src/share/classes/com/sun/tools/doclets/internal/toolkit/util/VisibleMemberMap.java
! test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java
+ test/com/sun/javadoc/testAnnotationTypes/pkg/AnnotationTypeField.java
! test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java
Changeset: 8df12c315ea3
Author: bpatel
Date: 2013-09-18 22:47 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/8df12c315ea3
8024096: some javadoc tests may contain false positive results
Reviewed-by: jjg
! test/com/sun/javadoc/lib/JavadocTester.java
! test/com/sun/javadoc/testDocFileDir/TestDocFileDir.java
! test/com/sun/javadoc/testEncoding/EncodeTest.java
! test/com/sun/javadoc/testEncoding/TestEncoding.java
! test/com/sun/javadoc/testMethodTypes/TestMethodTypes.java
! test/com/sun/javadoc/testProfiles/TestProfiles.java
Changeset: 36e342dd57e2
Author: kizune
Date: 2013-09-19 17:05 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/36e342dd57e2
8017248: Compiler Diacritics Issue
Reviewed-by: naoto
! src/share/classes/com/sun/tools/javac/file/RegularFileObject.java
Changeset: 8d1c48de706d
Author: jlahoda
Date: 2013-09-19 17:05 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/8d1c48de706d
8022567: Javac Should Generate Warnings For Raw Array Type
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/comp/Check.java
! test/tools/javac/warnings/6747671/T6747671.java
! test/tools/javac/warnings/6747671/T6747671.out
Changeset: 0cfd5baa7154
Author: ohrstrom
Date: 2013-09-19 08:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/0cfd5baa7154
8024609: sjavac assertion fails during call to BuildState.collectArtifacts
Reviewed-by: jjg
! src/share/classes/com/sun/tools/sjavac/BuildState.java
! src/share/classes/com/sun/tools/sjavac/Main.java
! src/share/classes/com/sun/tools/sjavac/server/JavacServer.java
Changeset: 2375ce96e80d
Author: vromero
Date: 2013-09-19 20:57 +0100
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/2375ce96e80d
8024437: Inferring the exception thrown: sometimes fails to compile
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/code/Flags.java
! src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
+ test/tools/javac/T8024437/ExceptionInferenceFromClassFileTest.java
Changeset: 9a75bdb249a2
Author: jjg
Date: 2013-09-19 19:18 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/9a75bdb249a2
8025110: TreeCopier does not correctly copy LabeledStatementTree
Reviewed-by: jjg
Contributed-by: Werner Dietl
! src/share/classes/com/sun/tools/javac/tree/TreeCopier.java
Changeset: 41599b57d262
Author: jlahoda
Date: 2013-09-20 16:33 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/41599b57d262
8023835: TreeMaker.QualIdent() too leafy
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/tree/TreeMaker.java
+ test/tools/javac/tree/MakeQualIdent.java
+ test/tools/javac/tree/ScopeTest.java
Changeset: 571f8ebc2d51
Author: vromero
Date: 2013-09-22 12:53 +0100
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/571f8ebc2d51
8024696: Missing null check in bound method reference capture
Reviewed-by: jjg, briangoetz
! src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
! test/tools/javac/lambda/8023558/T8023558a.java
+ test/tools/javac/lambda/methodReferenceExecution/MethodReferenceNullCheckTest.java
Changeset: 86dd72166267
Author: lana
Date: 2013-09-20 19:16 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/86dd72166267
Merge
Changeset: 20b72bae83d7
Author: lana
Date: 2013-09-22 20:20 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/20b72bae83d7
Merge
Changeset: 1fe358ea75ff
Author: alundblad
Date: 2013-09-23 10:10 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/1fe358ea75ff
8024988: javac, LVT test harness should generate tests .class files in the scratch folder
Summary: Set the CLASS_OUTPUT location to the scratch directory. Changed the argument to checkClassFile accordingly.
Reviewed-by: jjg, vromero
! test/tools/javac/flow/LVTHarness.java
Changeset: 5f915a0c9615
Author: alundblad
Date: 2013-09-23 10:42 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/5f915a0c9615
6386236: Please rename com.sun.tools.javac.util.ListBuffer.lb()
Summary: Static factory method ListBuffer.lb removed. Replaced by constructor calls.
Reviewed-by: jfranck, jjg
! src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java
! src/share/classes/com/sun/tools/javac/code/DeferredLintHandler.java
! src/share/classes/com/sun/tools/javac/code/Printer.java
! src/share/classes/com/sun/tools/javac/code/Symbol.java
! src/share/classes/com/sun/tools/javac/code/Type.java
! src/share/classes/com/sun/tools/javac/code/TypeAnnotationPosition.java
! src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
! src/share/classes/com/sun/tools/javac/comp/DeferredAttr.java
! src/share/classes/com/sun/tools/javac/comp/Flow.java
! src/share/classes/com/sun/tools/javac/comp/Infer.java
! src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
! src/share/classes/com/sun/tools/javac/comp/Lower.java
! src/share/classes/com/sun/tools/javac/comp/Resolve.java
! src/share/classes/com/sun/tools/javac/comp/TransTypes.java
! src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
! src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
! src/share/classes/com/sun/tools/javac/jvm/Code.java
! src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
! src/share/classes/com/sun/tools/javac/model/JavacAnnoConstructs.java
! src/share/classes/com/sun/tools/javac/parser/JavacParser.java
! src/share/classes/com/sun/tools/javac/parser/Tokens.java
! src/share/classes/com/sun/tools/javac/util/GraphUtils.java
! src/share/classes/com/sun/tools/javac/util/List.java
! src/share/classes/com/sun/tools/javac/util/ListBuffer.java
! src/share/classes/com/sun/tools/javac/util/Log.java
! test/tools/javac/cast/intersection/IntersectionTypeCastTest.java
! test/tools/javac/lambda/intersection/IntersectionTargetTypeTest.java
! test/tools/javac/scope/7017664/CompoundScopeTest.java
! test/tools/javac/types/TypeHarness.java
Changeset: 809a50f24d6f
Author: kizune
Date: 2013-09-23 17:27 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/809a50f24d6f
7154966: CRs found to be in Fixed state with no test and no noreg- keyword.
Reviewed-by: ksrini
+ test/tools/javac/T7090499.java
+ test/tools/javac/T7090499.out
+ test/tools/javac/T7120463.java
+ test/tools/javac/T7120463.out
+ test/tools/javac/T7126754.java
Changeset: 64e79d38bd07
Author: kizune
Date: 2013-09-23 18:29 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/64e79d38bd07
4881267: improve diagnostic for "instanceof T" for type parameter T
Reviewed-by: vromero, jjg
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
+ test/tools/javac/T4881267.java
+ test/tools/javac/T4881267.out
Changeset: 09301757bb32
Author: emc
Date: 2013-09-23 15:37 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/09301757bb32
6499673: Assertion check for TypeVariable.getUpperBound() fails.
Summary: Fix TypeVariable.getUpperBound to return results as specified
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/code/Type.java
! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/model/JavacTypes.java
! test/tools/javac/cast/intersection/model/Model01.java
! test/tools/javac/cast/intersection/model/ModelChecker.java
+ test/tools/javac/processing/model/type/BoundsTest.java
+ test/tools/javac/processing/model/type/IntersectionPropertiesTest.java
Changeset: 96dcb66e6b0a
Author: jjg
Date: 2013-09-24 10:48 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/96dcb66e6b0a
8025050: Doclint doesn't recognize tag
Reviewed-by: bpatel
! src/share/classes/com/sun/tools/doclint/HtmlTag.java
! test/tools/doclint/html/InlineTagsTest.java
Changeset: 503338f16d2b
Author: jjg
Date: 2013-09-24 10:51 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/503338f16d2b
8025246: [doclint] doclint is showing error on anchor already defined when it's not
Reviewed-by: bpatel
! src/share/classes/com/sun/tools/doclint/Checker.java
+ test/tools/doclint/anchorTests/p/Test.java
+ test/tools/doclint/anchorTests/p/Test.javac.out
+ test/tools/doclint/anchorTests/p/Test.out
+ test/tools/doclint/anchorTests/p/package-info.java
+ test/tools/doclint/anchorTests/p/package-info.javac.out
+ test/tools/doclint/anchorTests/p/package-info.out
Changeset: 6a05a713450d
Author: jjg
Date: 2013-09-24 11:46 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/6a05a713450d
8025272: doclint needs to check for valid usage of @value tag
Reviewed-by: bpatel
! src/share/classes/com/sun/tools/doclint/Checker.java
! src/share/classes/com/sun/tools/doclint/resources/doclint.properties
+ test/tools/doclint/ValueTest.java
+ test/tools/doclint/ValueTest.out
Changeset: 3ae62331a56f
Author: jjg
Date: 2013-09-24 13:48 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/3ae62331a56f
8002154: [doclint] doclint should check for issues which are errors in javadoc
Reviewed-by: bpatel
! src/share/classes/com/sun/tools/doclint/Checker.java
! src/share/classes/com/sun/tools/doclint/resources/doclint.properties
! test/tools/doclint/ReferenceTest.java
! test/tools/doclint/ReferenceTest.out
Changeset: 184c0d6698c3
Author: bpatel
Date: 2013-09-24 16:12 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/184c0d6698c3
8016328: Regression : Javadoc i18n regression caused by fix for 8012375
Reviewed-by: jjg
! src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
! src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
! test/com/sun/javadoc/testHref/TestHref.java
! test/com/sun/javadoc/testJavascript/TestJavascript.java
! test/com/sun/javadoc/testLinkTaglet/TestLinkTaglet.java
! test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java
! test/com/sun/javadoc/testUseOption/TestUseOption.java
Changeset: 5043e7056be8
Author: jjg
Date: 2013-09-25 11:07 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/5043e7056be8
8025407: TypeAnnotations does not use Context
Reviewed-by: jfranck
! src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
Changeset: 1332a99572c5
Author: mfang
Date: 2013-09-24 14:20 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/1332a99572c5
8025215: jdk8 l10n resource file translation update 4
Reviewed-by: naoto, yhuang
! src/share/classes/com/sun/tools/doclets/formats/html/resources/standard_ja.properties
! src/share/classes/com/sun/tools/doclets/formats/html/resources/standard_zh_CN.properties
! src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_ja.properties
! src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets_zh_CN.properties
! src/share/classes/com/sun/tools/doclint/resources/doclint_ja.properties
! src/share/classes/com/sun/tools/doclint/resources/doclint_zh_CN.properties
! src/share/classes/com/sun/tools/javac/resources/compiler_ja.properties
! src/share/classes/com/sun/tools/javac/resources/compiler_zh_CN.properties
! src/share/classes/com/sun/tools/javac/resources/javac_ja.properties
! src/share/classes/com/sun/tools/javac/resources/javac_zh_CN.properties
! src/share/classes/com/sun/tools/javadoc/resources/javadoc_ja.properties
! src/share/classes/com/sun/tools/javadoc/resources/javadoc_zh_CN.properties
! src/share/classes/com/sun/tools/javah/resources/l10n_ja.properties
! src/share/classes/com/sun/tools/javah/resources/l10n_zh_CN.properties
! src/share/classes/com/sun/tools/javap/resources/javap_ja.properties
! src/share/classes/com/sun/tools/javap/resources/javap_zh_CN.properties
Changeset: daa3bfb82e58
Author: mfang
Date: 2013-09-24 14:35 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/daa3bfb82e58
Merge
Changeset: 6b702ace3e45
Author: mfang
Date: 2013-09-25 07:36 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/6b702ace3e45
Merge
Changeset: 68292726000e
Author: mfang
Date: 2013-09-25 14:02 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/68292726000e
Merge
Changeset: 3d61984b077c
Author: jjg
Date: 2013-09-25 14:04 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/3d61984b077c
8025412: Add legal header and comments to test/tools/doclint/tidy/util/Main.java
Reviewed-by: bpatel
! test/tools/doclint/tidy/util/Main.java
! test/tools/doclint/tidy/util/tidy.sh
Changeset: 9e884d3ddb0b
Author: bpatel
Date: 2013-09-25 22:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/9e884d3ddb0b
8004825: javadoc crash DocletAbortException
Reviewed-by: jjg
! src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/doclets.properties
! src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/ValueTaglet.java
! test/com/sun/javadoc/testValueTag/TestValueTag.java
! test/com/sun/javadoc/testValueTag/pkg1/Class1.java
Changeset: 9235ae08a449
Author: jlahoda
Date: 2013-09-26 20:07 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/9235ae08a449
8025491: Javac regression test tools/javac/T8003967/DetectMutableStaticFields.java failing
Summary: Making HtmlTree.NONENCODING_CHARS final
Reviewed-by: jjg
! src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
Changeset: 13eba2e322e6
Author: vromero
Date: 2013-09-26 19:06 +0100
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/13eba2e322e6
8025139: javac patch for using bootstrap compiler for debugging is not working properly
Reviewed-by: jjg
! make/netbeans/langtools/build.xml
! make/tools/anttasks/SelectToolTask.java
Changeset: 17653c4c22ec
Author: sogoel
Date: 2013-09-26 15:04 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/17653c4c22ec
8011738: Write test to check for bootstrap attributes for lambda expressions in class file
Reviewed-by: mcimadamore
+ test/tools/javac/lambda/ByteCodeTest.java
Changeset: 41541097533a
Author: lana
Date: 2013-09-26 17:23 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/41541097533a
Merge
Changeset: af6244ba81b6
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/af6244ba81b6
Added tag jdk8-b110 for changeset 41541097533a
! .hgtags
From john.coomes at oracle.com Thu Oct 3 14:34:22 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 03 Oct 2013 21:34:22 +0000
Subject: hg: hsx/hotspot-rt/nashorn: 21 new changesets
Message-ID: <20131003213443.725DE62D44@hg.openjdk.java.net>
Changeset: 1971c2d770ae
Author: sundar
Date: 2013-09-18 13:06 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/1971c2d770ae
8024972: for (LeftHandSideExpression in Expression) crashes the compiler
Reviewed-by: lagergren, hannesw
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
+ test/script/basic/JDK-8024972.js
+ test/script/basic/JDK-8024972.js.EXPECTED
Changeset: a62172fe5bae
Author: sundar
Date: 2013-09-18 16:36 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/a62172fe5bae
8024973: Using a different ScriptContext with a CompiledScript results in ScriptException
Reviewed-by: jlaskey, hannesw
! src/jdk/nashorn/api/scripting/NashornScriptEngine.java
! src/jdk/nashorn/internal/runtime/Source.java
! test/script/trusted/JDK-8008305.js
! test/src/jdk/nashorn/api/scripting/ScriptEngineTest.java
Changeset: f954d3f4d192
Author: sundar
Date: 2013-09-19 13:34 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/f954d3f4d192
8025048: true as case label results in ClassCastException
Reviewed-by: lagergren
! src/jdk/nashorn/internal/codegen/Attr.java
+ test/script/basic/JDK-8025048-2.js
+ test/script/basic/JDK-8025048.js
Changeset: 740b1133f1b6
Author: hannesw
Date: 2013-09-19 15:39 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/740b1133f1b6
8023154: compileAllTests fails with: 2 tests failed to compile
Reviewed-by: sundar, jlaskey
! make/build-benchmark.xml
! make/build.xml
! make/project.properties
Changeset: 821b0b610861
Author: sundar
Date: 2013-09-19 21:20 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/821b0b610861
8025080: Object literal getter, setter function with number format property name results in ClassFormatError
Reviewed-by: lagergren, hannesw
! src/jdk/nashorn/internal/ir/debug/JSONWriter.java
! src/jdk/nashorn/internal/parser/Parser.java
+ test/script/basic/JDK-8025080.js
+ test/script/basic/JDK-8025080.js.EXPECTED
! test/script/basic/parser/objectLitExpr.js.EXPECTED
Changeset: 18d64bc4937d
Author: sundar
Date: 2013-09-19 23:48 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/18d64bc4937d
8025090: 'while' statement with 'test' using var before being declared in body results in VerifyError
Reviewed-by: jlaskey
! src/jdk/nashorn/internal/ir/WhileNode.java
+ test/script/basic/JDK-8025090.js
Changeset: 195be8ca5c97
Author: sundar
Date: 2013-09-20 12:56 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/195be8ca5c97
8025111: undefined or null 'with' expression in empty with block should throw TypeError
Reviewed-by: lagergren, hannesw
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
+ test/script/basic/JDK-8025111.js
Changeset: fa491b75d3e4
Author: hannesw
Date: 2013-09-20 12:11 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/fa491b75d3e4
8022587: ClassCache is not optimal and leaks Source instances
Reviewed-by: lagergren, attila
! src/jdk/nashorn/internal/objects/Global.java
Changeset: 13210550765c
Author: lana
Date: 2013-09-20 19:17 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/13210550765c
Merge
Changeset: 279f47b353f3
Author: sundar
Date: 2013-09-20 20:55 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/279f47b353f3
8025147: Trailing comma is not allowed in JSONArray and JSONObject
Reviewed-by: hannesw, jlaskey
! src/jdk/nashorn/internal/parser/JSONParser.java
! src/jdk/nashorn/internal/runtime/resources/Messages.properties
+ test/script/basic/JDK-8025147.js
+ test/script/basic/JDK-8025147.js.EXPECTED
Changeset: 16b6db9f7225
Author: sundar
Date: 2013-09-20 22:37 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/16b6db9f7225
8025149: JSON.stringify does not handle 'space' argument as per the spec.
Reviewed-by: jlaskey, hannesw
! src/jdk/nashorn/internal/objects/NativeJSON.java
+ test/script/basic/JDK-8025149.js
+ test/script/basic/JDK-8025149.js.EXPECTED
Changeset: b8d9a63578e2
Author: hannesw
Date: 2013-09-21 10:11 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/b8d9a63578e2
8025163: Date methods should not return -0
Reviewed-by: lagergren, jlaskey
! src/jdk/nashorn/internal/objects/NativeDate.java
+ test/script/basic/JDK-8025163.js
+ test/script/basic/JDK-8025163.js.EXPECTED
Changeset: 8f6304373671
Author: sundar
Date: 2013-09-23 14:20 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/8f6304373671
Merge
Changeset: c5475f5d4647
Author: sundar
Date: 2013-09-24 20:43 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/c5475f5d4647
8025312: parseInt should convert 'radix' argument to ToInt32 even if empty string is parsed
Reviewed-by: jlaskey, hannesw
! src/jdk/nashorn/internal/runtime/GlobalFunctions.java
+ test/script/basic/JDK-8025312.js
+ test/script/basic/JDK-8025312.js.EXPECTED
Changeset: 754ecd62bde3
Author: sundar
Date: 2013-09-25 08:17 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/754ecd62bde3
8025325: parseFloat does not handle '.' in exponent part
Reviewed-by: hannesw
! src/jdk/nashorn/internal/runtime/GlobalFunctions.java
+ test/script/basic/JDK-8025325.js
+ test/script/basic/JDK-8025325.js.EXPECTED
Changeset: 2f8f99e5ed76
Author: hannesw
Date: 2013-09-25 16:37 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/2f8f99e5ed76
8025434: RegExp lastIndex can exceed int range
Reviewed-by: lagergren, sundar
! src/jdk/nashorn/internal/objects/NativeRegExp.java
+ test/script/basic/JDK-8025434.js
Changeset: 712f5e31739b
Author: hannesw
Date: 2013-09-26 10:14 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/712f5e31739b
8025197: String replace method fails with regexp /$/gi
Reviewed-by: sundar
! src/jdk/nashorn/internal/objects/NativeRegExp.java
+ test/script/basic/JDK-8025197.js
+ test/script/basic/JDK-8025197.js.EXPECTED
Changeset: 23958764f866
Author: hannesw
Date: 2013-09-26 11:47 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/23958764f866
8025486: RegExp constructor arguments are not evaluated in right order
Reviewed-by: sundar
! src/jdk/nashorn/internal/objects/NativeRegExp.java
+ test/script/basic/JDK-8025486.js
+ test/script/basic/JDK-8025486.js.EXPECTED
Changeset: f1f027907a69
Author: sundar
Date: 2013-09-26 16:37 +0530
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/f1f027907a69
Merge
Changeset: d49a8c2173f5
Author: lana
Date: 2013-09-26 17:23 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/d49a8c2173f5
Merge
Changeset: 75fd3486e584
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/75fd3486e584
Added tag jdk8-b110 for changeset d49a8c2173f5
! .hgtags
From john.coomes at oracle.com Thu Oct 3 14:01:00 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 03 Oct 2013 21:01:00 +0000
Subject: hg: hsx/hotspot-rt/jdk: 115 new changesets
Message-ID: <20131003212704.C0CF162D41@hg.openjdk.java.net>
Changeset: 529cd4de1823
Author: prr
Date: 2013-09-26 15:06 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/529cd4de1823
7092764: java.awt.font.TransformAttribute.equals(null) throws NPE
Reviewed-by: jgodinez, jchen
! src/share/classes/java/awt/font/TransformAttribute.java
+ test/java/awt/font/TransformAttribute/TransformEqualityTest.java
Changeset: 1bcd48cfb7be
Author: ceisserer
Date: 2013-09-26 16:30 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/1bcd48cfb7be
8024895: xrender MaskImage cache isn't accounting for change in alpha
Reviewed-by: prr, jchen
! src/solaris/classes/sun/java2d/xr/XRMaskImage.java
+ test/java/awt/image/DrawImage/EABlitTest.java
Changeset: dae020405903
Author: lana
Date: 2013-09-26 17:13 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/dae020405903
Merge
Changeset: 0151f12bd392
Author: malenkov
Date: 2013-08-22 17:17 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/0151f12bd392
8023536: Some regression tests have a wrong header
Reviewed-by: alexsch
! test/java/beans/Performance/Test7122740.java
! test/java/beans/Performance/Test7184799.java
! test/javax/swing/JTree/8013571/Test8013571.java
Changeset: b71f112dab2a
Author: malenkov
Date: 2013-08-22 21:05 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/b71f112dab2a
7057769: JScrollBar spec should specify that unit increment & decrement functionality may not be present
Reviewed-by: alexsch
! src/share/classes/javax/swing/JScrollBar.java
Changeset: f983fd18dd81
Author: malenkov
Date: 2013-08-23 19:29 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/f983fd18dd81
7080613: java.beans.DefaultPersistenceDelegate.instantiate(..) doesn't throw NPE
Reviewed-by: alexsch
! src/share/classes/java/beans/DefaultPersistenceDelegate.java
! src/share/classes/java/beans/PersistenceDelegate.java
Changeset: 22ef5187a3e6
Author: dmarkov
Date: 2013-08-26 17:21 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/22ef5187a3e6
8023474: First mousepress doesn't start editing in JTree
Reviewed-by: alexp, anthony
! src/share/classes/java/awt/Component.java
! src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java
! src/share/classes/sun/awt/AWTAccessor.java
+ test/javax/swing/plaf/basic/BasicTreeUI/8023474/bug8023474.java
Changeset: abd068530590
Author: malenkov
Date: 2013-08-27 12:53 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/abd068530590
7195179: ClassCastException for null values in JComboBox
Reviewed-by: alexsch
! src/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java
+ test/javax/swing/JComboBox/7195179/Test7195179.java
Changeset: 92adff44c841
Author: malenkov
Date: 2013-08-27 13:13 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/92adff44c841
8021379: JFileChooser Create New Folder button enabled in write proteced directory
Reviewed-by: alexsch
! src/share/classes/sun/swing/FilePane.java
Changeset: 4bfcf9c5ced3
Author: malenkov
Date: 2013-08-27 13:37 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/4bfcf9c5ced3
8022398: javax/swing/JFileChooser/8013442/Test8013442.java fails
Reviewed-by: alexsch
! src/macosx/classes/com/apple/laf/AquaFileChooserUI.java
! src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java
! src/share/classes/com/sun/java/swing/plaf/motif/MotifFileChooserUI.java
! src/share/classes/com/sun/java/swing/plaf/windows/WindowsFileChooserUI.java
! src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
+ src/share/classes/sun/swing/AbstractFilterComboBoxModel.java
! src/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java
Changeset: e11ed7187b0c
Author: lana
Date: 2013-08-27 21:46 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/e11ed7187b0c
Merge
- src/share/classes/com/sun/security/auth/PolicyParser.java
- src/share/classes/com/sun/security/auth/SubjectCodeSource.java
- src/share/classes/java/util/jar/UnsupportedProfileException.java
- src/share/classes/sun/security/provider/ConfigSpiFile.java
- test/java/net/URLClassLoader/profiles/Basic.java
- test/java/net/URLClassLoader/profiles/Lib.java
- test/java/net/URLClassLoader/profiles/basic.sh
- test/tools/jar/AddAndUpdateProfile.java
- test/tools/launcher/profiles/Basic.java
- test/tools/launcher/profiles/Logging.java
- test/tools/launcher/profiles/Main.java
- test/tools/launcher/profiles/VersionCheck.java
Changeset: 43de418f1345
Author: ptbrunet
Date: 2013-08-28 17:25 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/43de418f1345
8011955: Lunar screen reader crashes intermittently in WindowsAccessBridge-32.DLL
6995891: JAWS will occasionally stop speaking focused objects as user TABs -> problem with message queue
8014738: Combobox menu items are not announced with JAWS
8011938: Java Ferret example corrupts JCombobox of the running application
8012011: JAB 2.0.2 incompletely shows kbd accelerator in menus
8022966: Java Access Bridge no longer usable with screen magnifiers
Reviewed-by: raginip, tbell, erikj, art
! make/bridge/AccessBridgeJava/Makefile
! makefiles/CompileJavaClasses.gmk
! makefiles/GensrcMisc.gmk
Changeset: 35644adc3269
Author: malenkov
Date: 2013-08-28 17:32 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/35644adc3269
6968363: ClassCastException while entering HINDI characters with CustomDocument
Reviewed-by: alexsch
! src/share/classes/javax/swing/text/AbstractDocument.java
! src/share/classes/javax/swing/text/DefaultCaret.java
! src/share/classes/javax/swing/text/GlyphPainter2.java
! src/share/classes/javax/swing/text/ParagraphView.java
+ test/javax/swing/text/AbstractDocument/6968363/Test6968363.java
Changeset: 6432f8749e1d
Author: pchelko
Date: 2013-08-30 11:11 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/6432f8749e1d
8023966: JViewPort.BLIT_SCROLL_MODE does not work in JLightweightFrame
Reviewed-by: anthony, ant
! src/share/classes/javax/swing/JViewport.java
Changeset: 7151f08eeadf
Author: alexsch
Date: 2013-08-30 13:28 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/7151f08eeadf
8022401: [macosx] javax/swing/text/JTextComponent/5074573/bug5074573.java fails
Reviewed-by: anthony
! src/macosx/native/sun/awt/AWTEvent.m
+ test/java/awt/event/KeyEvent/KeyChar/KeyCharTest.java
Changeset: f2f614e31522
Author: malenkov
Date: 2013-09-02 14:06 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/f2f614e31522
7156658: JTextComponent.setFocusAccelerator() spec does not state that focus accelerator is L&F dependent
Reviewed-by: alexsch
! src/share/classes/javax/swing/text/JTextComponent.java
Changeset: 6ffa2680e139
Author: art
Date: 2013-09-02 16:48 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/6ffa2680e139
8022184: Fix static , Raw warnings in classes belonging to java.awt
Reviewed-by: art, anthony
Contributed-by: Srikalyan Chandrashekar
! src/share/classes/java/awt/AWTKeyStroke.java
! src/share/classes/java/awt/CardLayout.java
! src/share/classes/java/awt/ContainerOrderFocusTraversalPolicy.java
! src/share/classes/java/awt/DefaultKeyboardFocusManager.java
! src/share/classes/java/awt/GradientPaintContext.java
! src/share/classes/java/awt/GraphicsEnvironment.java
! src/share/classes/java/awt/KeyboardFocusManager.java
! src/share/classes/java/awt/SequencedEvent.java
! src/share/classes/java/awt/TexturePaintContext.java
! src/share/classes/java/awt/WaitDispatchSupport.java
Changeset: b5ed8686cc01
Author: malenkov
Date: 2013-09-03 11:00 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/b5ed8686cc01
6943780: JTabbedPane throws ArrayIndexOutOfBoundsException sometimes
Reviewed-by: alexsch
! src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
+ test/javax/swing/plaf/basic/BasicTabbedPaneUI/Test6943780.java
Changeset: 80a8c4ff3b51
Author: alexsch
Date: 2013-09-03 17:27 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/80a8c4ff3b51
8007156: [macosx] Wrong events in processKeyBinding of JTable Submit Date
Reviewed-by: leonidr
! src/macosx/classes/sun/lwawt/LWComponentPeer.java
! src/macosx/classes/sun/lwawt/LWWindowPeer.java
+ test/java/awt/event/KeyEvent/ExtendedKeyCode/ExtendedKeyCodeTest.java
Changeset: 2ad01ecbaf90
Author: malenkov
Date: 2013-09-03 21:53 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2ad01ecbaf90
7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
Reviewed-by: art, alexsch
! src/share/classes/java/beans/IndexedPropertyDescriptor.java
! src/share/classes/java/beans/MethodDescriptor.java
+ src/share/classes/java/beans/MethodRef.java
! src/share/classes/java/beans/PropertyDescriptor.java
+ test/java/beans/Introspector/Test7172865.java
Changeset: ba711056009f
Author: pchelko
Date: 2013-09-04 14:32 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/ba711056009f
8021943: FileDialog getFile returns corrupted string after previous setFile
Reviewed-by: anthony, serb
Contributed-by: alexander.zvegintsev at oracle.com
! src/windows/native/sun/windows/awt_FileDialog.cpp
Changeset: ba041df8a554
Author: mcherkas
Date: 2013-09-04 18:12 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/ba041df8a554
8023565: JPG causes javax.imageio.IIOException: ICC APP2 encoutered without prior JFIF
Reviewed-by: bae, vadim
! src/share/classes/com/sun/imageio/plugins/jpeg/JPEGMetadata.java
Changeset: e4ba3d9ea041
Author: mcherkas
Date: 2013-09-05 15:37 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/e4ba3d9ea041
8023392: Swing text components printed with spaces between chars
Reviewed-by: alexsch, alexp
Contributed-by: anton.nashatyrev at oracle.com
! src/share/classes/sun/swing/SwingUtilities2.java
+ test/java/awt/print/bug8023392/bug8023392.html
+ test/java/awt/print/bug8023392/bug8023392.java
Changeset: d267c066b006
Author: lana
Date: 2013-09-06 15:09 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/d267c066b006
Merge
- src/share/classes/sun/misc/Compare.java
- src/share/classes/sun/misc/Sort.java
Changeset: fbb6f976d780
Author: alexsch
Date: 2013-09-09 17:14 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/fbb6f976d780
8024413: Add tests for issues JDK-8002077 and JDK-7199708
Reviewed-by: malenkov, leonidr
+ test/javax/swing/JFileChooser/7199708/bug7199708.java
+ test/javax/swing/JFileChooser/8002077/bug8002077.java
Changeset: 3ea08767fc0d
Author: alexsch
Date: 2013-09-09 18:34 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/3ea08767fc0d
8020060: MoleculeViewerTest demo doesn't work due to SecurityPermissions
Reviewed-by: malenkov, erikj
! makefiles/CompileDemos.gmk
! src/share/demo/applets/MoleculeViewer/XYZApp.java
! src/share/demo/applets/MoleculeViewer/example1.html
! src/share/demo/applets/MoleculeViewer/example2.html
! src/share/demo/applets/MoleculeViewer/example3.html
! src/share/demo/applets/WireFrame/ThreeD.java
! src/share/demo/applets/WireFrame/example1.html
! src/share/demo/applets/WireFrame/example2.html
! src/share/demo/applets/WireFrame/example3.html
! src/share/demo/applets/WireFrame/example4.html
Changeset: fc5d16fec25f
Author: serb
Date: 2013-09-09 21:03 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/fc5d16fec25f
8023042: Inaccuracy in documentation in a sound area
Reviewed-by: prr
! src/share/classes/javax/sound/sampled/AudioFileFormat.java
! src/share/classes/javax/sound/sampled/AudioFormat.java
Changeset: 9d0d961fb1cd
Author: pchelko
Date: 2013-09-10 11:00 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/9d0d961fb1cd
8024381: The test for 8020210 does not have @bug tag
Reviewed-by: anthony, serb
! test/java/awt/Window/MaximizeOffscreen/MaximizeOffscreenTest.java
Changeset: 8b6dace81d6c
Author: alexsch
Date: 2013-09-10 14:33 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/8b6dace81d6c
8021253: JFileChooser does not react on pressing enter since java 7
Reviewed-by: malenkov
! src/share/classes/javax/swing/JFileChooser.java
+ test/javax/swing/JFileChooser/8021253/bug8021253.java
Changeset: 1daffcf035c4
Author: malenkov
Date: 2013-09-10 17:06 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/1daffcf035c4
7057770: (spec)Scrollbar spec should specify that unit increment & decrement functionality may not be present
Reviewed-by: alexsch
! src/share/classes/java/awt/Scrollbar.java
Changeset: eedb2b6d93ec
Author: malenkov
Date: 2013-09-10 17:12 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/eedb2b6d93ec
8024407: [macosx] javax/swing/JScrollBar/7163696/Test7163696.java failed intermittently on macos
Reviewed-by: alexsch
! test/javax/swing/JScrollBar/7163696/Test7163696.java
Changeset: 0cc00c11e17e
Author: leonidr
Date: 2013-09-10 20:42 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/0cc00c11e17e
8003901: [macosx] Need test for JDK-8002114
Reviewed-by: anthony, serb
! test/javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java
Changeset: 04fbd34fda7b
Author: bagiras
Date: 2013-09-12 14:56 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/04fbd34fda7b
8003965: Toolkit.beep() documentation is ambiguous
Reviewed-by: anthony
! src/share/classes/java/awt/Toolkit.java
Changeset: def1fa9854f7
Author: bagiras
Date: 2013-09-12 15:50 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/def1fa9854f7
7064312: Cleanup: avoid using unsafe string function
Reviewed-by: serb, pchelko
! src/windows/native/sun/windows/awt_FileDialog.cpp
! src/windows/native/sun/windows/awt_Font.cpp
! src/windows/native/sun/windows/awt_PrintControl.cpp
! src/windows/native/sun/windows/awt_Toolkit.cpp
! src/windows/native/sun/windows/awt_TrayIcon.cpp
! src/windows/native/sun/windows/awt_ole.cpp
Changeset: 6321e4429a38
Author: serb
Date: 2013-09-12 18:21 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/6321e4429a38
7124537: [macosx] Menu shortcuts for all menu items should be disabled if a menu itself is disabled
Reviewed-by: anthony, leonidr
! src/macosx/classes/sun/lwawt/macosx/CMenu.java
! src/macosx/classes/sun/lwawt/macosx/CMenuItem.java
! src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
Changeset: 3213c388740a
Author: dmarkov
Date: 2013-09-12 18:44 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/3213c388740a
8024395: Improve fix for line break calculations
Reviewed-by: alexp, alexsch
! src/share/classes/javax/swing/text/FlowView.java
! src/share/classes/javax/swing/text/View.java
! test/javax/swing/text/View/8014863/bug8014863.java
Changeset: ef2f0c15b332
Author: pchelko
Date: 2013-09-13 11:58 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/ef2f0c15b332
8024170: [SwingNode] Implement cursor change
Reviewed-by: anthony, ant
! src/macosx/classes/sun/lwawt/LWLightweightFramePeer.java
! src/share/classes/sun/swing/JLightweightFrame.java
! src/share/classes/sun/swing/LightweightContent.java
! src/share/classes/sun/swing/SwingAccessor.java
! src/solaris/classes/sun/awt/X11/XLightweightFramePeer.java
! src/windows/classes/sun/awt/windows/WComponentPeer.java
! src/windows/classes/sun/awt/windows/WLightweightFramePeer.java
Changeset: 12788c245d67
Author: pchelko
Date: 2013-09-13 17:25 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/12788c245d67
8015453: java/awt/DataFlavor/MissedHtmlAndRtfBug/MissedHtmlAndRtfBug.java failed on windows with jdk8 since b86
Reviewed-by: art, serb
! src/share/classes/sun/awt/datatransfer/DataTransferer.java
Changeset: df107b1f2f2e
Author: pchelko
Date: 2013-09-13 17:38 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/df107b1f2f2e
8015371: The HTML text without tags does not appear inside the WordPad application, and we try to click the button, but the case exits.
Reviewed-by: anthony, serb
! src/windows/classes/sun/awt/windows/WDataTransferer.java
Changeset: 40fdf56c09a9
Author: pchelko
Date: 2013-09-13 17:41 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/40fdf56c09a9
8015455: java/awt/dnd/DisposeFrameOnDragCrash/DisposeFrameOnDragTest.java hangs on windows
Reviewed-by: serb, anthony
! src/share/classes/java/awt/dnd/DropTarget.java
! src/share/classes/javax/swing/TransferHandler.java
Changeset: 915d13946f18
Author: mcherkas
Date: 2013-09-13 17:48 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/915d13946f18
8015601: [macosx] Test javax/swing/JInternalFrame/InternalFrameIsNotCollectedTest.java fails on MacOS X
Reviewed-by: alexp, alexsch
! test/javax/swing/JInternalFrame/InternalFrameIsNotCollectedTest.java
Changeset: ad52e924c55a
Author: kshefov
Date: 2013-09-13 17:54 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/ad52e924c55a
8006087: [TEST_BUG] The BACKSPACE key doesn't work and after pressing 'cancel' and 'DONE' button, the case pass automatically.
Reviewed-by: alexsch, serb
! test/javax/swing/JFileChooser/4150029/bug4150029.html
! test/javax/swing/JFileChooser/4150029/bug4150029.java
Changeset: c8a85165b725
Author: kshefov
Date: 2013-09-13 17:58 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/c8a85165b725
8015597: [TEST_BUG] [macosx] Test closed/javax/swing/JMenuBar/4750590/bug4750590.java fails since JDK 8 b75 on MacOSX
Reviewed-by: alexsch, serb
+ test/javax/swing/JMenuBar/4750590/bug4750590.java
Changeset: 17cc8f13e4e7
Author: pchelko
Date: 2013-09-13 18:02 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/17cc8f13e4e7
8012026: [macosx] Component.getMousePosition() does not work in an applet on MacOS
Reviewed-by: anthony, serb
! make/sun/lwawt/FILES_export_macosx.gmk
- src/macosx/classes/sun/lwawt/macosx/CMouseInfoPeer.java
! src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
! src/macosx/native/sun/awt/AWTView.m
+ test/java/awt/Mouse/GetMousePositionTest/GetMousePositionWithOverlay.java
+ test/java/awt/Mouse/GetMousePositionTest/GetMousePositionWithPopup.java
Changeset: a46d22ee4d4b
Author: alexsch
Date: 2013-09-16 17:45 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/a46d22ee4d4b
8008728: [macosx] Swing. JDialog. Modal dialog goes to background
Reviewed-by: serb
! src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
! src/macosx/native/sun/awt/AWTWindow.m
+ test/java/awt/Modal/ModalDialogOrderingTest/ModalDialogOrderingTest.java
Changeset: 8f5b4e7623cf
Author: ant
Date: 2013-09-16 18:00 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/8f5b4e7623cf
8022512: JLightweightFrame: the content pane should be transparent
Reviewed-by: anthony
! src/share/classes/sun/swing/JLightweightFrame.java
Changeset: 49c7d299a504
Author: kshefov
Date: 2013-09-16 19:15 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/49c7d299a504
7020060: [TEST_BUG] java/awt/FullScreen/TranslucentWindow/TranslucentWindow.java failed
Reviewed-by: anthony, serb
! test/java/awt/FullScreen/TranslucentWindow/TranslucentWindow.java
Changeset: 98080e9367be
Author: kshefov
Date: 2013-09-16 19:21 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/98080e9367be
8015588: [TEST_BUG] [macosx] Test java/awt/MenuBar/MenuBarSetFont/MenuBarSetFont.java fails on MacOSX
Reviewed-by: anthony, serb
! test/java/awt/MenuBar/MenuBarSetFont/MenuBarSetFont.java
Changeset: 04612a52e7bd
Author: pchelko
Date: 2013-09-16 19:38 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/04612a52e7bd
8024779: [macosx] SwingNode crashes on exit
Reviewed-by: anthony, ant
! src/macosx/native/sun/awt/AWTView.m
! src/macosx/native/sun/awt/AWTWindow.m
Changeset: 4e88bf592830
Author: pchelko
Date: 2013-09-16 19:44 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/4e88bf592830
8024485: For 5-1 step: if input something into the 'File:' and 'Dir:', the dir output isn't empty in the output window after showing and canceling the file dialog
Reviewed-by: serb, anthony
! src/windows/classes/sun/awt/windows/WFileDialogPeer.java
Changeset: 8530456e0091
Author: omajid
Date: 2013-09-16 15:43 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/8530456e0091
8024863: X11: Support GNOME Shell as mutter
Reviewed-by: anthony
! src/solaris/classes/sun/awt/X11/XWM.java
Changeset: 4899f6734a14
Author: ant
Date: 2013-09-18 12:25 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/4899f6734a14
8024839: [Unified Swing/Fx threading] don't schedule an event dispatching from the event dispatch thread
Reviewed-by: anthony, pchelko
! src/share/classes/java/awt/EventQueue.java
Changeset: cc7a15f4c735
Author: mcherkas
Date: 2013-09-18 15:12 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/cc7a15f4c735
8016746: Test javax/swing/JTable/7068740/bug7068740.java fails
Reviewed-by: serb, alexsch
! test/javax/swing/JTable/7068740/bug7068740.java
Changeset: 2c240454c192
Author: leonidr
Date: 2013-09-18 18:36 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2c240454c192
7188071: closed/java/awt/TrayIcon/TrayIconSecurity/GrantedTrayIconTest fails
Reviewed-by: anthony, serb
! src/solaris/classes/sun/awt/X11/XTrayIconPeer.java
Changeset: 20b1135647fa
Author: lana
Date: 2013-09-18 16:01 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/20b1135647fa
Merge
! src/share/classes/java/awt/Toolkit.java
- src/share/classes/java/util/stream/CloseableStream.java
- src/share/classes/java/util/stream/DelegatingStream.java
! src/share/classes/sun/swing/SwingUtilities2.java
! src/windows/native/sun/windows/awt_PrintControl.cpp
- test/java/util/Collection/ListDefaults.java
- test/java/util/Map/CheckRandomHashSeed.java
- test/java/util/Map/TreeBinSplitBackToEntries.java
- test/java/util/concurrent/ConcurrentHashMap/toArray.java
- test/sun/tools/jconsole/ImmutableResourceTest.java
- test/sun/tools/jconsole/ImmutableResourceTest.sh
Changeset: e292d504ad68
Author: leonidr
Date: 2013-09-19 22:33 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/e292d504ad68
7144065: [macosx] Orphaned Choice popup window
Reviewed-by: anthony, serb
Contributed-by: alexander.potochkin at oracle.com
! src/macosx/classes/sun/lwawt/LWChoicePeer.java
Changeset: 602e5d0141d3
Author: leonidr
Date: 2013-09-19 23:46 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/602e5d0141d3
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
Reviewed-by: anthony, serb
! makefiles/GensrcProperties.gmk
+ src/macosx/classes/sun/awt/resources/awtosx.properties
! src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
! src/share/classes/java/awt/Toolkit.java
! src/share/classes/sun/awt/AWTAccessor.java
+ test/java/awt/Toolkit/ToolkitPropertyTest/bug7129133.java
Changeset: c04e55e17066
Author: kshefov
Date: 2013-09-20 17:07 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/c04e55e17066
7124314: [TEST_BUG] [macosx] Aqua LAF: JTree doesn't select element by keyboards left and right keys
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JTree/4927934/bug4927934.java
Changeset: 6c1f9468f3de
Author: kshefov
Date: 2013-09-20 17:16 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/6c1f9468f3de
8017180: [macosx] [TEST_BUG] alt-key doesn't work on macos for menu
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/java/awt/Focus/KeyEventForBadFocusOwnerTest/KeyEventForBadFocusOwnerTest.java
+ test/javax/swing/JMenuItem/4171437/bug4171437.java
+ test/javax/swing/JPopupMenu/4458079/bug4458079.java
Changeset: f139aef966fd
Author: kshefov
Date: 2013-09-20 17:35 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/f139aef966fd
7124232: [TEST_BUG] [macosx] JSplitPane has wrong divider location
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JSplitPane/4816114/bug4816114.java
Changeset: abebe03818f6
Author: malenkov
Date: 2013-09-20 18:56 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/abebe03818f6
7024235: Nimbus L&F: wrong "packing" of a frame containing tabbed pane
Reviewed-by: alexsch
! src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
+ test/javax/swing/JTabbedPane/7024235/Test7024235.java
Changeset: 2ac59698de38
Author: kshefov
Date: 2013-09-23 16:14 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2ac59698de38
8015600: [TEST_BUG] [macosx] Test closed/javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java fails since JDK 8 b75 on MacOSX
Reviewed-by: alexsch, serb
+ test/javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java
Changeset: eac52fe3990c
Author: serb
Date: 2013-09-23 16:17 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/eac52fe3990c
8005255: [macosx] Cleanup warnings in sun.lwawt
Reviewed-by: alexsch, anthony
! make/sun/lwawt/FILES_export_macosx.gmk
! src/macosx/classes/sun/lwawt/LWButtonPeer.java
! src/macosx/classes/sun/lwawt/LWCanvasPeer.java
! src/macosx/classes/sun/lwawt/LWCheckboxPeer.java
! src/macosx/classes/sun/lwawt/LWChoicePeer.java
! src/macosx/classes/sun/lwawt/LWComponentPeer.java
! src/macosx/classes/sun/lwawt/LWContainerPeer.java
! src/macosx/classes/sun/lwawt/LWCursorManager.java
! src/macosx/classes/sun/lwawt/LWLabelPeer.java
! src/macosx/classes/sun/lwawt/LWListPeer.java
! src/macosx/classes/sun/lwawt/LWMouseInfoPeer.java
! src/macosx/classes/sun/lwawt/LWPanelPeer.java
! src/macosx/classes/sun/lwawt/LWRepaintArea.java
! src/macosx/classes/sun/lwawt/LWScrollBarPeer.java
! src/macosx/classes/sun/lwawt/LWScrollPanePeer.java
! src/macosx/classes/sun/lwawt/LWTextAreaPeer.java
! src/macosx/classes/sun/lwawt/LWTextComponentPeer.java
! src/macosx/classes/sun/lwawt/LWTextFieldPeer.java
! src/macosx/classes/sun/lwawt/LWToolkit.java
! src/macosx/classes/sun/lwawt/LWWindowPeer.java
- src/macosx/classes/sun/lwawt/SelectionClearListener.java
Changeset: 2684fd4e9f3b
Author: serb
Date: 2013-09-23 17:55 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2684fd4e9f3b
7172833: For default java.awt.Toolkit impl methods java.awt.Toolkit.is/setDynamicLayout() are not consistent
Reviewed-by: alexsch, anthony
! src/share/classes/java/awt/Toolkit.java
+ test/java/awt/Toolkit/DynamicLayout/bug7172833.java
Changeset: d73d3a29065c
Author: serb
Date: 2013-09-23 21:24 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/d73d3a29065c
8019282: keyRelesed is reached even though key was NOT released
Reviewed-by: serb, anthony
Contributed-by: alexander.zvegintsev at oracle.com
! make/sun/xawt/mapfile-vers
! makefiles/mapfiles/libawt_xawt/mapfile-vers
! src/solaris/classes/sun/awt/X11/XToolkit.java
! src/solaris/classes/sun/awt/X11/XlibWrapper.java
! src/solaris/native/sun/xawt/XlibWrapper.c
Changeset: 8c0b943a0090
Author: yan
Date: 2013-09-24 12:25 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/8c0b943a0090
8025114: Eliminate doclint errors in java.awt.dnd package javadoc
Reviewed-by: serb, alexsch
! src/share/classes/java/awt/dnd/DragGestureRecognizer.java
! src/share/classes/java/awt/dnd/DragSource.java
! src/share/classes/java/awt/dnd/DragSourceContext.java
! src/share/classes/java/awt/dnd/DragSourceDragEvent.java
! src/share/classes/java/awt/dnd/DragSourceDropEvent.java
! src/share/classes/java/awt/dnd/DragSourceEvent.java
! src/share/classes/java/awt/dnd/DropTarget.java
! src/share/classes/java/awt/dnd/DropTargetDragEvent.java
! src/share/classes/java/awt/dnd/DropTargetDropEvent.java
Changeset: 1303823e89da
Author: yan
Date: 2013-09-24 16:36 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/1303823e89da
8025230: [cleanup] some more javadoc formatting fixes for swing
Reviewed-by: alexsch
! src/share/classes/javax/swing/JPanel.java
! src/share/classes/javax/swing/JPasswordField.java
! src/share/classes/javax/swing/JPopupMenu.java
! src/share/classes/javax/swing/JRadioButton.java
! src/share/classes/javax/swing/JRadioButtonMenuItem.java
! src/share/classes/javax/swing/JRootPane.java
! src/share/classes/javax/swing/JScrollPane.java
! src/share/classes/javax/swing/JSeparator.java
! src/share/classes/javax/swing/JSlider.java
! src/share/classes/javax/swing/JSpinner.java
! src/share/classes/javax/swing/JSplitPane.java
! src/share/classes/javax/swing/JTable.java
! src/share/classes/javax/swing/JTextArea.java
! src/share/classes/javax/swing/JTextField.java
! src/share/classes/javax/swing/JToolBar.java
! src/share/classes/javax/swing/JToolTip.java
! src/share/classes/javax/swing/JTree.java
! src/share/classes/javax/swing/JViewport.java
! src/share/classes/javax/swing/KeyStroke.java
! src/share/classes/javax/swing/OverlayLayout.java
! src/share/classes/javax/swing/ProgressMonitor.java
! src/share/classes/javax/swing/SizeRequirements.java
! src/share/classes/javax/swing/SizeSequence.java
Changeset: d580e0bc85d9
Author: yan
Date: 2013-09-24 17:04 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/d580e0bc85d9
8025117: [cleanup] Eliminate doclint errors in javax/swing/text classes
Reviewed-by: alexsch
! src/share/classes/javax/swing/JLayer.java
! src/share/classes/javax/swing/RowFilter.java
! src/share/classes/javax/swing/plaf/TextUI.java
! src/share/classes/javax/swing/plaf/basic/BasicTextUI.java
! src/share/classes/javax/swing/text/AttributeSet.java
! src/share/classes/javax/swing/text/BadLocationException.java
! src/share/classes/javax/swing/text/BoxView.java
! src/share/classes/javax/swing/text/Caret.java
! src/share/classes/javax/swing/text/ComponentView.java
! src/share/classes/javax/swing/text/CompositeView.java
! src/share/classes/javax/swing/text/DefaultEditorKit.java
! src/share/classes/javax/swing/text/DefaultHighlighter.java
! src/share/classes/javax/swing/text/DefaultStyledDocument.java
! src/share/classes/javax/swing/text/Document.java
! src/share/classes/javax/swing/text/DocumentFilter.java
! src/share/classes/javax/swing/text/EditorKit.java
! src/share/classes/javax/swing/text/FieldView.java
! src/share/classes/javax/swing/text/FlowView.java
! src/share/classes/javax/swing/text/GapContent.java
! src/share/classes/javax/swing/text/GlyphView.java
! src/share/classes/javax/swing/text/Highlighter.java
! src/share/classes/javax/swing/text/IconView.java
! src/share/classes/javax/swing/text/NavigationFilter.java
! src/share/classes/javax/swing/text/ParagraphView.java
! src/share/classes/javax/swing/text/PasswordView.java
! src/share/classes/javax/swing/text/PlainDocument.java
! src/share/classes/javax/swing/text/PlainView.java
! src/share/classes/javax/swing/text/Position.java
! src/share/classes/javax/swing/text/StringContent.java
! src/share/classes/javax/swing/text/StyleContext.java
! src/share/classes/javax/swing/text/StyledDocument.java
! src/share/classes/javax/swing/text/StyledEditorKit.java
! src/share/classes/javax/swing/text/TabExpander.java
! src/share/classes/javax/swing/text/TabableView.java
! src/share/classes/javax/swing/text/TableView.java
! src/share/classes/javax/swing/text/Utilities.java
! src/share/classes/javax/swing/text/View.java
! src/share/classes/javax/swing/text/WrappedPlainView.java
! src/share/classes/javax/swing/text/ZoneView.java
! src/share/classes/javax/swing/text/html/BlockView.java
! src/share/classes/javax/swing/text/html/CSS.java
! src/share/classes/javax/swing/text/html/FormView.java
! src/share/classes/javax/swing/text/html/HTMLDocument.java
Changeset: 58178aec7e81
Author: kshefov
Date: 2013-09-24 17:46 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/58178aec7e81
7124320: [TEST_BUG] [macosx] JComboBox doesn't change selection on mouse over
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JComboBox/6236162/bug6236162.java
Changeset: f500844c2253
Author: kshefov
Date: 2013-09-24 17:56 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/f500844c2253
7133154: [TEST_BUG] [macosx] closed/javax/swing/JInternalFrame/4251301/bug4251301.java fails on MacOS
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JInternalFrame/4251301/bug4251301.java
Changeset: 967557d5b90a
Author: kshefov
Date: 2013-09-24 18:13 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/967557d5b90a
7133146: [macosx] closed/javax/swing/JInternalFrame/4193219/IconCoord fails on MacOS
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JInternalFrame/4193219/IconCoord.java
Changeset: 3982dd1210ba
Author: kshefov
Date: 2013-09-24 18:20 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/3982dd1210ba
8015599: [TEST_BUG] [macosx] Test closed/javax/swing/Popup/TaskbarPositionTest.java fails since JDK 8 b75 on MacOSX
Reviewed-by: alexsch, serb
+ test/javax/swing/Popup/TaskbarPositionTest.java
Changeset: 2ed1584d62c5
Author: leonidr
Date: 2013-09-24 18:24 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2ed1584d62c5
8022555: [macosx] AppleScriptEngine.jar MUST call java.awt.Toolkit.getDefaultToolkit() lazily
Reviewed-by: anthony, serb
! src/macosx/classes/apple/applescript/AppleScriptEngineFactory.java
Changeset: a284da808700
Author: malenkov
Date: 2013-09-25 14:06 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/a284da808700
8023310: Thread contention in the method Beans.IsDesignTime()
Reviewed-by: art, sfriberg
! src/share/classes/java/beans/ThreadGroupContext.java
! src/share/classes/java/beans/WeakIdentityMap.java
Changeset: 10e66428ddb0
Author: alexsch
Date: 2013-09-25 16:17 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/10e66428ddb0
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
Reviewed-by: serb, anthony
! src/macosx/classes/sun/lwawt/LWCursorManager.java
! src/share/classes/java/awt/Container.java
! src/share/classes/sun/awt/AWTAccessor.java
! src/share/classes/sun/awt/GlobalCursorManager.java
! src/solaris/classes/sun/awt/X11/XGlobalCursorManager.java
! src/windows/classes/sun/awt/windows/WGlobalCursorManager.java
! src/windows/native/sun/windows/awt_Container.cpp
! src/windows/native/sun/windows/awt_Container.h
! src/windows/native/sun/windows/awt_Cursor.cpp
+ test/java/awt/Cursor/CursorOverlappedPanelsTest/CursorOverlappedPanelsTest.html
+ test/java/awt/Cursor/CursorOverlappedPanelsTest/CursorOverlappedPanelsTest.java
Changeset: 7cad8ef127a9
Author: pchelko
Date: 2013-09-25 16:12 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/7cad8ef127a9
8024987: Copy/paste regression since JDK8 b86
Reviewed-by: serb, anthony
! src/share/classes/java/awt/datatransfer/SystemFlavorMap.java
Changeset: cff4f079fa3f
Author: kshefov
Date: 2013-09-25 16:52 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/cff4f079fa3f
8004032: [TEST_BUG] [macosx] There is no effect when double clicking on the Icon, after right clicking on the Icon and the Icon disappear
Reviewed-by: anthony, serb
+ test/java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.html
+ test/java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.java
Changeset: 681ac9f9c452
Author: alexsch
Date: 2013-09-25 17:08 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/681ac9f9c452
8025070: [javadoc] fix some javadoc errors in javax/swing/plaf/synth
Reviewed-by: serb, alexsch
Contributed-by: Alexander Stepanov
! src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java
! src/share/classes/javax/swing/plaf/synth/SynthCheckBoxMenuItemUI.java
! src/share/classes/javax/swing/plaf/synth/SynthCheckBoxUI.java
! src/share/classes/javax/swing/plaf/synth/SynthColorChooserUI.java
! src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java
! src/share/classes/javax/swing/plaf/synth/SynthDesktopIconUI.java
! src/share/classes/javax/swing/plaf/synth/SynthDesktopPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthEditorPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthFormattedTextFieldUI.java
! src/share/classes/javax/swing/plaf/synth/SynthInternalFrameUI.java
! src/share/classes/javax/swing/plaf/synth/SynthLabelUI.java
! src/share/classes/javax/swing/plaf/synth/SynthListUI.java
! src/share/classes/javax/swing/plaf/synth/SynthMenuBarUI.java
! src/share/classes/javax/swing/plaf/synth/SynthMenuItemUI.java
! src/share/classes/javax/swing/plaf/synth/SynthMenuLayout.java
! src/share/classes/javax/swing/plaf/synth/SynthMenuUI.java
! src/share/classes/javax/swing/plaf/synth/SynthOptionPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthPainter.java
! src/share/classes/javax/swing/plaf/synth/SynthPanelUI.java
! src/share/classes/javax/swing/plaf/synth/SynthPasswordFieldUI.java
! src/share/classes/javax/swing/plaf/synth/SynthPopupMenuUI.java
! src/share/classes/javax/swing/plaf/synth/SynthProgressBarUI.java
! src/share/classes/javax/swing/plaf/synth/SynthRadioButtonMenuItemUI.java
! src/share/classes/javax/swing/plaf/synth/SynthRadioButtonUI.java
! src/share/classes/javax/swing/plaf/synth/SynthRootPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java
! src/share/classes/javax/swing/plaf/synth/SynthScrollPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthSeparatorUI.java
! src/share/classes/javax/swing/plaf/synth/SynthSliderUI.java
! src/share/classes/javax/swing/plaf/synth/SynthSpinnerUI.java
! src/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTableHeaderUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTableUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTextAreaUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTextFieldUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTextPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthToggleButtonUI.java
! src/share/classes/javax/swing/plaf/synth/SynthToolBarUI.java
! src/share/classes/javax/swing/plaf/synth/SynthToolTipUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java
! src/share/classes/javax/swing/plaf/synth/SynthViewportUI.java
Changeset: 2f8803ebd98c
Author: yan
Date: 2013-09-25 17:35 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2f8803ebd98c
8025085: [javadoc] some errors in javax/swing
Reviewed-by: alexsch
Contributed-by: Dmitry Zinkevich
! src/share/classes/javax/swing/JButton.java
! src/share/classes/javax/swing/JCheckBox.java
! src/share/classes/javax/swing/JCheckBoxMenuItem.java
! src/share/classes/javax/swing/JColorChooser.java
! src/share/classes/javax/swing/JComboBox.java
! src/share/classes/javax/swing/JComponent.java
! src/share/classes/javax/swing/JDesktopPane.java
! src/share/classes/javax/swing/JMenuItem.java
! src/share/classes/javax/swing/JToggleButton.java
! src/share/classes/javax/swing/SpinnerDateModel.java
! src/share/classes/javax/swing/SpinnerListModel.java
! src/share/classes/javax/swing/SpinnerNumberModel.java
! src/share/classes/javax/swing/SpringLayout.java
! src/share/classes/javax/swing/TransferHandler.java
! src/share/classes/javax/swing/UIDefaults.java
! src/share/classes/javax/swing/UnsupportedLookAndFeelException.java
! src/share/classes/javax/swing/ViewportLayout.java
! src/share/classes/javax/swing/plaf/LayerUI.java
! src/share/classes/javax/swing/plaf/basic/BasicBorders.java
! src/share/classes/javax/swing/plaf/basic/BasicDesktopIconUI.java
! src/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java
! src/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java
! src/share/classes/javax/swing/plaf/basic/BasicIconFactory.java
! src/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
! src/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java
! src/share/classes/javax/swing/plaf/basic/BasicLabelUI.java
! src/share/classes/javax/swing/plaf/basic/BasicListUI.java
! src/share/classes/javax/swing/plaf/basic/BasicMenuBarUI.java
! src/share/classes/javax/swing/plaf/basic/BasicMenuUI.java
! src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java
! src/share/classes/javax/swing/plaf/basic/BasicPopupMenuUI.java
! src/share/classes/javax/swing/plaf/basic/BasicProgressBarUI.java
! src/share/classes/javax/swing/plaf/basic/BasicScrollPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicSeparatorUI.java
! src/share/classes/javax/swing/plaf/basic/BasicSliderUI.java
! src/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicToolBarSeparatorUI.java
! src/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java
! src/share/classes/javax/swing/plaf/basic/BasicToolTipUI.java
! src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java
! src/share/classes/javax/swing/plaf/basic/DefaultMenuLayout.java
! src/share/classes/javax/swing/plaf/metal/MetalBorders.java
! src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
! src/share/classes/javax/swing/plaf/metal/MetalLabelUI.java
! src/share/classes/javax/swing/plaf/metal/MetalLookAndFeel.java
! src/share/classes/javax/swing/plaf/metal/MetalPopupMenuSeparatorUI.java
! src/share/classes/javax/swing/plaf/metal/MetalScrollPaneUI.java
! src/share/classes/javax/swing/plaf/metal/MetalSeparatorUI.java
! src/share/classes/javax/swing/plaf/metal/MetalSliderUI.java
! src/share/classes/javax/swing/plaf/metal/MetalTabbedPaneUI.java
! src/share/classes/javax/swing/plaf/metal/MetalToolTipUI.java
! src/share/classes/javax/swing/plaf/nimbus/AbstractRegionPainter.java
! src/share/classes/javax/swing/plaf/nimbus/NimbusLookAndFeel.java
! src/share/classes/javax/swing/plaf/nimbus/NimbusStyle.java
! src/share/classes/javax/swing/plaf/synth/Region.java
! src/share/classes/javax/swing/text/html/HTMLEditorKit.java
! src/share/classes/javax/swing/text/html/ImageView.java
! src/share/classes/javax/swing/text/html/InlineView.java
! src/share/classes/javax/swing/text/html/StyleSheet.java
! src/share/classes/javax/swing/text/html/parser/ContentModel.java
! src/share/classes/javax/swing/text/html/parser/DocumentParser.java
! src/share/classes/javax/swing/text/html/parser/Parser.java
! src/share/classes/javax/swing/tree/AbstractLayoutCache.java
! src/share/classes/javax/swing/tree/DefaultTreeCellEditor.java
! src/share/classes/javax/swing/tree/DefaultTreeCellRenderer.java
! src/share/classes/javax/swing/tree/DefaultTreeModel.java
! src/share/classes/javax/swing/tree/TreeCellRenderer.java
! src/share/classes/javax/swing/tree/TreeModel.java
! src/share/classes/javax/swing/undo/UndoManager.java
Changeset: c40ed21f2939
Author: alexsch
Date: 2013-09-25 17:42 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/c40ed21f2939
7083457: Incomplete specification for javax/swing/text/DefaultCaret.html#setVisible(boolean)
Reviewed-by: malenkov, serb
! src/share/classes/javax/swing/text/DefaultCaret.java
+ test/javax/swing/text/DefaultCaret/7083457/bug7083457.java
Changeset: 09fb25645717
Author: ptbrunet
Date: 2013-09-26 10:48 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/09fb25645717
8025160: Recent Java Accessibility Bridge push has make failures
Reviewed-by: tbell, erikj
! make/bridge/AccessBridgeJava/Makefile
! makefiles/CreateJars.gmk
! makefiles/GensrcMisc.gmk
Changeset: 0270e9b0891b
Author: yan
Date: 2013-09-26 16:10 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/0270e9b0891b
8025218: [javadoc] some errors in java/awt classes
Reviewed-by: yan
Contributed-by: Dmitry Zinkevich
! src/share/classes/java/awt/AWTKeyStroke.java
! src/share/classes/java/awt/Component.java
! src/share/classes/java/awt/DefaultKeyboardFocusManager.java
! src/share/classes/java/awt/Dialog.java
! src/share/classes/java/awt/Event.java
! src/share/classes/java/awt/Frame.java
! src/share/classes/java/awt/GridBagConstraints.java
! src/share/classes/java/awt/GridBagLayout.java
! src/share/classes/java/awt/GridLayout.java
! src/share/classes/java/awt/KeyboardFocusManager.java
! src/share/classes/java/awt/MenuBar.java
! src/share/classes/java/awt/ScrollPane.java
! src/share/classes/java/awt/ScrollPaneAdjustable.java
! src/share/classes/java/awt/SystemTray.java
! src/share/classes/java/awt/TextComponent.java
! src/share/classes/java/awt/TextField.java
! src/share/classes/java/awt/Window.java
! src/share/classes/java/awt/datatransfer/DataFlavor.java
! src/share/classes/java/awt/event/MouseMotionListener.java
Changeset: 3b22833f2695
Author: lana
Date: 2013-09-26 17:18 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/3b22833f2695
Merge
- src/macosx/classes/sun/lwawt/SelectionClearListener.java
- src/macosx/classes/sun/lwawt/macosx/CMouseInfoPeer.java
Changeset: 8708569b5524
Author: sjiang
Date: 2013-09-18 08:51 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/8708569b5524
8023954: MBean*Info.equals: throw NPE
Reviewed-by: dfuchs, dholmes
! src/share/classes/javax/management/MBeanAttributeInfo.java
! src/share/classes/javax/management/MBeanConstructorInfo.java
! src/share/classes/javax/management/MBeanFeatureInfo.java
! src/share/classes/javax/management/MBeanNotificationInfo.java
! src/share/classes/javax/management/MBeanOperationInfo.java
! src/share/classes/javax/management/MBeanParameterInfo.java
+ test/javax/management/MBeanInfo/MBeanInfoEqualsNPETest.java
Changeset: ee8b292ee568
Author: weijun
Date: 2013-09-18 18:22 +0800
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/ee8b292ee568
8012615: Realm.getRealmsList returns realms list in wrong
Reviewed-by: valeriep, xuelei
! src/share/classes/sun/security/krb5/Config.java
! src/share/classes/sun/security/krb5/Realm.java
! src/share/classes/sun/security/krb5/internal/CredentialsUtil.java
! test/sun/security/krb5/ParseCAPaths.java
! test/sun/security/krb5/krb5-capaths.conf
Changeset: e92635d6834c
Author: alanb
Date: 2013-09-18 14:10 +0100
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/e92635d6834c
8024883: (se) SelectableChannel.register throws NPE if fd >= 64k (lnx)
Reviewed-by: alanb, coffeys
Contributed-by: nmaurer at redhat.com, alan.bateman at oracle.com
! src/solaris/classes/sun/nio/ch/DevPollArrayWrapper.java
! src/solaris/classes/sun/nio/ch/EPollArrayWrapper.java
! src/solaris/classes/sun/nio/ch/EventPortWrapper.java
! test/java/nio/channels/Selector/LotsOfChannels.java
! test/java/nio/channels/Selector/SelectorLimit.java
Changeset: 07d73060e0da
Author: weijun
Date: 2013-09-18 21:37 +0800
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/07d73060e0da
8011402: Move blacklisting certificate logic from hard code to data
Reviewed-by: erikj, mullan
! make/java/security/Makefile
! makefiles/CopyFiles.gmk
! src/share/classes/java/security/cert/Certificate.java
! src/share/classes/sun/security/util/UntrustedCertificates.java
! src/share/classes/sun/security/x509/X509CertImpl.java
+ src/share/lib/security/BlacklistedCertsConverter.java
+ src/share/lib/security/blacklisted.certs
+ src/share/lib/security/blacklisted.certs.pem
+ test/lib/security/CheckBlacklistedCerts.java
Changeset: b3a506a30fda
Author: ewang
Date: 2013-09-18 15:13 +0100
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/b3a506a30fda
8015762: TEST_BUG: java/nio/channels/DatagramChannel/AdaptDatagramSocket.java failing intermittently [win]
Reviewed-by: chegar, alanb
! test/java/nio/channels/DatagramChannel/AdaptDatagramSocket.java
Changeset: 22e9f0067b5a
Author: kizune
Date: 2013-09-19 17:04 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/22e9f0067b5a
8017248: Compiler Diacritics Issue
Reviewed-by: naoto
! src/share/classes/sun/launcher/LauncherHelper.java
+ test/tools/launcher/8017248/ClassA??.java
+ test/tools/launcher/8017248/test.sh
Changeset: 7557062d2dd2
Author: plevart
Date: 2013-09-19 16:14 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/7557062d2dd2
8011940: java.lang.Class.getAnnotations() always enters synchronized method
Reviewed-by: jfranck, chegar, psandoz, shade
! src/share/classes/java/lang/Class.java
+ test/java/lang/annotation/AnnotationsInheritanceOrderRedefinitionTest.java
Changeset: 278873b2b3f8
Author: sherman
Date: 2013-09-19 10:06 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/278873b2b3f8
8023113: tools/jar/ChangeDir.java fails if /tmp/a exists
Summary: updated the test case
Reviewed-by: alanb
! test/tools/jar/ChangeDir.java
Changeset: f36714707c38
Author: psandoz
Date: 2013-09-18 10:49 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/f36714707c38
8025002: "".codePoints().sorted().iterator().hasNext() causes NegativeArraySizeException
Reviewed-by: henryjen, alanb
! src/share/classes/java/lang/CharSequence.java
! test/java/lang/CharSequence/DefaultTest.java
Changeset: 0ef7ddef9de0
Author: psandoz
Date: 2013-09-19 20:41 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/0ef7ddef9de0
8024405: Spliterators.spliterator should support CONCURRENT characteristic
Reviewed-by: martin
! src/share/classes/java/util/Spliterator.java
! src/share/classes/java/util/Spliterators.java
! test/java/util/Spliterator/SpliteratorCharacteristics.java
! test/java/util/Spliterator/SpliteratorTraversingAndSplittingTest.java
Changeset: 58fd427b454d
Author: sla
Date: 2013-09-20 10:14 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/58fd427b454d
8024985: com/sun/jdi/StepTest.java failed since jdk8b107
Reviewed-by: dcubed
! test/com/sun/jdi/ExceptionEvents.java
! test/com/sun/jdi/FilterNoMatch.java
! test/com/sun/jdi/JDIScaffold.java
! test/com/sun/jdi/PopAndStepTest.java
! test/com/sun/jdi/RepStep.java
! test/com/sun/jdi/TestScaffold.java
Changeset: 6a1c70e191d4
Author: sla
Date: 2013-09-20 10:15 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/6a1c70e191d4
8024416: TESTBUG: com/sun/jdi/MethodEntryExitEvents.java: method entry count mismatch
Reviewed-by: dcubed
! test/com/sun/jdi/MethodEntryExitEvents.java
Changeset: afe857b13b62
Author: kizune
Date: 2013-09-20 17:56 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/afe857b13b62
8025076: Fix for JDK-8017248 breaks jprt submission for non-unicode locales
Reviewed-by: naoto, ksrini
- test/tools/launcher/8017248/ClassA??.java
- test/tools/launcher/8017248/test.sh
+ test/tools/launcher/DiacriticTest.java
Changeset: 94cc251d0c45
Author: sla
Date: 2013-09-20 16:40 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/94cc251d0c45
7200277: [parfait] potential buffer overflow in npt/utf.c
Reviewed-by: dsamersoff, dcubed
! src/share/npt/utf.c
Changeset: 7913855ff66c
Author: psandoz
Date: 2013-09-20 11:07 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/7913855ff66c
8024253: ThreadLocal random can use SecureRandom for the initial seed
Reviewed-by: psandoz, chegar, alanb
Contributed-by: Doug Lea , Peter Levart , Guy Steele
! src/share/classes/java/util/SplittableRandom.java
! src/share/classes/java/util/concurrent/ThreadLocalRandom.java
! test/java/util/concurrent/ThreadLocalRandom/ThreadLocalRandomTest.java
Changeset: 2552cd270350
Author: bpb
Date: 2013-09-20 15:12 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2552cd270350
8024331: j.u.Map.computeIfPresent() default/nondefault implementations don't throw NPE if the remappingFunction is null and the key is absent
Summary: Explicitly check for null remappingFunction parameter.
Reviewed-by: mduigou, forax, psandoz
Contributed-by: Brian Burkhalter
! src/share/classes/java/util/HashMap.java
! src/share/classes/java/util/Map.java
! test/java/util/Map/Defaults.java
Changeset: c30dc8e7744e
Author: psandoz
Date: 2013-09-20 17:11 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/c30dc8e7744e
8024341: j.u.regex.Pattern.splitAsStream() doesn't correspond to split() method if using an example from the spec
Reviewed-by: alanb
! src/share/classes/java/util/regex/Pattern.java
+ test/java/util/regex/PatternStreamTest.java
- test/java/util/regex/PatternTest.java
Changeset: 56d247821694
Author: alanb
Date: 2013-09-23 04:05 +0100
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/56d247821694
8023130: (process) ProcessBuilder#inheritIO does not work on Windows
Reviewed-by: alanb, martin
Contributed-by: ivan.gerasimov at oracle.com
! src/windows/native/java/lang/ProcessImpl_md.c
! test/java/lang/ProcessBuilder/Basic.java
+ test/java/lang/ProcessBuilder/InheritIO/InheritIO.java
+ test/java/lang/ProcessBuilder/InheritIO/InheritIO.sh
Changeset: a3b17b91127d
Author: lana
Date: 2013-09-20 19:15 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/a3b17b91127d
Merge
Changeset: f1b251affc6a
Author: lana
Date: 2013-09-22 20:21 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/f1b251affc6a
Merge
Changeset: b606775fd1a3
Author: stefank
Date: 2013-08-29 11:08 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/b606775fd1a3
8014659: NPG: performance counters for compressed klass space
Reviewed-by: jmasa, sla
Contributed-by: erik.helin at oracle.com
! src/share/classes/sun/tools/jstat/resources/jstat_options
! test/sun/tools/jstat/gcCapacityOutput1.awk
! test/sun/tools/jstat/gcCauseOutput1.awk
! test/sun/tools/jstat/gcMetaCapacityOutput1.awk
! test/sun/tools/jstat/gcOldOutput1.awk
! test/sun/tools/jstat/gcOutput1.awk
! test/sun/tools/jstat/lineCounts1.awk
! test/sun/tools/jstat/lineCounts2.awk
! test/sun/tools/jstat/lineCounts3.awk
! test/sun/tools/jstat/lineCounts4.awk
! test/sun/tools/jstat/timeStamp1.awk
! test/sun/tools/jstatd/jstatGcutilOutput1.awk
Changeset: 76619d71a7c5
Author: dfuchs
Date: 2013-09-25 09:47 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/76619d71a7c5
8025140: TEST_BUG: java/util/logging/Logger/getGlobal tests fail due to timeout
Summary: Arbitrary timeouts in the tests @run lines where too agressive for some configurations. The tests will now run with default timeout.
Reviewed-by: alanb, mchung
! test/java/util/logging/Logger/getGlobal/TestGetGlobal.java
! test/java/util/logging/Logger/getGlobal/TestGetGlobalByName.java
! test/java/util/logging/Logger/getGlobal/TestGetGlobalConcurrent.java
Changeset: 2b928330970a
Author: mfang
Date: 2013-09-24 14:17 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2b928330970a
8025215: jdk8 l10n resource file translation update 4
Reviewed-by: naoto, yhuang
! src/macosx/classes/com/apple/laf/resources/aqua_ko.properties
! src/share/classes/com/sun/accessibility/internal/resources/accessibility_de.properties
! src/share/classes/com/sun/accessibility/internal/resources/accessibility_es.properties
! src/share/classes/com/sun/accessibility/internal/resources/accessibility_fr.properties
! src/share/classes/com/sun/accessibility/internal/resources/accessibility_it.properties
! src/share/classes/com/sun/accessibility/internal/resources/accessibility_pt_BR.properties
! src/share/classes/com/sun/accessibility/internal/resources/accessibility_sv.properties
! src/share/classes/com/sun/java/swing/plaf/motif/resources/motif_de.properties
! src/share/classes/com/sun/java/swing/plaf/motif/resources/motif_ko.properties
+ src/share/classes/com/sun/java/util/jar/pack/DriverResource_ja.java
+ src/share/classes/com/sun/java/util/jar/pack/DriverResource_zh_CN.java
! src/share/classes/com/sun/rowset/RowSetResourceBundle_ko.properties
! src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic_ko.properties
! src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal_sv.properties
! src/share/classes/sun/applet/resources/MsgAppletViewer_de.java
! src/share/classes/sun/launcher/resources/launcher_de.properties
! src/share/classes/sun/launcher/resources/launcher_es.properties
! src/share/classes/sun/launcher/resources/launcher_fr.properties
! src/share/classes/sun/launcher/resources/launcher_it.properties
! src/share/classes/sun/launcher/resources/launcher_ja.properties
! src/share/classes/sun/launcher/resources/launcher_ko.properties
! src/share/classes/sun/launcher/resources/launcher_pt_BR.properties
! src/share/classes/sun/launcher/resources/launcher_sv.properties
! src/share/classes/sun/launcher/resources/launcher_zh_CN.properties
! src/share/classes/sun/launcher/resources/launcher_zh_TW.properties
! src/share/classes/sun/print/resources/serviceui_de.properties
! src/share/classes/sun/print/resources/serviceui_es.properties
! src/share/classes/sun/print/resources/serviceui_fr.properties
! src/share/classes/sun/print/resources/serviceui_it.properties
! src/share/classes/sun/print/resources/serviceui_pt_BR.properties
! src/share/classes/sun/print/resources/serviceui_sv.properties
! src/share/classes/sun/rmi/registry/resources/rmiregistry_de.properties
! src/share/classes/sun/rmi/server/resources/rmid_ko.properties
! src/share/classes/sun/security/tools/jarsigner/Resources_ja.java
! src/share/classes/sun/security/tools/jarsigner/Resources_zh_CN.java
! src/share/classes/sun/security/tools/keytool/Resources_de.java
! src/share/classes/sun/security/tools/keytool/Resources_es.java
! src/share/classes/sun/security/tools/keytool/Resources_fr.java
! src/share/classes/sun/security/tools/keytool/Resources_it.java
! src/share/classes/sun/security/tools/keytool/Resources_ja.java
! src/share/classes/sun/security/tools/keytool/Resources_ko.java
! src/share/classes/sun/security/tools/keytool/Resources_pt_BR.java
! src/share/classes/sun/security/tools/keytool/Resources_sv.java
! src/share/classes/sun/security/tools/keytool/Resources_zh_CN.java
! src/share/classes/sun/security/tools/keytool/Resources_zh_TW.java
! src/share/classes/sun/security/tools/policytool/Resources_de.java
! src/share/classes/sun/security/tools/policytool/Resources_es.java
! src/share/classes/sun/security/tools/policytool/Resources_fr.java
! src/share/classes/sun/security/tools/policytool/Resources_it.java
! src/share/classes/sun/security/tools/policytool/Resources_ja.java
! src/share/classes/sun/security/tools/policytool/Resources_ko.java
! src/share/classes/sun/security/tools/policytool/Resources_pt_BR.java
! src/share/classes/sun/security/tools/policytool/Resources_sv.java
! src/share/classes/sun/security/tools/policytool/Resources_zh_CN.java
! src/share/classes/sun/security/tools/policytool/Resources_zh_TW.java
! src/share/classes/sun/security/util/Resources_fr.java
! src/share/classes/sun/tools/jar/resources/jar_de.properties
! src/share/classes/sun/tools/jar/resources/jar_es.properties
! src/share/classes/sun/tools/jar/resources/jar_fr.properties
! src/share/classes/sun/tools/jar/resources/jar_it.properties
! src/share/classes/sun/tools/jar/resources/jar_ja.properties
! src/share/classes/sun/tools/jar/resources/jar_ko.properties
! src/share/classes/sun/tools/jar/resources/jar_pt_BR.properties
! src/share/classes/sun/tools/jar/resources/jar_sv.properties
! src/share/classes/sun/tools/jar/resources/jar_zh_CN.properties
! src/share/classes/sun/tools/jar/resources/jar_zh_TW.properties
! src/share/classes/sun/tools/jconsole/resources/messages_ja.properties
! src/share/classes/sun/tools/jconsole/resources/messages_zh_CN.properties
Changeset: 9765801f209f
Author: mfang
Date: 2013-09-24 14:34 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/9765801f209f
Merge
- test/java/util/regex/PatternTest.java
Changeset: d16a53d1762f
Author: mfang
Date: 2013-09-25 07:36 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/d16a53d1762f
Merge
Changeset: 8f27030686a6
Author: bchristi
Date: 2013-09-26 11:13 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/8f27030686a6
8025173: HashMap.put() replacing an existing key can trigger a resize()
Summary: Ensure that HashMap is not resized if we're just replacing a value
Reviewed-by: alanb, martin
! src/share/classes/java/util/HashMap.java
+ test/java/util/HashMap/ReplaceExisting.java
Changeset: 8edd604bf960
Author: lana
Date: 2013-09-26 17:21 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/8edd604bf960
Merge
- test/java/util/regex/PatternTest.java
Changeset: 9684ed81cd21
Author: ksrini
Date: 2013-09-27 16:29 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/9684ed81cd21
8020552: [launcher] changes to support removal of Solaris 32-bit distribution
8023495: [infra] create 64-bit solaris bits with symlinks
Reviewed-by: ihse, tbell, dholmes, darcy, alanb, erikj, sla, martin
! makefiles/Images.gmk
! src/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java
! src/solaris/bin/java_md_solinux.c
! test/com/sun/jdi/BadHandshakeTest.java
! test/com/sun/jdi/DoubleAgentTest.java
! test/com/sun/jdi/ExclusiveBind.java
! test/com/sun/jdi/PrivateTransportTest.sh
! test/com/sun/jdi/RunToExit.java
- test/com/sun/jdi/Solaris32AndSolaris64Test.sh
! test/com/sun/jdi/connect/spi/SimpleLaunchingConnector.java
! test/demo/jvmti/DemoRun.java
! test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Makefile
+ test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-amd64/libLauncher.so
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-i586/libLauncher.so
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so
! test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh
! test/sun/security/tools/keytool/autotest.sh
! test/sun/tools/jhat/HatRun.java
! test/tools/launcher/6842838/Test6842838.sh
! test/tools/launcher/ChangeDataModel.java
! test/tools/launcher/ExecutionEnvironment.java
! test/tools/launcher/FXLauncherTest.java
! test/tools/launcher/RunpathTest.java
! test/tools/launcher/Test7029048.java
! test/tools/launcher/TestHelper.java
Changeset: 2c7c7b813eb3
Author: katleman
Date: 2013-10-01 12:45 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/2c7c7b813eb3
Merge
- test/com/sun/jdi/Solaris32AndSolaris64Test.sh
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-i586/libLauncher.so
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so
Changeset: dd43ccb3bac9
Author: ihse
Date: 2013-10-01 11:08 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/dd43ccb3bac9
8019219: Fix typo in jdk/makefiles "default" targets
Reviewed-by: erikj
! makefiles/CompileLaunchers.gmk
! makefiles/CompileNativeLibraries.gmk
Changeset: 54e099776f08
Author: erikj
Date: 2013-10-02 15:08 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/54e099776f08
Merge
Changeset: 9f57d2774603
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/9f57d2774603
Added tag jdk8-b110 for changeset 54e099776f08
! .hgtags
From coleen.phillimore at oracle.com Thu Oct 3 15:49:52 2013
From: coleen.phillimore at oracle.com (Coleen Phillmore)
Date: Thu, 03 Oct 2013 18:49:52 -0400
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To: <524DD388.8060706@oracle.com>
References: <524DB145.5030109@oracle.com> <524DD388.8060706@oracle.com>
Message-ID: <524DF490.3000005@oracle.com>
Thanks Dan -
On 10/3/2013 4:28 PM, Daniel D. Daugherty wrote:
> > open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>
> test/java/lang/instrument/RedefineMethodInBacktrace.sh
> No comments.
>
> test/java/lang/instrument/RedefineMethodInBacktraceApp.java
> line 78: t.setDaemon(true);
> Why make the target thread a daemon? Wouldn't it be a more
> complete test to do Thread.join() of that thread just to
> be sure that the target thread has finished (and is not
> stuck)?
Staffan, can you answer this?
Coleen
>
> test/java/lang/instrument/RedefineMethodInBacktraceTargetB.java
> test/java/lang/instrument/RedefineMethodInBacktraceTargetB_2.java
> Nice sync logic with the test driver.
>
> Thumbs up.
>
> Dan
>
>
> On 10/3/13 12:02 PM, Coleen Phillimore wrote:
>> Summary: Redefined class in stack trace may not be found by
>> method_idnum so handle null.
>>
>> This is a simple change. I had another change to save the method
>> name (as u2) in the backtrace, but it's not worth the extra footprint
>> in backtraces for this rare case.
>>
>> The root problem was that we save method_idnum in the backtrace (u2)
>> instead of Method* to avoid Method* from being redefined and
>> deallocated. I made a change to InstanceKlass::method_from_idnum()
>> to return null rather than the last method in the list, which causes
>> this crash. Dan and I went down the long rabbit-hole of why
>> method_idnum is changed for obsolete methods and we think there's
>> some cleanup and potential bugs in this area. But this is not that
>> change. I'll file another bug to continue this investigation for
>> jdk9 (or 8uN).
>>
>> Staffan created a test - am including core-libs for the review
>> request. Also tested with all of the vm testbase tests, mlvm tests,
>> and java/lang/instrument tests.
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
>> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>>
>> test case for jdk8 repository:
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>>
>> Thanks,
>> Coleen
>>
>>
>
From coleen.phillimore at oracle.com Thu Oct 3 15:56:21 2013
From: coleen.phillimore at oracle.com (Coleen Phillmore)
Date: Thu, 03 Oct 2013 18:56:21 -0400
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To: <524DCE7D.7020703@oracle.com>
References: <524DB145.5030109@oracle.com> <524DCE7D.7020703@oracle.com>
Message-ID: <524DF615.4000808@oracle.com>
Thanks Dan -
On 10/3/2013 4:07 PM, Daniel D. Daugherty wrote:
> > http://cr.openjdk.java.net/~coleenp/8025238/
>
> src/share/vm/classfile/javaClasses.cpp
> 1804 if (method == NULL) {
> 1805 // leave name and fileName null
> 1806 java_lang_StackTraceElement::set_lineNumber(element(), -1);
> Is it possible to set the name and fileName to something?
> A caller may not be expecting those to be NULL.
>
> Also, holder->method_with_idnum(method_id) should be able to
> search the previous class version list and find the obsolete
> Method* that matches the 'method_id' value.
>
We don't save the obsolete versions on the previous version list, only
the emcp versions. I just looked at the old code and that's always been
the case. So the method that has the method_idnum that isn't supposed
to be found is an obsolete method.
Coleen
> src/share/vm/prims/jvmtiRedefineClasses.cpp
> Better comment than the original.
>
> Dan
>
>
> On 10/3/13 12:02 PM, Coleen Phillimore wrote:
>> Summary: Redefined class in stack trace may not be found by
>> method_idnum so handle null.
>>
>> This is a simple change. I had another change to save the method
>> name (as u2) in the backtrace, but it's not worth the extra footprint
>> in backtraces for this rare case.
>>
>> The root problem was that we save method_idnum in the backtrace (u2)
>> instead of Method* to avoid Method* from being redefined and
>> deallocated. I made a change to InstanceKlass::method_from_idnum()
>> to return null rather than the last method in the list, which causes
>> this crash. Dan and I went down the long rabbit-hole of why
>> method_idnum is changed for obsolete methods and we think there's
>> some cleanup and potential bugs in this area. But this is not that
>> change. I'll file another bug to continue this investigation for
>> jdk9 (or 8uN).
>>
>> Staffan created a test - am including core-libs for the review
>> request. Also tested with all of the vm testbase tests, mlvm tests,
>> and java/lang/instrument tests.
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
>> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>>
>> test case for jdk8 repository:
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>>
>> Thanks,
>> Coleen
>
From daniel.daugherty at oracle.com Thu Oct 3 16:01:34 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Thu, 03 Oct 2013 17:01:34 -0600
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To: <524DF615.4000808@oracle.com>
References: <524DB145.5030109@oracle.com> <524DCE7D.7020703@oracle.com>
<524DF615.4000808@oracle.com>
Message-ID: <524DF74E.9090205@oracle.com>
On 10/3/13 4:56 PM, Coleen Phillmore wrote:
>
> Thanks Dan -
>
> On 10/3/2013 4:07 PM, Daniel D. Daugherty wrote:
>> > http://cr.openjdk.java.net/~coleenp/8025238/
>>
>> src/share/vm/classfile/javaClasses.cpp
>> 1804 if (method == NULL) {
>> 1805 // leave name and fileName null
>> 1806 java_lang_StackTraceElement::set_lineNumber(element(), -1);
>> Is it possible to set the name and fileName to something?
>> A caller may not be expecting those to be NULL.
>>
>> Also, holder->method_with_idnum(method_id) should be able to
>> search the previous class version list and find the obsolete
>> Method* that matches the 'method_id' value.
>>
>
> We don't save the obsolete versions on the previous version list, only
> the emcp versions. I just looked at the old code and that's always
> been the case. So the method that has the method_idnum that isn't
> supposed to be found is an obsolete method.
Clearly I've forgotten... thumbs up!
Dan
>
> Coleen
>
>> src/share/vm/prims/jvmtiRedefineClasses.cpp
>> Better comment than the original.
>>
>> Dan
>>
>>
>> On 10/3/13 12:02 PM, Coleen Phillimore wrote:
>>> Summary: Redefined class in stack trace may not be found by
>>> method_idnum so handle null.
>>>
>>> This is a simple change. I had another change to save the method
>>> name (as u2) in the backtrace, but it's not worth the extra
>>> footprint in backtraces for this rare case.
>>>
>>> The root problem was that we save method_idnum in the backtrace (u2)
>>> instead of Method* to avoid Method* from being redefined and
>>> deallocated. I made a change to InstanceKlass::method_from_idnum()
>>> to return null rather than the last method in the list, which causes
>>> this crash. Dan and I went down the long rabbit-hole of why
>>> method_idnum is changed for obsolete methods and we think there's
>>> some cleanup and potential bugs in this area. But this is not that
>>> change. I'll file another bug to continue this investigation for
>>> jdk9 (or 8uN).
>>>
>>> Staffan created a test - am including core-libs for the review
>>> request. Also tested with all of the vm testbase tests, mlvm tests,
>>> and java/lang/instrument tests.
>>>
>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
>>> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>>>
>>> test case for jdk8 repository:
>>>
>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>>>
>>> Thanks,
>>> Coleen
>>
>
From coleen.phillimore at oracle.com Thu Oct 3 16:01:39 2013
From: coleen.phillimore at oracle.com (Coleen Phillmore)
Date: Thu, 03 Oct 2013 19:01:39 -0400
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To: <524DCAA2.7050305@oracle.com>
References: <524DB145.5030109@oracle.com> <524DCAA2.7050305@oracle.com>
Message-ID: <524DF753.6070601@oracle.com>
Thanks Serguei!
Coleen
On 10/3/2013 3:50 PM, serguei.spitsyn at oracle.com wrote:
> Coleen,
>
> The fix looks good.
> It is nice you've come up with this.
>
> Thanks,
> Serguei
>
> On 10/3/13 11:02 AM, Coleen Phillimore wrote:
>> Summary: Redefined class in stack trace may not be found by
>> method_idnum so handle null.
>>
>> This is a simple change. I had another change to save the method
>> name (as u2) in the backtrace, but it's not worth the extra footprint
>> in backtraces for this rare case.
>>
>> The root problem was that we save method_idnum in the backtrace (u2)
>> instead of Method* to avoid Method* from being redefined and
>> deallocated. I made a change to InstanceKlass::method_from_idnum()
>> to return null rather than the last method in the list, which causes
>> this crash. Dan and I went down the long rabbit-hole of why
>> method_idnum is changed for obsolete methods and we think there's
>> some cleanup and potential bugs in this area. But this is not that
>> change. I'll file another bug to continue this investigation for
>> jdk9 (or 8uN).
>>
>> Staffan created a test - am including core-libs for the review
>> request. Also tested with all of the vm testbase tests, mlvm tests,
>> and java/lang/instrument tests.
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
>> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>>
>> test case for jdk8 repository:
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>>
>> Thanks,
>> Coleen
>
From coleen.phillimore at oracle.com Thu Oct 3 16:02:01 2013
From: coleen.phillimore at oracle.com (Coleen Phillmore)
Date: Thu, 03 Oct 2013 19:02:01 -0400
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To:
References: <524DB145.5030109@oracle.com>
Message-ID: <524DF769.5020509@oracle.com>
On 10/3/2013 3:29 PM, Staffan Larsen wrote:
> Looks good! (Obviously I would think so for the testcase :-) )
Thanks for the testcase!
Coleen
>
> Thanks for fixing,
> /Staffan
>
> On 3 okt 2013, at 20:02, Coleen Phillimore wrote:
>
>> Summary: Redefined class in stack trace may not be found by method_idnum so handle null.
>>
>> This is a simple change. I had another change to save the method name (as u2) in the backtrace, but it's not worth the extra footprint in backtraces for this rare case.
>>
>> The root problem was that we save method_idnum in the backtrace (u2) instead of Method* to avoid Method* from being redefined and deallocated. I made a change to InstanceKlass::method_from_idnum() to return null rather than the last method in the list, which causes this crash. Dan and I went down the long rabbit-hole of why method_idnum is changed for obsolete methods and we think there's some cleanup and potential bugs in this area. But this is not that change. I'll file another bug to continue this investigation for jdk9 (or 8uN).
>>
>> Staffan created a test - am including core-libs for the review request. Also tested with all of the vm testbase tests, mlvm tests, and java/lang/instrument tests.
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
>> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>>
>> test case for jdk8 repository:
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>>
>> Thanks,
>> Coleen
From coleen.phillimore at oracle.com Thu Oct 3 16:02:44 2013
From: coleen.phillimore at oracle.com (Coleen Phillmore)
Date: Thu, 03 Oct 2013 19:02:44 -0400
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed
with SIGSEGV
In-Reply-To: <524DF74E.9090205@oracle.com>
References: <524DB145.5030109@oracle.com> <524DCE7D.7020703@oracle.com>
<524DF615.4000808@oracle.com> <524DF74E.9090205@oracle.com>
Message-ID: <524DF794.4000909@oracle.com>
On 10/3/2013 7:01 PM, Daniel D. Daugherty wrote:
> On 10/3/13 4:56 PM, Coleen Phillmore wrote:
>>
>> Thanks Dan -
>>
>> On 10/3/2013 4:07 PM, Daniel D. Daugherty wrote:
>>> > http://cr.openjdk.java.net/~coleenp/8025238/
>>>
>>> src/share/vm/classfile/javaClasses.cpp
>>> 1804 if (method == NULL) {
>>> 1805 // leave name and fileName null
>>> 1806 java_lang_StackTraceElement::set_lineNumber(element(), -1);
>>> Is it possible to set the name and fileName to something?
>>> A caller may not be expecting those to be NULL.
>>>
>>> Also, holder->method_with_idnum(method_id) should be able to
>>> search the previous class version list and find the obsolete
>>> Method* that matches the 'method_id' value.
>>>
>>
>> We don't save the obsolete versions on the previous version list,
>> only the emcp versions. I just looked at the old code and that's
>> always been the case. So the method that has the method_idnum that
>> isn't supposed to be found is an obsolete method.
>
> Clearly I've forgotten... thumbs up!
:)
Thanks,
Coleen
>
> Dan
>
>
>>
>> Coleen
>>
>>> src/share/vm/prims/jvmtiRedefineClasses.cpp
>>> Better comment than the original.
>>>
>>> Dan
>>>
>>>
>>> On 10/3/13 12:02 PM, Coleen Phillimore wrote:
>>>> Summary: Redefined class in stack trace may not be found by
>>>> method_idnum so handle null.
>>>>
>>>> This is a simple change. I had another change to save the method
>>>> name (as u2) in the backtrace, but it's not worth the extra
>>>> footprint in backtraces for this rare case.
>>>>
>>>> The root problem was that we save method_idnum in the backtrace
>>>> (u2) instead of Method* to avoid Method* from being redefined and
>>>> deallocated. I made a change to InstanceKlass::method_from_idnum()
>>>> to return null rather than the last method in the list, which
>>>> causes this crash. Dan and I went down the long rabbit-hole of why
>>>> method_idnum is changed for obsolete methods and we think there's
>>>> some cleanup and potential bugs in this area. But this is not that
>>>> change. I'll file another bug to continue this investigation for
>>>> jdk9 (or 8uN).
>>>>
>>>> Staffan created a test - am including core-libs for the review
>>>> request. Also tested with all of the vm testbase tests, mlvm
>>>> tests, and java/lang/instrument tests.
>>>>
>>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
>>>> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>>>>
>>>> test case for jdk8 repository:
>>>>
>>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>>>>
>>>> Thanks,
>>>> Coleen
>>>
>>
>
From david.holmes at oracle.com Thu Oct 3 17:14:28 2013
From: david.holmes at oracle.com (David Holmes)
Date: Fri, 04 Oct 2013 10:14:28 +1000
Subject: JDK-6989981: jstack causes "fatal error: ExceptionMark destructor
expects no pending exceptions"
In-Reply-To: <524AD80F.2020308@ysfactory.dip.jp>
References: <523C264E.7060704@ysfactory.dip.jp>
<97D9FB54-FFF1-4337-942A-E7FE2196A354@oracle.com>
<523C534C.7060908@ysfactory.dip.jp>
<9367FE2B-C709-4273-BEAE-745841846560@oracle.com>
<523C5A8A.8060000@ysfactory.dip.jp>
<523C606B.5060204@ysfactory.dip.jp>
<952F096A-69D2-4E7C-B979-91E95AFE37F8@oracle.com>
<523D786C.5090605@ysfactory.dip.jp> <523EAF7C.3050000@oracle.com>
<3FE7CB8E-39F4-4915-B82E-AC2F88715189@oracle.com>
<524ACADB.3060600@oracle.com> <524AD80F.2020308@ysfactory.dip.jp>
Message-ID: <524E0864.4020505@oracle.com>
On 2/10/2013 12:11 AM, Yasumasa Suenaga wrote:
> Hi David,
>
>> Other than printing a message on the console it pretends that the init
>> has succeeded!
>
> No.
>
> signal_thread_entry() @ hotspot/src/share/vm/runtime/os.cpp
> --------
> 250 case SIGBREAK: {
> 251 // Check if the signal is a trigger to start the
> Attach Listener - in that
> 252 // case don't print stack traces.
> 253 if (!DisableAttachMechanism &&
> AttachListener::is_init_trigger()) {
> 254 continue;
> 255 }
> --------
>
> AttachListener::init() is called through is_init_trigger() (line 505).
>
> AttachListener::is_init_trigger() @
> hotspot/src/share/vm/services/attachListener.cpp
> --------
> 501 if (ret == 0) {
> 502 // simple check to avoid starting the attach mechanism when
> 503 // a bogus user creates the file
> 504 if (st.st_uid == geteuid()) {
> 505 init();
> 506 return true;
> 507 }
> 508 }
> --------
>
> If exception occurs in AttachListner::init(),
> AttachListner::is_init_trigger() returns "true" .
> Process of SIGBREAK handler will be stopped (caused by continue
> statement) and signal_thread_entry()
> will return top of loop.
>
> In my patch, pending exception which occurs in AttachListener
> initialization is cleared.
> Thus Signal Dispatcher has no damage.
But as I said the init() fails and we pretend it succeeded with respect
to the caller. Now for the signal case if the init fails we can simply
do nothing - the VM is running, this particular action failed, so the VM
continues - that's okay. So I'm okay with the fix in that regard.
In general I think AttachListener::init should return a boolean to
indicate success or failure so that the caller can decide what needs to
be done eg at VM startup it seems reasonable to call
vm_exit_during_initialization because we can't pre-start the listener as
we are required to do.
Though as Staffan pointed out init() incorrectly calls
vm_exit_during_initialization in other places. :(
>> What are the consequences of doing this?
>
> If AttachListener::init() cannot work due to exception, it cannot create
> UNIX domain socket to accept from java tools (e.g. jstack) .
> Target VM which tried to invoke AttachListner continues to run.
> (However, runtime exception such as OOME occurs, target VM will be
> stopped immediately :-)
>
> On the other hand, java tools which tried to attach target VM will fail
> because it cannot connect UNIX domain socket.
Will the tool fail differently now compared to the VM aborting? Purely
from a testing perspective we tend to notice VM aborts but the console
print about the exception may well go unnoticed.
Thanks,
David
>
> Please run my testcase. It's actual behavior.
>
>
> Thanks,
>
> Yasumasa
>
>
> On 2013/10/01 22:15, David Holmes wrote:
>> On 23/09/2013 2:41 AM, Staffan Larsen wrote:
>>> Dmitry: Thanks for the review.
>>>
>>> Yasumasa: Thanks for your contribution! I have pushed the changes
>>> into HS25 and will push them to 7u60 as well.
>>
>> I've been on vacation so could not respond in time. I am concerned
>> about this fix. Other than printing a message on the console it
>> pretends that the init has succeeded! That seems wrong to me. What are
>> the consequences of doing this?
>>
>> David
>> -----
>>
>>> /Staffan
>>>
>>> On 22 sep 2013, at 01:51, Dmitry Samersoff
>>> wrote:
>>>
>>>> Yasumasa,
>>>>
>>>> Looks good for me.
>>>>
>>>> -Dmitry
>>>>
>>>> On 2013-09-21 14:43, Yasumasa Suenaga wrote:
>>>>> Hi Staffan,
>>>>>
>>>>>> Can you update your patch, please?
>>>>>
>>>>> Of course!
>>>>> I've attached new patch in this email.
>>>>>
>>>>> Could you check this?
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Yasumasa
>>>>>
>>>>> On 2013/09/21 15:36, Staffan Larsen wrote:
>>>>>>
>>>>>>
>>>>>>> On 20 sep 2013, at 16:49, Yasumasa Suenaga
>>>>>>> wrote:
>>>>>>>
>>>>>>>> On 2013/09/20 23:34, Staffan Larsen wrote:
>>>>>>>>
>>>>>>>>> On 20 sep 2013, at 16:24, Yasumasa Suenaga
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> I thought your code too. However...
>>>>>>>>>
>>>>>>>>> - These code is different from other code (rule?).
>>>>>>>>
>>>>>>>> Well, you are introducing a new macro that is also different from
>>>>>>>> other code, so I'm not sure how valid that argument is.
>>>>>>>
>>>>>>> My macro is modified from "CATCH" in exceptions.hpp:
>>>>>>>
>>>>>>> #define CATCH \
>>>>>>> THREAD); if (HAS_PENDING_EXCEPTION) { \
>>>>>>> oop ex = PENDING_EXCEPTION; \
>>>>>>> CLEAR_PENDING_EXCEPTION; \
>>>>>>> ex->print(); \
>>>>>>> ShouldNotReachHere(); \
>>>>>>> } (void)(0
>>>>>>>
>>>>>>> So I think that my macro is not big difference fromother code.
>>>>>>>
>>>>>>>
>>>>>>>>> - Similar crash cases exist. e.g. 6425580 and 7142442.
>>>>>>>>> These crashes are different from 6989981. However, I guess that
>>>>>>>>> crashed
>>>>>>>>> thread had pending exception and we need to fix with similar
>>>>>>>>> patch.
>>>>>>>>>
>>>>>>>>> So I think that new macro is useful later.
>>>>>>>>
>>>>>>>> Yes, similar problems may come up in other cases as well.
>>>>>>>>
>>>>>>>> Generally, I don't think it's a good idea to have logging calls
>>>>>>>> hidden away in general macros. What we really should do here is
>>>>>>>> print some context around the stack trace as well. Something like:
>>>>>>>>
>>>>>>>> Initializing the attach listener failed with the following
>>>>>>>> exception in AttachListener::init when initializing the thread_oop:
>>>>>>>>
>>>>>>>> This would be possible with the code I suggested, but very hard
>>>>>>>> in a
>>>>>>>> general macro.
>>>>>>>
>>>>>>> Agree.
>>>>>>> Should we write code as following?
>>>>>>>
>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>> tty->print_cr("Exception in VM (AttachListener::init) : ");
>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>> return;
>>>>>>> }
>>>>>>>
>>>>>>> I like this way :-)
>>>>>>
>>>>>> Yes, this is what I'd like to see! Can you update your patch, please?
>>>>>>
>>>>>> Thanks,
>>>>>> /Staffan
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Yasumasa
>>>>>>>
>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> /Staffan
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> Yasumasa
>>>>>>>>>
>>>>>>>>>> On 2013/09/20 23:05, Staffan Larsen wrote:
>>>>>>>>>> I see. CHECK_AND_CLEAR_AND_PRINT? Just kidding... :-)
>>>>>>>>>>
>>>>>>>>>> Maybe in this case we should not have this as a macro, but
>>>>>>>>>> actually add the code after the two calls to call_special?
>>>>>>>>>> Something like the code below. I personally think this is more
>>>>>>>>>> readable than obscure macros that I have to go look up to
>>>>>>>>>> understand what they do.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> /Staffan
>>>>>>>>>>
>>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>>> klass,
>>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>>
>>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>>> thread_group,
>>>>>>>>>> string,
>>>>>>>>>> THREAD);
>>>>>>>>>>
>>>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>>>> return;
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> KlassHandle group(THREAD, SystemDictionary::ThreadGroup_klass());
>>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>>> thread_group,
>>>>>>>>>> group,
>>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>>> THREAD);
>>>>>>>>>>
>>>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>>>> return;
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> On 20 sep 2013, at 15:53, Yasumasa
>>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi Staffan,
>>>>>>>>>>>
>>>>>>>>>>> Thank you for your sponsoring!
>>>>>>>>>>>
>>>>>>>>>>> "CHECK_AND_CLEAR" is already defined in exceptions.hpp:
>>>>>>>>>>> ******************
>>>>>>>>>>> #define CHECK_AND_CLEAR THREAD); if
>>>>>>>>>>> (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return;
>>>>>>>>>>> } (void)(0
>>>>>>>>>>> ******************
>>>>>>>>>>>
>>>>>>>>>>> I think that user wants why serviceability tools are failed.
>>>>>>>>>>> So I defined "CHECK_AND_CLEAR" + java_lang_Throwable::print() as
>>>>>>>>>>> "CATCH_AND_RETURN" .
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I agree rename this macro.
>>>>>>>>>>> Do you have any idea? I don't have a good name :-)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>>
>>>>>>>>>>> Yasumasa
>>>>>>>>>>>
>>>>>>>>>>>> On 2013/09/20 20:10, Staffan Larsen wrote:
>>>>>>>>>>>> Yasuma,
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks for finding and fixing this! I have re-opened the bug.
>>>>>>>>>>>> Your patch looks good to me, but perhaps CATCH_AND_RETURN
>>>>>>>>>>>> should
>>>>>>>>>>>> be renamed CHECK_AND_CLEAR?
>>>>>>>>>>>>
>>>>>>>>>>>> I can sponsor the fix.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> /Staffan
>>>>>>>>>>>>
>>>>>>>>>>>>> On 20 sep 2013, at 12:41, Yasumasa
>>>>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I encountered this bug:
>>>>>>>>>>>>> JDK-6989981: jstack causes "fatal error: ExceptionMark
>>>>>>>>>>>>> destructor expects no pending exceptions"
>>>>>>>>>>>>>
>>>>>>>>>>>>> I read hs_err and attachListener.cpp, Java heap usage is very
>>>>>>>>>>>>> high and
>>>>>>>>>>>>> it could be OutOfMemoryError in AttachListener::init() .
>>>>>>>>>>>>>
>>>>>>>>>>>>> If JavaCalls::call_special() in AttachListener::init() fail
>>>>>>>>>>>>> which is
>>>>>>>>>>>>> caused by OOME, d'tor of EXCEPTION_MARK (~ExceptionMark) will
>>>>>>>>>>>>> generate
>>>>>>>>>>>>> internal error.
>>>>>>>>>>>>>
>>>>>>>>>>>>> So I make a patch for avoiding crash and attached in this
>>>>>>>>>>>>> email
>>>>>>>>>>>>> (6989981.patch) .
>>>>>>>>>>>>> I'd like to re-open this bug and contribute my patch.
>>>>>>>>>>>>> Could you help me?
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --- DETAILS ---
>>>>>>>>>>>>> CHECK macro is used in JavaCalls::call_special() .
>>>>>>>>>>>>>
>>>>>>>>>>>>> ******************
>>>>>>>>>>>>> void AttachListener::init() {
>>>>>>>>>>>>> EXCEPTION_MARK;
>>>>>>>>>>>>>
>>>>>>>>>>>>> :
>>>>>>>>>>>>>
>>>>>>>>>>>>> // Initialize thread_oop to put it into the system threadGroup
>>>>>>>>>>>>> Handle thread_group (THREAD, Universe::system_thread_group());
>>>>>>>>>>>>> JavaValue result(T_VOID);
>>>>>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>>>>>> klass,
>>>>>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>>>>>
>>>>>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>>>>>> thread_group,
>>>>>>>>>>>>> string,
>>>>>>>>>>>>> CHECK);
>>>>>>>>>>>>>
>>>>>>>>>>>>> KlassHandle group(THREAD,
>>>>>>>>>>>>> SystemDictionary::ThreadGroup_klass());
>>>>>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>>>>>> thread_group,
>>>>>>>>>>>>> group,
>>>>>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>>>>>> CHECK);
>>>>>>>>>>>>> ******************
>>>>>>>>>>>>>
>>>>>>>>>>>>> CHECK macro does not clear pending exception of current
>>>>>>>>>>>>> thread.
>>>>>>>>>>>>> So call_special() fails with runtime exception, d'tor of
>>>>>>>>>>>>> ExceptionMark
>>>>>>>>>>>>> generates fatal error.
>>>>>>>>>>>>>
>>>>>>>>>>>>> ******************
>>>>>>>>>>>>> ExceptionMark::~ExceptionMark() {
>>>>>>>>>>>>> if (_thread->has_pending_exception()) {
>>>>>>>>>>>>> Handle exception(_thread, _thread->pending_exception());
>>>>>>>>>>>>> _thread->clear_pending_exception(); // Needed to avoid
>>>>>>>>>>>>> infinite recursion
>>>>>>>>>>>>> if (is_init_completed()) {
>>>>>>>>>>>>> exception->print();
>>>>>>>>>>>>> fatal("ExceptionMark destructor expects no pending
>>>>>>>>>>>>> exceptions");
>>>>>>>>>>>>> } else {
>>>>>>>>>>>>> vm_exit_during_initialization(exception);
>>>>>>>>>>>>> }
>>>>>>>>>>>>> }
>>>>>>>>>>>>> }
>>>>>>>>>>>>> ******************
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --- HOW TO REPRODUCE ---
>>>>>>>>>>>>> I also crate testcase of this issue (testcase.tar.gz) . This
>>>>>>>>>>>>> testcase contains
>>>>>>>>>>>>> two modules.
>>>>>>>>>>>>>
>>>>>>>>>>>>> - jvmti: JVMTI agent for this issue. This agent traps
>>>>>>>>>>>>> SIGQUIT and
>>>>>>>>>>>>> calls original (in HotSpot) SIGQUIT handler.
>>>>>>>>>>>>> This signal handler is invoked, MethodEntry event
>>>>>>>>>>>>> callback is
>>>>>>>>>>>>> enabled. MethodEntry generates OutOfMemoryError.
>>>>>>>>>>>>>
>>>>>>>>>>>>> - java : Simple long sleep program.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I can run this testcase in Fedora18 x86_64. See below.
>>>>>>>>>>>>>
>>>>>>>>>>>>> -------
>>>>>>>>>>>>> $ javac java/LongSleep.java
>>>>>>>>>>>>> $ make -C jvmti
>>>>>>>>>>>>> make: Entering directory
>>>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>>>> gcc -I/usr/lib/jvm/java-openjdk/include
>>>>>>>>>>>>> -I/usr/lib/jvm/java-openjdk/include/linux -fPIC -c oome.c
>>>>>>>>>>>>> gcc -shared -o liboome.so oome.o
>>>>>>>>>>>>> make: Leaving directory
>>>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>>>> $ export JAVA_HOME=
>>>>>>>>>>>>> $ ./test.sh
>>>>>>>>>>>>> -------
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Yasumasa
>>>>>>>>>>>>>
>>>>>>>>>>>>> <6989981.patch>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Dmitry Samersoff
>>>> Oracle Java development team, Saint Petersburg, Russia
>>>> * I would love to change the world, but they won't give me the
>>>> source code.
>>>
>>
>
From david.holmes at oracle.com Thu Oct 3 19:10:37 2013
From: david.holmes at oracle.com (David Holmes)
Date: Fri, 04 Oct 2013 12:10:37 +1000
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <524C3CA7.5070705@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
<524C3CA7.5070705@oracle.com>
Message-ID: <524E239D.4080503@oracle.com>
On 3/10/2013 1:32 AM, Daniel D. Daugherty wrote:
> David,
>
> Thanks for the thorough review (as always)!
>
> It will take me a while to process all the comments, but another
> reply will be forthcoming.
Don't bother with the minimal VM build attempt, you won't even get
started. The files don't exist for BSD.
David
> Dan
>
>
> On 10/1/13 8:52 PM, David Holmes wrote:
>> Hi Dan,
>>
>> Overall thumbs up. A couple of minor issues that need fixing. A few
>> meta-comments (I hate seeing all this stuff duplicated again and again.
>>
>> David
>> -----
>>
>> - common/autoconf/hotspot-spec.gmk.in
>>
>> Seems a good simplification.
>>
>> ----
>>
>> - common/autoconf/jdk-options.m4
>>
>> No comment.
>>
>> ---
>>
>> - common/makefiles/NativeCompilation.gmk
>>
>> So JDK .diz support is phase 2? :)
>>
>> The Windows changes here seem okay given that on windows a .debuginfo
>> file should never be in the target list.
>>
>> ---
>>
>> - hotspot/make/Makefile
>>
>> + $(EXPORT_CLIENT_DIR)/%.dSYM: $(MINIMAL1_BUILD_DIR)/%.dSYM
>>
>> EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
>>
>> For fun you can try building minimal on OSX, but I don't know how far
>> you will get:
>>
>> --with-jvm-variants=client,server,minimal1
>>
>> I'll point out obvious issues with minimal VM support anyway.
>>
>> ---
>>
>> - hotspot/make/bsd/Makefile
>>
>> No comment.
>>
>> - hotspot/make/bsd/makefiles/buildtree.make
>>
>> No comment.
>>
>> - make/bsd/makefiles/defs.make
>>
>> Note that the whole jdk6_or_earlier logic is defunct as this will
>> never be used for jdk6 or earlier. But best to clean all that up at
>> the one time.
>>
>> Sadly I never found a satisfactory solution to the multiplicity and
>> verbosity of the FDS messages, so OSX builds will now be afflicted by
>> them too.
>>
>> 328 else
>> 329 EXPORT_LIST += $(EXPORT_MINIMAL_DIR)/libjvm.debuginfo
>> 330 endif
>>
>> This pre-existing minimal VM code needs to be modified to reference
>> the dSYM directory on OSX as per the client/server cases.
>>
>> ---
>>
>> - hotspot/make/bsd/makefiles/dtrace.make
>>
>> Note related to your changes but I don't think any of the "64"
>> directory stuff has any meaning outside of Solaris.
>>
>> 102 dsymutil $@
>>
>> I think dsymutil should be assigned to a variable in the platform
>> defs.make as with other tools.
>>
>> Would be nice if objcopy/dsymutil could be hidden behind a single
>> SYM_TOOL variables as well so there wasn't so much duplication of the
>> process. You could have a single set of instructions to invoke
>> SYM_TOOL, STRIP and ZIP (strip would be skipped of course because
>> STRIP_POLICY would never be set on osx). Just wishful thinking ...
>>
>> ---
>>
>> - hotspot/make/bsd/makefiles/gcc.make
>>
>> + FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
>>
>> should be
>>
>> + FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH))
>>
>> Don't we need the USE_CLANG variations here as for linux?
>>
>> ---
>>
>> - hotspot/make/bsd/makefiles/jsig.make
>> - hotspot/make/bsd/makefiles/saproc.make
>>
>> Similar comments to dtrace.make
>>
>> ---
>>
>> - make/bsd/makefiles/universal.gmk
>>
>> I did not understand the additional logic here:
>>
>> 63 # Copy built non-universal binaries in place
>> 64 $(UNIVERSAL_COPY_LIST):
>> 65 BUILT_COPY_FILES="`find
>> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
>> 2>/dev/null`"; \
>> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
>> 67 for i in $${BUILT_COPY_FILES}; do \
>> 68 if [ -f $${i} ]; then \
>> 69 $(MKDIR) -p $(shell dirname $@); \
>> 70 $(CP) -R $${i} $@; \
>> 71 fi; \
>> 72 if [ -d $${i} ]; then \
>> 73 $(MKDIR) -p $@; \
>> 74 fi; \
>> 75 done; \
>> 76 fi
>>
>> until I realized that foo.dSYM is a directory not a file! Even so
>> don't you want to copy the contents of the directory across ?
>>
>> BTW: UNIVERSAL_COPY_LIST doesn't handle minimal VM.
>>
>> ---
>>
>> - make/bsd/makefiles/vm.make
>>
>> Similar comments to dtrace.make ref dsymutil.
>>
>> ---
>>
>> - hotspot/make/defs.make
>>
>> No comment.
>>
>> ---
>>
>> - jdk/make/common/Defs-macosx.gmk
>>
>> No comment
>>
>> - jdk/makefiles/Tools.gmk
>>
>> Not sure about this one. Logically is seems correct but up to now this
>> has been defined for everything without it seeming to cause a problem.
>> So why do we need to change it and what impact will it have?
>>
>> David
>> -----
>>
>> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
>>> Greetings,
>>>
>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>>> and ready for review:
>>>
>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>
>>> Here is the JDK8/HSX-25 webrev URL:
>>>
>>> OpenJDK:
>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>> Internal:
>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>
>>> This webrev includes changes for the follow repos:
>>>
>>> jdk8
>>> jdk8/hotspot
>>> jdk8/jdk
>>> jdk8/jdk/make/closed
>>>
>>> Once these changes are approved, I'm planning to push them to
>>> RT_Baseline. From there, they can follow the normal path to
>>> Main_Baseline and eventually JDK8.
>>>
>>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>>> the other repos are necessary to support importing the .diz files from
>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>> FDS related errors in the magic incantations for the new build. This is
>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>> from Solaris. In other words, this is Frankenstein's monster...
>>>
>>> Thanks to Staffan Larsen for providing an initial set of changes
>>> which I morphed into what you see here.
>>>
>>> Testing:
>>> - JPRT HSX build and test on all platforms; verification of .diz
>>> files in the MacOS X JPRT bundles
>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>> .diz files in the MacOS X JPRT bundles
>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>> repo build and test, but that no longer seems to work.
>>>
>>> As always, comments, questions and suggestions are welcome.
>>>
>>> Dan
>
From jan.lahoda at oracle.com Thu Oct 3 23:32:03 2013
From: jan.lahoda at oracle.com (jan.lahoda at oracle.com)
Date: Fri, 04 Oct 2013 06:32:03 +0000
Subject: hg: jdk8/tl/langtools: 8025118: Annotation processing api returns
default modifier for interface without default methods
Message-ID: <20131004063211.3E5F362D4D@hg.openjdk.java.net>
Changeset: c13305cf8528
Author: jlahoda
Date: 2013-10-04 08:29 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/c13305cf8528
8025118: Annotation processing api returns default modifier for interface without default methods
Summary: TypeElement.getModifiers() should not contain Modifier.DEFAULT
Reviewed-by: darcy, jjg
! src/share/classes/com/sun/tools/javac/code/Symbol.java
+ test/tools/javac/processing/model/element/TestTypeElement.java
From staffan.larsen at oracle.com Fri Oct 4 00:11:09 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Fri, 4 Oct 2013 09:11:09 +0200
Subject: RFR (S) 8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002
crashed with SIGSEGV
In-Reply-To: <524DF490.3000005@oracle.com>
References: <524DB145.5030109@oracle.com> <524DD388.8060706@oracle.com>
<524DF490.3000005@oracle.com>
Message-ID:
On 4 okt 2013, at 00:49, Coleen Phillmore wrote:
>
> Thanks Dan -
>
> On 10/3/2013 4:28 PM, Daniel D. Daugherty wrote:
>> > open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>>
>> test/java/lang/instrument/RedefineMethodInBacktrace.sh
>> No comments.
>>
>> test/java/lang/instrument/RedefineMethodInBacktraceApp.java
>> line 78: t.setDaemon(true);
>> Why make the target thread a daemon? Wouldn't it be a more
>> complete test to do Thread.join() of that thread just to
>> be sure that the target thread has finished (and is not
>> stuck)?
>
> Staffan, can you answer this?
You could do it either way. I don't have a strong opinion. It's possible that the deamonization is a leftover from one of my iterations of the test.
/Staffan
>
> Coleen
>
>>
>> test/java/lang/instrument/RedefineMethodInBacktraceTargetB.java
>> test/java/lang/instrument/RedefineMethodInBacktraceTargetB_2.java
>> Nice sync logic with the test driver.
>>
>> Thumbs up.
>>
>> Dan
>>
>>
>> On 10/3/13 12:02 PM, Coleen Phillimore wrote:
>>> Summary: Redefined class in stack trace may not be found by method_idnum so handle null.
>>>
>>> This is a simple change. I had another change to save the method name (as u2) in the backtrace, but it's not worth the extra footprint in backtraces for this rare case.
>>>
>>> The root problem was that we save method_idnum in the backtrace (u2) instead of Method* to avoid Method* from being redefined and deallocated. I made a change to InstanceKlass::method_from_idnum() to return null rather than the last method in the list, which causes this crash. Dan and I went down the long rabbit-hole of why method_idnum is changed for obsolete methods and we think there's some cleanup and potential bugs in this area. But this is not that change. I'll file another bug to continue this investigation for jdk9 (or 8uN).
>>>
>>> Staffan created a test - am including core-libs for the review request. Also tested with all of the vm testbase tests, mlvm tests, and java/lang/instrument tests.
>>>
>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238/
>>> bug link https://bugs.openjdk.java.net/browse/JDK-8025238
>>>
>>> test case for jdk8 repository:
>>>
>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025238_jdk
>>>
>>> Thanks,
>>> Coleen
>>>
>>>
>>
>
From coleen.phillimore at oracle.com Fri Oct 4 00:51:20 2013
From: coleen.phillimore at oracle.com (coleen.phillimore at oracle.com)
Date: Fri, 04 Oct 2013 07:51:20 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8025238:
nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed with SIGSEGV
Message-ID: <20131004075130.9687C62D54@hg.openjdk.java.net>
Changeset: 07f8c2a453f8
Author: coleenp
Date: 2013-10-03 18:53 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/07f8c2a453f8
8025238: nsk/jvmti/scenarios/bcinstr/BI04/bi04t002 crashed with SIGSEGV
Summary: Redefined class in stack trace may not be found by method_idnum so handle null.
Reviewed-by: sla, dcubed, sspitsyn
! src/share/vm/classfile/javaClasses.cpp
! src/share/vm/prims/jvmtiRedefineClasses.cpp
From jaroslav.bachorik at oracle.com Fri Oct 4 02:15:47 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Fri, 04 Oct 2013 11:15:47 +0200
Subject: jmx-dev RFR: 8022220 Intermittent test failures in
javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
In-Reply-To: <524D9098.6030701@oracle.com>
References: <52308389.6060001@oracle.com> <524C2976.8020109@oracle.com>
<524D870D.2080804@oracle.com> <524D8D6C.9050907@oracle.com>
<524D8F1E.9050904@oracle.com> <524D9098.6030701@oracle.com>
Message-ID: <524E8743.3070901@oracle.com>
On 3.10.2013 17:43, Chris Hegarty wrote:
> On 10/03/2013 04:37 PM, Jaroslav Bachorik wrote:
>> On 3.10.2013 17:29, Chris Hegarty wrote:
>>>
>>>
>>> On 10/03/2013 04:02 PM, Jaroslav Bachorik wrote:
>>>> .......
>>>> But it might hardly matter - it seems that the main culprit for this
>>>> test to fail on this particular configuration was the fact that
>>>> 127.0.0.1 was *NOT* detected as a loopback IP. This is pretty weird and
>>>
>>> I have not looked at the specifics, but if you have an InetAddress
>>> instance you can invoke the isLoopbackAddress() [1][2] method to
>>> correctly determine if the instance is a valid loopback address.
>>
>> Yes, and exactly this method seems to have failed to determine 127.0.0.1
>> being a loopback - according to the test output.
>>
>> I really can't see how because it basically compares the left-most byte
>> of the IP to 127 ...
>
> Hmm... if this method fails to make the correct determination then we
> have problems ;-) We use isLoopbackAddress in may other networking, and
> similar, tests in the jdk.
>
> Sorry, I don't know what to say, there must be some other kind of issue
> on your machine, or address is not truly 127.0.0.1.
Well, it turns out that this issue was reported roughly 7 months after
it actually appeared in the test stabilization run. When digging around
for more info in the logs it became obvious that this problem has been
covered by a separate issue and fixed for b84. Additionaly, there was
some fiddling with /etc/hosts during the test run.
So, as usual, no black magic here ... just a lot of communication noise :/
Thanks everybody for taking your time and reviewing this unnecessary change.
-JB-
>
> -Chris.
>
>
>>
>> -JB-
>>
>>>
>>> -Chris.
>>>
>>> [1]
>>> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/54e099776f08/src/share/classes/java/net/Inet4Address.java
>>>
>>>
>>>
>>> [2]
>>> http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/54e099776f08/src/share/classes/java/net/Inet6Address.java
>>>
>>>
>>>
>>>
>>>> makes one question the sanity of the test setup...
>>>>
>>>> -JB-
>>>>
>>>>>
>>>>> -Dmitry
>>>>>
>>>>>
>>>>> On 2013-09-11 18:51, Jaroslav Bachorik wrote:
>>>>>> Please, review this simple patch for an intermittently failing test.
>>>>>>
>>>>>> The test fails in cases when the connection loopback is resolved
>>>>>> to be
>>>>>> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu.
>>>>>> The
>>>>>> test does not anticipate this possibility and requires the loopback
>>>>>> address to be exactly 127.0.0.1
>>>>>>
>>>>>> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
>>>>>> consider them non equal even though they are both the same loopback.
>>>>>> The
>>>>>> patch adds a bit of flexibility to the test allowing for any two
>>>>>> valid
>>>>>> loopback addresses (127.0.0.0/8) to be equal.
>>>>>>
>>>>>> Issue : JDK-8022220
>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> -JB-
>>>>>>
>>>>>
>>>>>
>>>>
>>
From peter.allwin at oracle.com Fri Oct 4 04:13:46 2013
From: peter.allwin at oracle.com (Peter Allwin)
Date: Fri, 4 Oct 2013 04:13:46 -0700 (PDT)
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
Message-ID:
Hello!
Looking for reviews for this very simple fix to a JDK test, where warnings in stderr could cause the test to fail.
Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
Thanks!
/peter
From staffan.larsen at oracle.com Fri Oct 4 04:29:18 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Fri, 4 Oct 2013 13:29:18 +0200
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
In-Reply-To:
References:
Message-ID:
Looks good!
Thanks,
/Staffan
On 4 okt 2013, at 13:13, Peter Allwin wrote:
> Hello!
>
> Looking for reviews for this very simple fix to a JDK test, where warnings in stderr could cause the test to fail.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
> CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
>
>
> Thanks!
> /peter
From dmitry.samersoff at oracle.com Fri Oct 4 04:34:41 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Fri, 04 Oct 2013 15:34:41 +0400
Subject: RFR [8025886] typo in shell regtest == instead of =
In-Reply-To: <524D7AF6.2000705@oracle.com>
References: <524D7AF6.2000705@oracle.com>
Message-ID: <524EA7D1.7030908@oracle.com>
Ivan,
If you need shell pattern match CYGWIN_NT*
it's better to use
case
but not
if
-Dmitry
On 2013-10-03 18:11, Ivan Gerasimov wrote:
> Hello!
>
> May I please have a review for a simple fix of the shell regtest?
> Bash seems to accept both = and == comparisons, but sh accepts only =.
>
> http://bugs.sun.com/view_bug.do?bug_id=8025886 (not yet visible.)
>
> Sincerely yours,
> Ivan
>
>
> --- a/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
> +++ b/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
> @@ -34,7 +34,7 @@
> OS=`uname -s`
> UMASK=`umask`
>
> -if [[ $OS == CYGWIN_NT* ]] ; then
> +if [[ $OS = CYGWIN_NT* ]] ; then
> OS="Windows_NT"
> if [ -z "$SystemRoot" ] ; then
> SystemRoot=$SYSTEMROOT
>
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From jaroslav.bachorik at oracle.com Fri Oct 4 04:41:56 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Fri, 04 Oct 2013 13:41:56 +0200
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
In-Reply-To:
References:
Message-ID: <524EA984.4030509@oracle.com>
Looks fine. Just a thought - wouldn't it make sense to check for the
error message disregarding the case?
-JB-
On 4.10.2013 13:29, Staffan Larsen wrote:
> Looks good!
>
> Thanks,
> /Staffan
>
> On 4 okt 2013, at 13:13, Peter Allwin wrote:
>
>> Hello!
>>
>> Looking for reviews for this very simple fix to a JDK test, where warnings in stderr could cause the test to fail.
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
>> CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
>>
>>
>> Thanks!
>> /peter
>
From markus.gronlund at oracle.com Fri Oct 4 04:49:16 2013
From: markus.gronlund at oracle.com (=?utf-8?B?TWFya3VzIEdyw7ZubHVuZA==?=)
Date: Fri, 4 Oct 2013 04:49:16 -0700 (PDT)
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
In-Reply-To:
References:
Message-ID: <82727e04-9775-4d39-8127-9fe5e6e472e9@default>
Looks good.
/Markus
-----Original Message-----
From: Peter Allwin
Sent: den 4 oktober 2013 13:14
To: serviceability-dev at openjdk.java.net
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test com/sun/jdi/NoLaunchOptionTest.java
Hello!
Looking for reviews for this very simple fix to a JDK test, where warnings in stderr could cause the test to fail.
Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
Thanks!
/peter
From david.holmes at oracle.com Fri Oct 4 04:49:26 2013
From: david.holmes at oracle.com (David Holmes)
Date: Fri, 04 Oct 2013 21:49:26 +1000
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
In-Reply-To:
References:
Message-ID: <524EAB46.40401@oracle.com>
On 4/10/2013 9:13 PM, Peter Allwin wrote:
> Hello!
>
> Looking for reviews for this very simple fix to a JDK test, where warnings in stderr could cause the test to fail.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
> CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
Sorry I don't get it. This change will match (in theory) more lines with
Error in them. But how does that help when the problem was an unexpected
warning ?
David
>
> Thanks!
> /peter
>
From david.holmes at oracle.com Fri Oct 4 05:00:32 2013
From: david.holmes at oracle.com (David Holmes)
Date: Fri, 04 Oct 2013 22:00:32 +1000
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
In-Reply-To: <524EAB46.40401@oracle.com>
References:
<524EAB46.40401@oracle.com>
Message-ID: <524EADE0.80701@oracle.com>
On 4/10/2013 9:49 PM, David Holmes wrote:
> On 4/10/2013 9:13 PM, Peter Allwin wrote:
>> Hello!
>>
>> Looking for reviews for this very simple fix to a JDK test, where
>> warnings in stderr could cause the test to fail.
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
>> CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
>
> Sorry I don't get it. This change will match (in theory) more lines with
> Error in them. But how does that help when the problem was an unexpected
> warning ?
Never mind I get it. The output is a multi-line value that would
normally only have the Error but when the warning is present it comes
first with the Error following.
David
> David
>
>>
>> Thanks!
>> /peter
>>
From peter.allwin at oracle.com Fri Oct 4 05:12:03 2013
From: peter.allwin at oracle.com (Peter Allwin)
Date: Fri, 4 Oct 2013 05:12:03 -0700 (PDT)
Subject: RFR: 8025829: Add java/lang/instrument/RetransformBigClass.sh to
problemlist
Message-ID:
Hello!
This change adds java/lang/instrument/RetransformBigClass.sh and java/lang/instrument/RedefineBigClass.sh to problemlist, due to bug [0].
CR: http://cr.openjdk.java.net/~allwin/8025829/webrev.00/
Bug: https://bugs.openjdk.java.net/browse/JDK-8023201
Thanks!
/peter
[0] https://bugs.openjdk.java.net/browse/JDK-8023201
From chris.hegarty at oracle.com Fri Oct 4 05:13:13 2013
From: chris.hegarty at oracle.com (Chris Hegarty)
Date: Fri, 4 Oct 2013 13:13:13 +0100
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
In-Reply-To:
References:
Message-ID: <10C0BCFB-5E52-4059-8919-35074F4403F2@oracle.com>
Look ok to me Peter.
-Chris
> On 4 Oct 2013, at 12:13, Peter Allwin wrote:
>
> Hello!
>
> Looking for reviews for this very simple fix to a JDK test, where warnings in stderr could cause the test to fail.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
> CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
>
>
> Thanks!
> /peter
From staffan.larsen at oracle.com Fri Oct 4 05:40:46 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Fri, 4 Oct 2013 14:40:46 +0200
Subject: RFR: 8025829: Add java/lang/instrument/RetransformBigClass.sh to
problemlist
In-Reply-To:
References:
Message-ID:
Looks good!
Thanks,
/Staffan
On 4 okt 2013, at 14:12, Peter Allwin wrote:
> Hello!
>
> This change adds java/lang/instrument/RetransformBigClass.sh and java/lang/instrument/RedefineBigClass.sh to problemlist, due to bug [0].
>
> CR: http://cr.openjdk.java.net/~allwin/8025829/webrev.00/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8023201
>
>
>
> Thanks!
> /peter
>
> [0] https://bugs.openjdk.java.net/browse/JDK-8023201
>
From jaroslav.bachorik at oracle.com Fri Oct 4 05:41:52 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Fri, 04 Oct 2013 14:41:52 +0200
Subject: RFR: 8025829: Add java/lang/instrument/RetransformBigClass.sh
to problemlist
In-Reply-To:
References:
Message-ID: <524EB790.4040702@oracle.com>
Looks ok.
-JB-
On 4.10.2013 14:12, Peter Allwin wrote:
> Hello!
>
> This change adds java/lang/instrument/RetransformBigClass.sh and java/lang/instrument/RedefineBigClass.sh to problemlist, due to bug [0].
>
> CR: http://cr.openjdk.java.net/~allwin/8025829/webrev.00/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8023201
>
>
>
> Thanks!
> /peter
>
> [0] https://bugs.openjdk.java.net/browse/JDK-8023201
>
From sundararajan.athijegannathan at oracle.com Fri Oct 4 06:05:39 2013
From: sundararajan.athijegannathan at oracle.com (sundararajan.athijegannathan at oracle.com)
Date: Fri, 04 Oct 2013 13:05:39 +0000
Subject: hg: jdk8/tl/nashorn: 8025771: Enhance Nashorn Contexts
Message-ID: <20131004130547.E8AB662D72@hg.openjdk.java.net>
Changeset: 3470bc26128f
Author: sundar
Date: 2013-10-04 16:21 +0530
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/3470bc26128f
8025771: Enhance Nashorn Contexts
Reviewed-by: jlaskey, hannesw
- make/java.security.override
! make/project.properties
! src/jdk/nashorn/api/scripting/NashornScriptEngine.java
! src/jdk/nashorn/internal/runtime/Context.java
! src/jdk/nashorn/internal/runtime/linker/JavaAdapterFactory.java
! src/jdk/nashorn/internal/runtime/linker/NashornStaticClassLinker.java
! test/script/basic/JDK-8023026.js
+ test/script/sandbox/arrayclass.js
+ test/script/sandbox/arrayclass.js.EXPECTED
From Alan.Bateman at oracle.com Fri Oct 4 06:17:28 2013
From: Alan.Bateman at oracle.com (Alan Bateman)
Date: Fri, 04 Oct 2013 06:17:28 -0700
Subject: RFR: 8025829: Add java/lang/instrument/RetransformBigClass.sh
to problemlist
In-Reply-To:
References:
Message-ID: <524EBFE8.1090605@oracle.com>
On 04/10/2013 05:12, Peter Allwin wrote:
> Hello!
>
> This change adds java/lang/instrument/RetransformBigClass.sh and java/lang/instrument/RedefineBigClass.sh to problemlist, due to bug [0].
>
> CR: http://cr.openjdk.java.net/~allwin/8025829/webrev.00/
> Bug: https://bugs.openjdk.java.net/browse/JDK-8023201
>
Looks good, I see these two failing on a regular basis so excluding them
(temporarily) until the underlying issue is understood and fixed is fine.
-Alan.
From staffan.larsen at oracle.com Fri Oct 4 06:19:00 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Fri, 04 Oct 2013 13:19:00 +0000
Subject: hg: jdk8/tl/jdk: 8025829: Add
java/lang/instrument/RetransformBigClass.sh to problemlist
Message-ID: <20131004131913.076C062D74@hg.openjdk.java.net>
Changeset: 77ba1e67707c
Author: allwin
Date: 2013-10-04 15:00 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/77ba1e67707c
8025829: Add java/lang/instrument/RetransformBigClass.sh to problemlist
Reviewed-by: sla, jbachorik
! test/ProblemList.txt
From vincent.x.ryan at oracle.com Fri Oct 4 08:06:58 2013
From: vincent.x.ryan at oracle.com (vincent.x.ryan at oracle.com)
Date: Fri, 04 Oct 2013 15:06:58 +0000
Subject: hg: jdk8/tl/jdk: 8008296: keytool utility doesn't support
'-importpassword' command
Message-ID: <20131004150846.CCBE862D79@hg.openjdk.java.net>
Changeset: b5aad88cbf12
Author: vinnie
Date: 2013-10-04 16:05 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b5aad88cbf12
8008296: keytool utility doesn't support '-importpassword' command
Reviewed-by: weijun
! src/share/classes/sun/security/tools/keytool/Main.java
! src/share/classes/sun/security/tools/keytool/Resources.java
+ test/sun/security/tools/keytool/StorePasswords.java
+ test/sun/security/tools/keytool/StorePasswordsByShell.sh
From alexander.zuev at oracle.com Fri Oct 4 08:39:23 2013
From: alexander.zuev at oracle.com (alexander.zuev at oracle.com)
Date: Fri, 04 Oct 2013 15:39:23 +0000
Subject: hg: jdk8/tl/langtools: 7096170: should remove unused support for
enabling javac logging
Message-ID: <20131004153931.CB4C862D7A@hg.openjdk.java.net>
Changeset: c0d44b1e6b6a
Author: kizune
Date: 2013-10-04 19:38 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/c0d44b1e6b6a
7096170: should remove unused support for enabling javac logging
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
From roger.riggs at oracle.com Fri Oct 4 09:53:10 2013
From: roger.riggs at oracle.com (roger.riggs at oracle.com)
Date: Fri, 04 Oct 2013 16:53:10 +0000
Subject: hg: jdk8/tl/jdk: 7 new changesets
Message-ID: <20131004165456.3C0CA62D87@hg.openjdk.java.net>
Changeset: 1de0fac9b962
Author: rriggs
Date: 2013-08-29 20:38 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1de0fac9b962
8023764: Optimize Period addition
Summary: Optimise plus/minus for common cases
Reviewed-by: sherman
Contributed-by: scolebourne at joda.org
! src/share/classes/java/time/LocalDate.java
! src/share/classes/java/time/LocalDateTime.java
! src/share/classes/java/time/ZonedDateTime.java
Changeset: 356df1b99976
Author: rriggs
Date: 2013-08-30 11:43 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/356df1b99976
8023763: Rename ChronoDateImpl
Summary: Rename ChronoDateImpl to ChronoLocalDateImpl
Reviewed-by: sherman
Contributed-by: scolebourne at joda.org
- src/share/classes/java/time/chrono/ChronoDateImpl.java
! src/share/classes/java/time/chrono/ChronoLocalDate.java
+ src/share/classes/java/time/chrono/ChronoLocalDateImpl.java
! src/share/classes/java/time/chrono/ChronoLocalDateTimeImpl.java
! src/share/classes/java/time/chrono/HijrahDate.java
! src/share/classes/java/time/chrono/JapaneseDate.java
! src/share/classes/java/time/chrono/MinguoDate.java
! src/share/classes/java/time/chrono/ThaiBuddhistDate.java
Changeset: 5d73f7a2db51
Author: rriggs
Date: 2013-09-04 15:18 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5d73f7a2db51
8023762: Add ChronoPeriod interface and bind period to Chronology
Summary: Make Period ISO-only, adding a Chronology-specific period concept
Reviewed-by: sherman
Contributed-by: scolebourne at joda.org
! src/share/classes/java/time/LocalDate.java
! src/share/classes/java/time/Period.java
! src/share/classes/java/time/chrono/ChronoLocalDate.java
+ src/share/classes/java/time/chrono/ChronoPeriod.java
+ src/share/classes/java/time/chrono/ChronoPeriodImpl.java
! src/share/classes/java/time/chrono/Chronology.java
! src/share/classes/java/time/chrono/HijrahDate.java
! src/share/classes/java/time/chrono/IsoChronology.java
! src/share/classes/java/time/chrono/JapaneseDate.java
! src/share/classes/java/time/chrono/MinguoDate.java
! src/share/classes/java/time/chrono/Ser.java
! src/share/classes/java/time/chrono/ThaiBuddhistDate.java
! src/share/classes/java/time/temporal/Temporal.java
! test/java/time/tck/java/time/TCKPeriod.java
+ test/java/time/tck/java/time/chrono/TCKChronoPeriod.java
! test/java/time/tck/java/time/chrono/TCKJapaneseChronology.java
! test/java/time/tck/java/time/chrono/TCKMinguoChronology.java
! test/java/time/tck/java/time/chrono/TCKThaiBuddhistChronology.java
! test/java/time/test/java/time/chrono/TestUmmAlQuraChronology.java
Changeset: 79077f1641cc
Author: rriggs
Date: 2013-09-14 22:46 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/79077f1641cc
8024835: Change until() to accept any compatible temporal
Summary: Method until(Temporal,TemporalUnit) now uses from() to convert; Enhance from() methods where necessary
Reviewed-by: sherman
Contributed-by: scolebourne at joda.org
! src/share/classes/java/time/Duration.java
! src/share/classes/java/time/Instant.java
! src/share/classes/java/time/LocalDate.java
! src/share/classes/java/time/LocalDateTime.java
! src/share/classes/java/time/LocalTime.java
! src/share/classes/java/time/MonthDay.java
! src/share/classes/java/time/OffsetDateTime.java
! src/share/classes/java/time/OffsetTime.java
! src/share/classes/java/time/Year.java
! src/share/classes/java/time/YearMonth.java
! src/share/classes/java/time/ZoneOffset.java
! src/share/classes/java/time/ZonedDateTime.java
! src/share/classes/java/time/chrono/ChronoLocalDate.java
! src/share/classes/java/time/chrono/ChronoLocalDateImpl.java
! src/share/classes/java/time/chrono/ChronoLocalDateTime.java
! src/share/classes/java/time/chrono/ChronoLocalDateTimeImpl.java
! src/share/classes/java/time/chrono/ChronoZonedDateTime.java
! src/share/classes/java/time/chrono/ChronoZonedDateTimeImpl.java
! src/share/classes/java/time/temporal/ChronoUnit.java
! src/share/classes/java/time/temporal/IsoFields.java
! src/share/classes/java/time/temporal/Temporal.java
! src/share/classes/java/time/temporal/TemporalUnit.java
! test/java/time/tck/java/time/TCKDuration.java
! test/java/time/tck/java/time/TCKInstant.java
! test/java/time/tck/java/time/TCKLocalDate.java
! test/java/time/tck/java/time/TCKLocalDateTime.java
! test/java/time/tck/java/time/TCKLocalTime.java
! test/java/time/tck/java/time/TCKOffsetDateTime.java
! test/java/time/tck/java/time/TCKOffsetTime.java
! test/java/time/tck/java/time/TCKYear.java
! test/java/time/tck/java/time/TCKYearMonth.java
! test/java/time/tck/java/time/TCKZonedDateTime.java
! test/java/time/tck/java/time/chrono/CopticDate.java
! test/java/time/tck/java/time/temporal/TCKIsoFields.java
Changeset: 14a187dc4ffe
Author: rriggs
Date: 2013-10-04 12:01 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/14a187dc4ffe
8024999: Instant.Parse typo in example
Summary: javadoc only fix to correct example to use "." and "Z"
Reviewed-by: sherman
! src/share/classes/java/time/Instant.java
Changeset: f9c701ba04e7
Author: rriggs
Date: 2013-09-14 22:50 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f9c701ba04e7
8024807: Add getChronlogy() to CLDT/CZDT
Summary: Alternative to method is clunky and hard to find
Reviewed-by: sherman
Contributed-by: scolebourne at joda.org
! src/share/classes/java/time/chrono/ChronoLocalDateTime.java
! src/share/classes/java/time/chrono/ChronoLocalDateTimeImpl.java
! src/share/classes/java/time/chrono/ChronoZonedDateTime.java
! src/share/classes/java/time/chrono/ChronoZonedDateTimeImpl.java
! test/java/time/tck/java/time/chrono/TCKChronoLocalDateTime.java
! test/java/time/tck/java/time/chrono/TCKChronoZonedDateTime.java
Changeset: e12b912ab98e
Author: rriggs
Date: 2013-09-14 22:54 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e12b912ab98e
8024834: Better return type for TemporalField resolve
Summary: Allow resolve method to return more than just ChronoLocalDate
Reviewed-by: sherman
Contributed-by: scolebourne at joda.org
! src/share/classes/java/time/format/Parsed.java
! src/share/classes/java/time/temporal/TemporalField.java
! test/java/time/tck/java/time/format/TCKDateTimeParseResolver.java
From robert.field at oracle.com Fri Oct 4 09:55:18 2013
From: robert.field at oracle.com (robert.field at oracle.com)
Date: Fri, 04 Oct 2013 16:55:18 +0000
Subject: hg: jdk8/tl/jdk: 8021186: jdk/lambda/vm/DefaultMethodsTest.java fails
Message-ID: <20131004165529.DFDB862D88@hg.openjdk.java.net>
Changeset: 7736abdf0805
Author: rfield
Date: 2013-10-04 09:54 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7736abdf0805
8021186: jdk/lambda/vm/DefaultMethodsTest.java fails
Summary: remove DefaultMethodsTest from jdk/test/problemList.txt
Reviewed-by: mduigou
! test/ProblemList.txt
From joe.darcy at oracle.com Fri Oct 4 10:00:53 2013
From: joe.darcy at oracle.com (joe.darcy at oracle.com)
Date: Fri, 04 Oct 2013 17:00:53 +0000
Subject: hg: jdk8/tl/langtools: 8025913: Rename jdk.Supported to jdk.Exported
Message-ID: <20131004170100.617D762D89@hg.openjdk.java.net>
Changeset: 379c04c090cf
Author: darcy
Date: 2013-10-04 10:00 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/379c04c090cf
8025913: Rename jdk.Supported to jdk.Exported
Reviewed-by: psandoz, forax, lancea, alanb, mchung, jjg
! src/share/classes/com/sun/source/doctree/AttributeTree.java
! src/share/classes/com/sun/source/doctree/AuthorTree.java
! src/share/classes/com/sun/source/doctree/BlockTagTree.java
! src/share/classes/com/sun/source/doctree/CommentTree.java
! src/share/classes/com/sun/source/doctree/DeprecatedTree.java
! src/share/classes/com/sun/source/doctree/DocCommentTree.java
! src/share/classes/com/sun/source/doctree/DocRootTree.java
! src/share/classes/com/sun/source/doctree/DocTree.java
! src/share/classes/com/sun/source/doctree/DocTreeVisitor.java
! src/share/classes/com/sun/source/doctree/EndElementTree.java
! src/share/classes/com/sun/source/doctree/EntityTree.java
! src/share/classes/com/sun/source/doctree/ErroneousTree.java
! src/share/classes/com/sun/source/doctree/IdentifierTree.java
! src/share/classes/com/sun/source/doctree/InheritDocTree.java
! src/share/classes/com/sun/source/doctree/InlineTagTree.java
! src/share/classes/com/sun/source/doctree/LinkTree.java
! src/share/classes/com/sun/source/doctree/LiteralTree.java
! src/share/classes/com/sun/source/doctree/ParamTree.java
! src/share/classes/com/sun/source/doctree/ReferenceTree.java
! src/share/classes/com/sun/source/doctree/ReturnTree.java
! src/share/classes/com/sun/source/doctree/SeeTree.java
! src/share/classes/com/sun/source/doctree/SerialDataTree.java
! src/share/classes/com/sun/source/doctree/SerialFieldTree.java
! src/share/classes/com/sun/source/doctree/SerialTree.java
! src/share/classes/com/sun/source/doctree/SinceTree.java
! src/share/classes/com/sun/source/doctree/StartElementTree.java
! src/share/classes/com/sun/source/doctree/TextTree.java
! src/share/classes/com/sun/source/doctree/ThrowsTree.java
! src/share/classes/com/sun/source/doctree/UnknownBlockTagTree.java
! src/share/classes/com/sun/source/doctree/UnknownInlineTagTree.java
! src/share/classes/com/sun/source/doctree/ValueTree.java
! src/share/classes/com/sun/source/doctree/VersionTree.java
! src/share/classes/com/sun/source/doctree/package-info.java
! src/share/classes/com/sun/source/tree/AnnotatedTypeTree.java
! src/share/classes/com/sun/source/tree/AnnotationTree.java
! src/share/classes/com/sun/source/tree/ArrayAccessTree.java
! src/share/classes/com/sun/source/tree/ArrayTypeTree.java
! src/share/classes/com/sun/source/tree/AssertTree.java
! src/share/classes/com/sun/source/tree/AssignmentTree.java
! src/share/classes/com/sun/source/tree/BinaryTree.java
! src/share/classes/com/sun/source/tree/BlockTree.java
! src/share/classes/com/sun/source/tree/BreakTree.java
! src/share/classes/com/sun/source/tree/CaseTree.java
! src/share/classes/com/sun/source/tree/CatchTree.java
! src/share/classes/com/sun/source/tree/ClassTree.java
! src/share/classes/com/sun/source/tree/CompilationUnitTree.java
! src/share/classes/com/sun/source/tree/CompoundAssignmentTree.java
! src/share/classes/com/sun/source/tree/ConditionalExpressionTree.java
! src/share/classes/com/sun/source/tree/ContinueTree.java
! src/share/classes/com/sun/source/tree/DoWhileLoopTree.java
! src/share/classes/com/sun/source/tree/EmptyStatementTree.java
! src/share/classes/com/sun/source/tree/EnhancedForLoopTree.java
! src/share/classes/com/sun/source/tree/ErroneousTree.java
! src/share/classes/com/sun/source/tree/ExpressionStatementTree.java
! src/share/classes/com/sun/source/tree/ExpressionTree.java
! src/share/classes/com/sun/source/tree/ForLoopTree.java
! src/share/classes/com/sun/source/tree/IdentifierTree.java
! src/share/classes/com/sun/source/tree/IfTree.java
! src/share/classes/com/sun/source/tree/ImportTree.java
! src/share/classes/com/sun/source/tree/InstanceOfTree.java
! src/share/classes/com/sun/source/tree/IntersectionTypeTree.java
! src/share/classes/com/sun/source/tree/LabeledStatementTree.java
! src/share/classes/com/sun/source/tree/LambdaExpressionTree.java
! src/share/classes/com/sun/source/tree/LineMap.java
! src/share/classes/com/sun/source/tree/LiteralTree.java
! src/share/classes/com/sun/source/tree/MemberReferenceTree.java
! src/share/classes/com/sun/source/tree/MemberSelectTree.java
! src/share/classes/com/sun/source/tree/MethodInvocationTree.java
! src/share/classes/com/sun/source/tree/MethodTree.java
! src/share/classes/com/sun/source/tree/ModifiersTree.java
! src/share/classes/com/sun/source/tree/NewArrayTree.java
! src/share/classes/com/sun/source/tree/NewClassTree.java
! src/share/classes/com/sun/source/tree/ParameterizedTypeTree.java
! src/share/classes/com/sun/source/tree/ParenthesizedTree.java
! src/share/classes/com/sun/source/tree/PrimitiveTypeTree.java
! src/share/classes/com/sun/source/tree/ReturnTree.java
! src/share/classes/com/sun/source/tree/Scope.java
! src/share/classes/com/sun/source/tree/StatementTree.java
! src/share/classes/com/sun/source/tree/SwitchTree.java
! src/share/classes/com/sun/source/tree/SynchronizedTree.java
! src/share/classes/com/sun/source/tree/ThrowTree.java
! src/share/classes/com/sun/source/tree/Tree.java
! src/share/classes/com/sun/source/tree/TreeVisitor.java
! src/share/classes/com/sun/source/tree/TryTree.java
! src/share/classes/com/sun/source/tree/TypeCastTree.java
! src/share/classes/com/sun/source/tree/TypeParameterTree.java
! src/share/classes/com/sun/source/tree/UnaryTree.java
! src/share/classes/com/sun/source/tree/UnionTypeTree.java
! src/share/classes/com/sun/source/tree/VariableTree.java
! src/share/classes/com/sun/source/tree/WhileLoopTree.java
! src/share/classes/com/sun/source/tree/WildcardTree.java
! src/share/classes/com/sun/source/tree/package-info.java
! src/share/classes/com/sun/source/util/DocSourcePositions.java
! src/share/classes/com/sun/source/util/DocTreePath.java
! src/share/classes/com/sun/source/util/DocTreePathScanner.java
! src/share/classes/com/sun/source/util/DocTreeScanner.java
! src/share/classes/com/sun/source/util/DocTrees.java
! src/share/classes/com/sun/source/util/JavacTask.java
! src/share/classes/com/sun/source/util/Plugin.java
! src/share/classes/com/sun/source/util/SimpleDocTreeVisitor.java
! src/share/classes/com/sun/source/util/SimpleTreeVisitor.java
! src/share/classes/com/sun/source/util/SourcePositions.java
! src/share/classes/com/sun/source/util/TaskEvent.java
! src/share/classes/com/sun/source/util/TaskListener.java
! src/share/classes/com/sun/source/util/TreePath.java
! src/share/classes/com/sun/source/util/TreePathScanner.java
! src/share/classes/com/sun/source/util/TreeScanner.java
! src/share/classes/com/sun/source/util/Trees.java
! src/share/classes/com/sun/source/util/package-info.java
! src/share/classes/com/sun/tools/javac/Main.java
+ src/share/classes/jdk/Exported.java
- src/share/classes/jdk/Supported.java
From daniel.fuchs at oracle.com Fri Oct 4 11:41:28 2013
From: daniel.fuchs at oracle.com (daniel.fuchs at oracle.com)
Date: Fri, 04 Oct 2013 18:41:28 +0000
Subject: hg: jdk8/tl/jaxp: 8025745: Clarify API documentation of JAXP
factories.
Message-ID: <20131004184134.9F52C62D8E@hg.openjdk.java.net>
Changeset: f031b2fe21cd
Author: dfuchs
Date: 2013-10-04 19:15 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/f031b2fe21cd
8025745: Clarify API documentation of JAXP factories.
Summary: Clarifies usage of ServiceLoader in JAXP factories.
Reviewed-by: alanb, joehw, psandoz
! src/javax/xml/datatype/DatatypeFactory.java
! src/javax/xml/parsers/DocumentBuilderFactory.java
! src/javax/xml/parsers/SAXParserFactory.java
! src/javax/xml/stream/XMLEventFactory.java
! src/javax/xml/stream/XMLInputFactory.java
! src/javax/xml/stream/XMLOutputFactory.java
! src/javax/xml/transform/TransformerFactory.java
! src/javax/xml/validation/SchemaFactory.java
! src/javax/xml/xpath/XPathFactory.java
From bhavesh.x.patel at oracle.com Fri Oct 4 13:32:59 2013
From: bhavesh.x.patel at oracle.com (bhavesh.x.patel at oracle.com)
Date: Fri, 04 Oct 2013 20:32:59 +0000
Subject: hg: jdk8/tl/langtools: 8008164: Invisible table captions in
javadoc-generated html
Message-ID: <20131004203309.BA4EA62D95@hg.openjdk.java.net>
Changeset: 6e186ca11ec0
Author: bpatel
Date: 2013-10-04 13:32 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/6e186ca11ec0
8008164: Invisible table captions in javadoc-generated html
Reviewed-by: jjg
! src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlStyle.java
! src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/resources/stylesheet.css
+ test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java
+ test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java
+ test/com/sun/javadoc/testHtmlTableStyles/pkg2/TestUse.java
! test/com/sun/javadoc/testHtmlTableTags/TestHtmlTableTags.java
! test/com/sun/javadoc/testProfiles/TestProfiles.java
! test/com/sun/javadoc/testStylesheet/TestStylesheet.java
From bhavesh.x.patel at oracle.com Fri Oct 4 13:41:46 2013
From: bhavesh.x.patel at oracle.com (bhavesh.x.patel at oracle.com)
Date: Fri, 04 Oct 2013 20:41:46 +0000
Subject: hg: jdk8/tl/langtools: 8024756: method grouping tabs are not
selectable
Message-ID: <20131004204149.F270A62D96@hg.openjdk.java.net>
Changeset: 3344ea7404b1
Author: bpatel
Date: 2013-10-04 13:41 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/3344ea7404b1
8024756: method grouping tabs are not selectable
Reviewed-by: jjg
! src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
! test/com/sun/javadoc/JavascriptWinTitle/JavascriptWinTitle.java
! test/com/sun/javadoc/testJavascript/TestJavascript.java
From jonathan.gibbons at oracle.com Fri Oct 4 14:00:16 2013
From: jonathan.gibbons at oracle.com (jonathan.gibbons at oracle.com)
Date: Fri, 04 Oct 2013 21:00:16 +0000
Subject: hg: jdk8/tl/langtools: 8022163: javac exits with 0 status and no
messages on error to construct an ann-procesor
Message-ID: <20131004210020.038FF62D97@hg.openjdk.java.net>
Changeset: 2fa6ced325cc
Author: jjg
Date: 2013-10-04 13:59 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/2fa6ced325cc
8022163: javac exits with 0 status and no messages on error to construct an ann-procesor
Reviewed-by: darcy
! src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
+ test/tools/javac/processing/errors/TestBadProcessor.java
From jonathan.gibbons at oracle.com Fri Oct 4 14:47:36 2013
From: jonathan.gibbons at oracle.com (jonathan.gibbons at oracle.com)
Date: Fri, 04 Oct 2013 21:47:36 +0000
Subject: hg: jdk8/tl/langtools: 6525408: DiagnosticListener should receive
MANDATORY_WARNING in standard compiler mode
Message-ID: <20131004214739.29BA162D99@hg.openjdk.java.net>
Changeset: 515d54c1b063
Author: jjg
Date: 2013-10-04 14:46 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/515d54c1b063
6525408: DiagnosticListener should receive MANDATORY_WARNING in standard compiler mode
Reviewed-by: darcy
! src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
! src/share/classes/javax/tools/Diagnostic.java
From jonathan.gibbons at oracle.com Fri Oct 4 15:25:52 2013
From: jonathan.gibbons at oracle.com (jonathan.gibbons at oracle.com)
Date: Fri, 04 Oct 2013 22:25:52 +0000
Subject: hg: jdk8/tl/langtools: 8025970: Spurious characters in JavaCompiler
Message-ID: <20131004222556.7299862D9B@hg.openjdk.java.net>
Changeset: 3e3c321710be
Author: jjg
Date: 2013-10-04 15:24 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/3e3c321710be
8025970: Spurious characters in JavaCompiler
Reviewed-by: ksrini
! src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
From bhavesh.x.patel at oracle.com Fri Oct 4 15:37:32 2013
From: bhavesh.x.patel at oracle.com (bhavesh.x.patel at oracle.com)
Date: Fri, 04 Oct 2013 22:37:32 +0000
Subject: hg: jdk8/tl: 8025741: Fix jdk/make/docs/Makefile to point to correct
docs URL for JDK 8.
Message-ID: <20131004223732.E1E0562D9C@hg.openjdk.java.net>
Changeset: 6b8f5030e5ad
Author: bpatel
Date: 2013-10-04 15:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/6b8f5030e5ad
8025741: Fix jdk/make/docs/Makefile to point to correct docs URL for JDK 8.
Reviewed-by: tbell
! common/makefiles/javadoc/Javadoc.gmk
From bhavesh.x.patel at oracle.com Fri Oct 4 15:38:54 2013
From: bhavesh.x.patel at oracle.com (bhavesh.x.patel at oracle.com)
Date: Fri, 04 Oct 2013 22:38:54 +0000
Subject: hg: jdk8/tl/jdk: 8025741: Fix jdk/make/docs/Makefile to point to
correct docs URL for JDK 8.
Message-ID: <20131004223906.38C9362D9D@hg.openjdk.java.net>
Changeset: 66181f7991bd
Author: bpatel
Date: 2013-10-04 15:25 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/66181f7991bd
8025741: Fix jdk/make/docs/Makefile to point to correct docs URL for JDK 8.
Reviewed-by: tbell
! make/docs/Makefile
From kumar.x.srinivasan at oracle.com Fri Oct 4 16:16:11 2013
From: kumar.x.srinivasan at oracle.com (kumar.x.srinivasan at oracle.com)
Date: Fri, 04 Oct 2013 23:16:11 +0000
Subject: hg: jdk8/tl/langtools: 8003537: javap use internal class name when
printing bound of type variable
Message-ID: <20131004231614.DD5DE62D9E@hg.openjdk.java.net>
Changeset: bb87db832b31
Author: ksrini
Date: 2013-10-04 16:08 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/bb87db832b31
8003537: javap use internal class name when printing bound of type variable
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javap/ClassWriter.java
+ test/tools/javap/BoundsTypeVariableTest.java
From kumar.x.srinivasan at oracle.com Fri Oct 4 16:45:49 2013
From: kumar.x.srinivasan at oracle.com (kumar.x.srinivasan at oracle.com)
Date: Fri, 04 Oct 2013 23:45:49 +0000
Subject: hg: jdk8/tl/langtools: 8005542: jtreg test OverrideBridge.java
contains @ignore
Message-ID: <20131004234552.5B5A562DA0@hg.openjdk.java.net>
Changeset: 15651a673358
Author: ksrini
Date: 2013-10-04 16:23 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/15651a673358
8005542: jtreg test OverrideBridge.java contains @ignore
Reviewed-by: jjg
Contributed-by: steve.sides at oracle.com
- test/tools/javac/generics/OverrideBridge.java
From yasu at ysfactory.dip.jp Fri Oct 4 17:32:05 2013
From: yasu at ysfactory.dip.jp (Yasumasa Suenaga)
Date: Sat, 05 Oct 2013 09:32:05 +0900
Subject: JDK-6989981: jstack causes "fatal error: ExceptionMark destructor
expects no pending exceptions"
In-Reply-To: <524E0864.4020505@oracle.com>
References: <523C264E.7060704@ysfactory.dip.jp>
<97D9FB54-FFF1-4337-942A-E7FE2196A354@oracle.com>
<523C534C.7060908@ysfactory.dip.jp>
<9367FE2B-C709-4273-BEAE-745841846560@oracle.com>
<523C5A8A.8060000@ysfactory.dip.jp>
<523C606B.5060204@ysfactory.dip.jp>
<952F096A-69D2-4E7C-B979-91E95AFE37F8@oracle.com>
<523D786C.5090605@ysfactory.dip.jp> <523EAF7C.3050000@oracle.com>
<3FE7CB8E-39F4-4915-B82E-AC2F88715189@oracle.com>
<524ACADB.3060600@oracle.com> <524AD80F.2020308@ysfactory.dip.jp>
<524E0864.4020505@oracle.com>
Message-ID: <524F5E05.2000501@ysfactory.dip.jp>
Hi David,
> Will the tool fail differently now compared to the VM aborting?
With or without a patch, we will get same result from serviceability tools.
In tools side, they cannot connect to UNIX domain socket.
So we wiil get messages in TTY of tools as following:
-----------
1418: Unable to open socket file: target process not responding or HotSpot VM not loaded
The -F option can be used when the target process is not responding
-----------
Thanks,
Yasumasa
On 2013/10/04 9:14, David Holmes wrote:
> On 2/10/2013 12:11 AM, Yasumasa Suenaga wrote:
>> Hi David,
>>
>>> Other than printing a message on the console it pretends that the init
>>> has succeeded!
>>
>> No.
>>
>> signal_thread_entry() @ hotspot/src/share/vm/runtime/os.cpp
>> --------
>> 250 case SIGBREAK: {
>> 251 // Check if the signal is a trigger to start the
>> Attach Listener - in that
>> 252 // case don't print stack traces.
>> 253 if (!DisableAttachMechanism &&
>> AttachListener::is_init_trigger()) {
>> 254 continue;
>> 255 }
>> --------
>>
>> AttachListener::init() is called through is_init_trigger() (line 505).
>>
>> AttachListener::is_init_trigger() @
>> hotspot/src/share/vm/services/attachListener.cpp
>> --------
>> 501 if (ret == 0) {
>> 502 // simple check to avoid starting the attach mechanism when
>> 503 // a bogus user creates the file
>> 504 if (st.st_uid == geteuid()) {
>> 505 init();
>> 506 return true;
>> 507 }
>> 508 }
>> --------
>>
>> If exception occurs in AttachListner::init(),
>> AttachListner::is_init_trigger() returns "true" .
>> Process of SIGBREAK handler will be stopped (caused by continue
>> statement) and signal_thread_entry()
>> will return top of loop.
>>
>> In my patch, pending exception which occurs in AttachListener
>> initialization is cleared.
>> Thus Signal Dispatcher has no damage.
>
> But as I said the init() fails and we pretend it succeeded with respect to the caller. Now for the signal case if the init fails we can simply do nothing - the VM is running, this particular action failed, so the VM continues - that's okay. So I'm okay with the fix in that regard.
>
> In general I think AttachListener::init should return a boolean to indicate success or failure so that the caller can decide what needs to be done eg at VM startup it seems reasonable to call vm_exit_during_initialization because we can't pre-start the listener as we are required to do.
>
> Though as Staffan pointed out init() incorrectly calls vm_exit_during_initialization in other places. :(
>
>>> What are the consequences of doing this?
>>
>> If AttachListener::init() cannot work due to exception, it cannot create
>> UNIX domain socket to accept from java tools (e.g. jstack) .
>> Target VM which tried to invoke AttachListner continues to run.
>> (However, runtime exception such as OOME occurs, target VM will be
>> stopped immediately :-)
>>
>> On the other hand, java tools which tried to attach target VM will fail
>> because it cannot connect UNIX domain socket.
>
> Will the tool fail differently now compared to the VM aborting? Purely from a testing perspective we tend to notice VM aborts but the console print about the exception may well go unnoticed.
>
> Thanks,
> David
>
>>
>> Please run my testcase. It's actual behavior.
>>
>>
>> Thanks,
>>
>> Yasumasa
>>
>>
>> On 2013/10/01 22:15, David Holmes wrote:
>>> On 23/09/2013 2:41 AM, Staffan Larsen wrote:
>>>> Dmitry: Thanks for the review.
>>>>
>>>> Yasumasa: Thanks for your contribution! I have pushed the changes
>>>> into HS25 and will push them to 7u60 as well.
>>>
>>> I've been on vacation so could not respond in time. I am concerned
>>> about this fix. Other than printing a message on the console it
>>> pretends that the init has succeeded! That seems wrong to me. What are
>>> the consequences of doing this?
>>>
>>> David
>>> -----
>>>
>>>> /Staffan
>>>>
>>>> On 22 sep 2013, at 01:51, Dmitry Samersoff
>>>> wrote:
>>>>
>>>>> Yasumasa,
>>>>>
>>>>> Looks good for me.
>>>>>
>>>>> -Dmitry
>>>>>
>>>>> On 2013-09-21 14:43, Yasumasa Suenaga wrote:
>>>>>> Hi Staffan,
>>>>>>
>>>>>>> Can you update your patch, please?
>>>>>>
>>>>>> Of course!
>>>>>> I've attached new patch in this email.
>>>>>>
>>>>>> Could you check this?
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Yasumasa
>>>>>>
>>>>>> On 2013/09/21 15:36, Staffan Larsen wrote:
>>>>>>>
>>>>>>>
>>>>>>>> On 20 sep 2013, at 16:49, Yasumasa Suenaga
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> On 2013/09/20 23:34, Staffan Larsen wrote:
>>>>>>>>>
>>>>>>>>>> On 20 sep 2013, at 16:24, Yasumasa Suenaga
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> I thought your code too. However...
>>>>>>>>>>
>>>>>>>>>> - These code is different from other code (rule?).
>>>>>>>>>
>>>>>>>>> Well, you are introducing a new macro that is also different from
>>>>>>>>> other code, so I'm not sure how valid that argument is.
>>>>>>>>
>>>>>>>> My macro is modified from "CATCH" in exceptions.hpp:
>>>>>>>>
>>>>>>>> #define CATCH \
>>>>>>>> THREAD); if (HAS_PENDING_EXCEPTION) { \
>>>>>>>> oop ex = PENDING_EXCEPTION; \
>>>>>>>> CLEAR_PENDING_EXCEPTION; \
>>>>>>>> ex->print(); \
>>>>>>>> ShouldNotReachHere(); \
>>>>>>>> } (void)(0
>>>>>>>>
>>>>>>>> So I think that my macro is not big difference fromother code.
>>>>>>>>
>>>>>>>>
>>>>>>>>>> - Similar crash cases exist. e.g. 6425580 and 7142442.
>>>>>>>>>> These crashes are different from 6989981. However, I guess that
>>>>>>>>>> crashed
>>>>>>>>>> thread had pending exception and we need to fix with similar
>>>>>>>>>> patch.
>>>>>>>>>>
>>>>>>>>>> So I think that new macro is useful later.
>>>>>>>>>
>>>>>>>>> Yes, similar problems may come up in other cases as well.
>>>>>>>>>
>>>>>>>>> Generally, I don't think it's a good idea to have logging calls
>>>>>>>>> hidden away in general macros. What we really should do here is
>>>>>>>>> print some context around the stack trace as well. Something like:
>>>>>>>>>
>>>>>>>>> Initializing the attach listener failed with the following
>>>>>>>>> exception in AttachListener::init when initializing the thread_oop:
>>>>>>>>>
>>>>>>>>> This would be possible with the code I suggested, but very hard
>>>>>>>>> in a
>>>>>>>>> general macro.
>>>>>>>>
>>>>>>>> Agree.
>>>>>>>> Should we write code as following?
>>>>>>>>
>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>> tty->print_cr("Exception in VM (AttachListener::init) : ");
>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>> return;
>>>>>>>> }
>>>>>>>>
>>>>>>>> I like this way :-)
>>>>>>>
>>>>>>> Yes, this is what I'd like to see! Can you update your patch, please?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> /Staffan
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Yasumasa
>>>>>>>>
>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> /Staffan
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> Yasumasa
>>>>>>>>>>
>>>>>>>>>>> On 2013/09/20 23:05, Staffan Larsen wrote:
>>>>>>>>>>> I see. CHECK_AND_CLEAR_AND_PRINT? Just kidding... :-)
>>>>>>>>>>>
>>>>>>>>>>> Maybe in this case we should not have this as a macro, but
>>>>>>>>>>> actually add the code after the two calls to call_special?
>>>>>>>>>>> Something like the code below. I personally think this is more
>>>>>>>>>>> readable than obscure macros that I have to go look up to
>>>>>>>>>>> understand what they do.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>> /Staffan
>>>>>>>>>>>
>>>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>>>> klass,
>>>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>>>
>>>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>>>> thread_group,
>>>>>>>>>>> string,
>>>>>>>>>>> THREAD);
>>>>>>>>>>>
>>>>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>>>>> return;
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> KlassHandle group(THREAD, SystemDictionary::ThreadGroup_klass());
>>>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>>>> thread_group,
>>>>>>>>>>> group,
>>>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>>>> THREAD);
>>>>>>>>>>>
>>>>>>>>>>> if (HAS_PENDING_EXCEPTION) {
>>>>>>>>>>> java_lang_Throwable::print(PENDING_EXCEPTION, tty);
>>>>>>>>>>> CLEAR_PENDING_EXCEPTION;
>>>>>>>>>>> return;
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> On 20 sep 2013, at 15:53, Yasumasa
>>>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Staffan,
>>>>>>>>>>>>
>>>>>>>>>>>> Thank you for your sponsoring!
>>>>>>>>>>>>
>>>>>>>>>>>> "CHECK_AND_CLEAR" is already defined in exceptions.hpp:
>>>>>>>>>>>> ******************
>>>>>>>>>>>> #define CHECK_AND_CLEAR THREAD); if
>>>>>>>>>>>> (HAS_PENDING_EXCEPTION) { CLEAR_PENDING_EXCEPTION; return;
>>>>>>>>>>>> } (void)(0
>>>>>>>>>>>> ******************
>>>>>>>>>>>>
>>>>>>>>>>>> I think that user wants why serviceability tools are failed.
>>>>>>>>>>>> So I defined "CHECK_AND_CLEAR" + java_lang_Throwable::print() as
>>>>>>>>>>>> "CATCH_AND_RETURN" .
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I agree rename this macro.
>>>>>>>>>>>> Do you have any idea? I don't have a good name :-)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>
>>>>>>>>>>>> Yasumasa
>>>>>>>>>>>>
>>>>>>>>>>>>> On 2013/09/20 20:10, Staffan Larsen wrote:
>>>>>>>>>>>>> Yasuma,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks for finding and fixing this! I have re-opened the bug.
>>>>>>>>>>>>> Your patch looks good to me, but perhaps CATCH_AND_RETURN
>>>>>>>>>>>>> should
>>>>>>>>>>>>> be renamed CHECK_AND_CLEAR?
>>>>>>>>>>>>>
>>>>>>>>>>>>> I can sponsor the fix.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>> /Staffan
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 20 sep 2013, at 12:41, Yasumasa
>>>>>>>>>>>>>> Suenaga wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I encountered this bug:
>>>>>>>>>>>>>> JDK-6989981: jstack causes "fatal error: ExceptionMark
>>>>>>>>>>>>>> destructor expects no pending exceptions"
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I read hs_err and attachListener.cpp, Java heap usage is very
>>>>>>>>>>>>>> high and
>>>>>>>>>>>>>> it could be OutOfMemoryError in AttachListener::init() .
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> If JavaCalls::call_special() in AttachListener::init() fail
>>>>>>>>>>>>>> which is
>>>>>>>>>>>>>> caused by OOME, d'tor of EXCEPTION_MARK (~ExceptionMark) will
>>>>>>>>>>>>>> generate
>>>>>>>>>>>>>> internal error.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> So I make a patch for avoiding crash and attached in this
>>>>>>>>>>>>>> email
>>>>>>>>>>>>>> (6989981.patch) .
>>>>>>>>>>>>>> I'd like to re-open this bug and contribute my patch.
>>>>>>>>>>>>>> Could you help me?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --- DETAILS ---
>>>>>>>>>>>>>> CHECK macro is used in JavaCalls::call_special() .
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ******************
>>>>>>>>>>>>>> void AttachListener::init() {
>>>>>>>>>>>>>> EXCEPTION_MARK;
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> :
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> // Initialize thread_oop to put it into the system threadGroup
>>>>>>>>>>>>>> Handle thread_group (THREAD, Universe::system_thread_group());
>>>>>>>>>>>>>> JavaValue result(T_VOID);
>>>>>>>>>>>>>> JavaCalls::call_special(&result, thread_oop,
>>>>>>>>>>>>>> klass,
>>>>>>>>>>>>>> vmSymbols::object_initializer_name(),
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> vmSymbols::threadgroup_string_void_signature(),
>>>>>>>>>>>>>> thread_group,
>>>>>>>>>>>>>> string,
>>>>>>>>>>>>>> CHECK);
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> KlassHandle group(THREAD,
>>>>>>>>>>>>>> SystemDictionary::ThreadGroup_klass());
>>>>>>>>>>>>>> JavaCalls::call_special(&result,
>>>>>>>>>>>>>> thread_group,
>>>>>>>>>>>>>> group,
>>>>>>>>>>>>>> vmSymbols::add_method_name(),
>>>>>>>>>>>>>> vmSymbols::thread_void_signature(),
>>>>>>>>>>>>>> thread_oop, // ARG 1
>>>>>>>>>>>>>> CHECK);
>>>>>>>>>>>>>> ******************
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> CHECK macro does not clear pending exception of current
>>>>>>>>>>>>>> thread.
>>>>>>>>>>>>>> So call_special() fails with runtime exception, d'tor of
>>>>>>>>>>>>>> ExceptionMark
>>>>>>>>>>>>>> generates fatal error.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ******************
>>>>>>>>>>>>>> ExceptionMark::~ExceptionMark() {
>>>>>>>>>>>>>> if (_thread->has_pending_exception()) {
>>>>>>>>>>>>>> Handle exception(_thread, _thread->pending_exception());
>>>>>>>>>>>>>> _thread->clear_pending_exception(); // Needed to avoid
>>>>>>>>>>>>>> infinite recursion
>>>>>>>>>>>>>> if (is_init_completed()) {
>>>>>>>>>>>>>> exception->print();
>>>>>>>>>>>>>> fatal("ExceptionMark destructor expects no pending
>>>>>>>>>>>>>> exceptions");
>>>>>>>>>>>>>> } else {
>>>>>>>>>>>>>> vm_exit_during_initialization(exception);
>>>>>>>>>>>>>> }
>>>>>>>>>>>>>> }
>>>>>>>>>>>>>> }
>>>>>>>>>>>>>> ******************
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --- HOW TO REPRODUCE ---
>>>>>>>>>>>>>> I also crate testcase of this issue (testcase.tar.gz) . This
>>>>>>>>>>>>>> testcase contains
>>>>>>>>>>>>>> two modules.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> - jvmti: JVMTI agent for this issue. This agent traps
>>>>>>>>>>>>>> SIGQUIT and
>>>>>>>>>>>>>> calls original (in HotSpot) SIGQUIT handler.
>>>>>>>>>>>>>> This signal handler is invoked, MethodEntry event
>>>>>>>>>>>>>> callback is
>>>>>>>>>>>>>> enabled. MethodEntry generates OutOfMemoryError.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> - java : Simple long sleep program.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I can run this testcase in Fedora18 x86_64. See below.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> -------
>>>>>>>>>>>>>> $ javac java/LongSleep.java
>>>>>>>>>>>>>> $ make -C jvmti
>>>>>>>>>>>>>> make: Entering directory
>>>>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>>>>> gcc -I/usr/lib/jvm/java-openjdk/include
>>>>>>>>>>>>>> -I/usr/lib/jvm/java-openjdk/include/linux -fPIC -c oome.c
>>>>>>>>>>>>>> gcc -shared -o liboome.so oome.o
>>>>>>>>>>>>>> make: Leaving directory
>>>>>>>>>>>>>> `/data/share/patch/ExceptionMark/testcase/jvmti'
>>>>>>>>>>>>>> $ export JAVA_HOME=
>>>>>>>>>>>>>> $ ./test.sh
>>>>>>>>>>>>>> -------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Yasumasa
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> <6989981.patch>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Dmitry Samersoff
>>>>> Oracle Java development team, Saint Petersburg, Russia
>>>>> * I would love to change the world, but they won't give me the
>>>>> source code.
>>>>
>>>
>>
>
From coleen.phillimore at oracle.com Fri Oct 4 18:11:05 2013
From: coleen.phillimore at oracle.com (coleen.phillimore at oracle.com)
Date: Sat, 05 Oct 2013 01:11:05 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131005011111.31C9562DA5@hg.openjdk.java.net>
Changeset: 3374b92de2d9
Author: coleenp
Date: 2013-10-03 18:50 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/3374b92de2d9
8025004: -XX:+CheckUnhandledOops asserts for JDK 8 Solaris fastdebug binaries
Summary: Remove unnecessary volatile keyword on stack locals within instanceKlass.cpp to work around Solaris Studio C++ compiler issue
Reviewed-by: coleenp, dcubed
Contributed-by: lois.foltan at oracle.com
! src/share/vm/oops/instanceKlass.cpp
! src/share/vm/oops/instanceKlass.hpp
Changeset: 3bf767171ea4
Author: coleenp
Date: 2013-10-05 00:53 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/3bf767171ea4
Merge
From coleen.phillimore at oracle.com Fri Oct 4 19:58:44 2013
From: coleen.phillimore at oracle.com (coleen.phillimore at oracle.com)
Date: Sat, 05 Oct 2013 02:58:44 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 3 new changesets
Message-ID: <20131005025851.6E9C262DAB@hg.openjdk.java.net>
Changeset: 675ffabf3798
Author: mikael
Date: 2013-10-02 09:18 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/675ffabf3798
8024087: Remove dead JVM_{Get,Set}PrimitiveFieldValues functions
Summary: The two functions were used to support JDK 1.3 but are no longer in use
Reviewed-by: coleenp, ctornqvi, twisti, dsamersoff
! src/share/vm/prims/jvm.cpp
! src/share/vm/prims/jvm_misc.hpp
! src/share/vm/prims/nativeLookup.cpp
Changeset: a1fd44b003c7
Author: coleenp
Date: 2013-10-05 00:58 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/a1fd44b003c7
Merge
Changeset: 4212bfb33d76
Author: coleenp
Date: 2013-10-05 03:14 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/4212bfb33d76
Merge
From staffan.larsen at oracle.com Sat Oct 5 00:15:29 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Sat, 05 Oct 2013 07:15:29 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131005071534.1381262DB4@hg.openjdk.java.net>
Changeset: febab3a8f203
Author: erikj
Date: 2013-10-04 12:45 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/febab3a8f203
8007446: Add /MP to cl.exe speeds up windows builds of OpenJDK.
Reviewed-by: sla, ctornqvi
! make/windows/makefiles/compile.make
! make/windows/makefiles/sa.make
Changeset: 763705f0fec3
Author: sla
Date: 2013-10-04 13:01 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/763705f0fec3
8016845: SA is unable to use hsdis on windows
Summary: Added sadis.c to the build to provide missing symbols in sawindbg.dll. Added code to use the correct hsdisXXX.dll filename on different windows platforms.
Reviewed-by: sla, mgerdin
Contributed-by: fredrik.arvidsson at oracle.com
! agent/src/share/classes/sun/jvm/hotspot/asm/Disassembler.java
! make/windows/makefiles/sa.make
From chris.hegarty at oracle.com Sat Oct 5 01:05:56 2013
From: chris.hegarty at oracle.com (chris.hegarty at oracle.com)
Date: Sat, 05 Oct 2013 08:05:56 +0000
Subject: hg: jdk8/tl/jdk: 8016271: wsimport -clientjar does not create
portable jars on Windows due to hardcoded backslash
Message-ID: <20131005080617.2118262DBA@hg.openjdk.java.net>
Changeset: 7d2112abbb1d
Author: coffeys
Date: 2013-10-04 16:27 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7d2112abbb1d
8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash
Reviewed-by: mkos, chegar
+ test/javax/xml/ws/clientjar/TestService.java
+ test/javax/xml/ws/clientjar/TestWsImport.java
From chris.hegarty at oracle.com Sat Oct 5 00:57:24 2013
From: chris.hegarty at oracle.com (chris.hegarty at oracle.com)
Date: Sat, 05 Oct 2013 07:57:24 +0000
Subject: hg: jdk8/tl/jaxws: 2 new changesets
Message-ID: <20131005075733.5131162DB7@hg.openjdk.java.net>
Changeset: b0610cd08440
Author: mkos
Date: 2013-10-04 16:21 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jaxws/rev/b0610cd08440
8025054: Update JAX-WS RI integration to 2.2.9-b130926.1035
Reviewed-by: chegar
! src/share/jaxws_classes/com/oracle/webservices/internal/api/databinding/ExternalMetadataFeature.java
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_de.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_es.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_fr.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_it.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_ja.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_ko.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_pt_BR.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_zh_CN.properties
! src/share/jaxws_classes/com/sun/tools/internal/jxc/MessageBundle_zh_TW.properties
! src/share/jaxws_classes/com/sun/tools/internal/ws/resources/WscompileMessages.java
! src/share/jaxws_classes/com/sun/tools/internal/ws/resources/wscompile.properties
! src/share/jaxws_classes/com/sun/tools/internal/ws/version.properties
! src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/Options.java
! src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsgenTool.java
! src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportOptions.java
! src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java
! src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/parser/DOMForest.java
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_de.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_es.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_fr.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_it.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_ja.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_ko.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_pt_BR.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_zh_CN.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/MessageBundle_zh_TW.properties
! src/share/jaxws_classes/com/sun/tools/internal/xjc/SchemaCache.java
! src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/internalizer/DOMForest.java
! src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/ct/AbstractExtendedComplexTypeBuilder.java
! src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/parser/SchemaConstraintChecker.java
! src/share/jaxws_classes/com/sun/xml/internal/bind/v2/Messages.java
! src/share/jaxws_classes/com/sun/xml/internal/bind/v2/Messages.properties
! src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/property/SingleMapNodeProperty.java
! src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/reflect/opt/AccessorInjector.java
! src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/reflect/opt/Injector.java
! src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/reflect/opt/OptimizedAccessorFactory.java
! src/share/jaxws_classes/com/sun/xml/internal/bind/v2/util/XmlFactory.java
! src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/staxex/Base64Data.java
! src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/staxex/Base64Encoder.java
! src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/staxex/Base64EncoderStream.java
! src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/staxex/ByteArrayOutputStreamEx.java
! src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/staxex/NamespaceContextEx.java
! src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/staxex/StreamingDataHandler.java
! src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/staxex/XMLStreamWriterEx.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/binary/SchemaBuilderImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/digested/DDataPattern.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/digested/DPattern.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/digested/DXMLPrinter.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/digested/DataPatternBuilderImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/digested/GrammarBuilderImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/nc/AnyNameClass.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/nc/NameClassBuilderImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/nc/SimpleNameClass.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/parse/compact/UCode_UCodeESC_CharStream.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/parse/xml/SchemaParser.java
! src/share/jaxws_classes/com/sun/xml/internal/rngom/xml/sax/JAXPXMLReaderCreator.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/addressing/WsaTubeHelper.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLBoundOperation.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLBoundPortType.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLExtensible.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLFault.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLModel.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLOperation.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLOutput.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLPort.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLPortType.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/WSDLService.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLBoundFault.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLBoundOperation.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLBoundPortType.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLFault.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLInput.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLMessage.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLModel.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLOperation.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLOutput.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLPart.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLPort.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLPortType.java
+ src/share/jaxws_classes/com/sun/xml/internal/ws/api/model/wsdl/editable/EditableWSDLService.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/wsdl/parser/WSDLParserExtension.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/api/wsdl/parser/WSDLParserExtensionContext.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/binding/WebServiceFeatureList.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/client/MonitorRootClient.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/client/PortInfo.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/client/Stub.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/client/WSServiceDelegate.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/ExternalMetadataReader.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/JavaMethodImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/AbstractExtensibleImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLBoundFaultImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLBoundOperationImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLBoundPortTypeImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLFaultImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLInputImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLMessageImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLModelImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLOperationImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLOutputImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLPartImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLPortImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLPortTypeImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLProperties.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/model/wsdl/WSDLServiceImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/policy/jaxws/PolicyWSDLParserExtension.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/resources/WsservletMessages.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/resources/wsservlet.properties
! src/share/jaxws_classes/com/sun/xml/internal/ws/server/EndpointFactory.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/server/WSEndpointImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/spi/ProviderImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/transport/http/HttpAdapter.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/transport/http/client/HttpTransportPipe.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/util/version.properties
! src/share/jaxws_classes/com/sun/xml/internal/ws/util/xml/XmlUtil.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/ActionBasedOperationFinder.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/PayloadQNameBasedOperationFinder.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/DelegatingParserExtension.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/FoolProofParserExtension.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/MemberSubmissionAddressingWSDLParserExtension.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/RuntimeWSDLParser.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/W3CAddressingMetadataWSDLParserExtension.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/W3CAddressingWSDLParserExtension.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/WSDLParserExtensionContextImpl.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/parser/WSDLParserExtensionFacade.java
! src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/WSDLGenerator.java
! src/share/jaxws_classes/javax/annotation/PostConstruct.java
! src/share/jaxws_classes/javax/annotation/PreDestroy.java
! src/share/jaxws_classes/javax/xml/bind/JAXBException.java
! src/share/jaxws_classes/javax/xml/bind/Marshaller.java
! src/share/jaxws_classes/javax/xml/bind/TypeConstraintException.java
! src/share/jaxws_classes/javax/xml/bind/annotation/adapters/package.html
! src/share/jaxws_classes/javax/xml/soap/MessageFactory.java
Changeset: e56be3a2287a
Author: coffeys
Date: 2013-10-05 08:56 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jaxws/rev/e56be3a2287a
8016271: wsimport -clientjar does not create portable jars on Windows due to hardcoded backslash
Reviewed-by: mkos, chegar
! src/share/jaxws_classes/com/sun/tools/internal/ws/wscompile/WsimportTool.java
From john.r.rose at oracle.com Sat Oct 5 05:31:44 2013
From: john.r.rose at oracle.com (john.r.rose at oracle.com)
Date: Sat, 05 Oct 2013 12:31:44 +0000
Subject: hg: jdk8/tl/jdk: 9 new changesets
Message-ID: <20131005123417.A921962DBB@hg.openjdk.java.net>
Changeset: 44da760eed4b
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/44da760eed4b
8024761: JSR 292 improve performance of generic invocation
Summary: use a per-MH one element cache for MH.asType to speed up MH.invoke; also cache enough MH constants to cache LMF.metafactory
Reviewed-by: twisti
! src/share/classes/java/lang/invoke/BoundMethodHandle.java
! src/share/classes/java/lang/invoke/CallSite.java
- src/share/classes/java/lang/invoke/InvokeGeneric.java
! src/share/classes/java/lang/invoke/Invokers.java
! src/share/classes/java/lang/invoke/LambdaForm.java
! src/share/classes/java/lang/invoke/MemberName.java
! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleImpl.java
! src/share/classes/java/lang/invoke/MethodHandleNatives.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! src/share/classes/java/lang/invoke/MethodTypeForm.java
Changeset: 97d5cc1e7586
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/97d5cc1e7586
8001105: findVirtual of Object[].clone produces internal error
Summary: Replicate JVM logic for access control that makes Object.clone appear public when applied to an array type.
Reviewed-by: twisti
! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/MethodHandlesTest.java
Changeset: 91535ade7349
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/91535ade7349
8019417: JSR 292 javadoc should clarify method handle arity limits
Summary: clarification of erroneous reading of spec. that led to 7194534
Reviewed-by: twisti, darcy
! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/BigArityTest.java
Changeset: d391e062b983
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d391e062b983
8001109: arity mismatch on a call to spreader method handle should elicit IllegalArgumentException
Summary: Document error conditions that may occur when calling a "spreader" method handle. Use IAE in all cases.
Reviewed-by: twisti, vlivanov
! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleImpl.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/JavaDocExamplesTest.java
Changeset: acdf5bf1a918
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/acdf5bf1a918
8001108: an attempt to use "" as a method name should elicit NoSuchMethodException
Summary: add an explicit check for leading "<", upgrade the unit tests
Reviewed-by: twisti, darcy
! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/JavaDocExamplesTest.java
! test/java/lang/invoke/MethodHandlesTest.java
Changeset: df6236da299d
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/df6236da299d
8024599: JSR 292 direct method handles need to respect initialization rules for static members
Summary: Align MH semantic with bytecode behavior of constructor and static member accesses, regarding invocation.
Reviewed-by: twisti, darcy, abuckley, vlivanov
! src/share/classes/java/lang/invoke/MethodHandles.java
+ test/java/lang/invoke/CallStaticInitOrder.java
Changeset: eb3cfc69c16e
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/eb3cfc69c16e
8001110: method handles should have a collectArguments transform, generalizing asCollector
Summary: promote an existing private method; make unit tests on all argument positions to arity 10 with mixed types
Reviewed-by: twisti, vlivanov
! src/share/classes/java/lang/invoke/MethodHandles.java
! src/share/classes/sun/invoke/util/ValueConversions.java
! test/java/lang/invoke/JavaDocExamplesTest.java
! test/java/lang/invoke/MethodHandlesTest.java
Changeset: b670477bff8f
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b670477bff8f
8025112: JSR 292 spec updates for security manager and caller sensitivity
Summary: align CONSTANT_MethodHandle and Lookup.find* API calls, clarify security manager & @CallerSensitive interactions
Reviewed-by: mchung, twisti
! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleImpl.java
! src/share/classes/java/lang/invoke/MethodHandleInfo.java
! src/share/classes/java/lang/invoke/MethodHandleProxies.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/TestPrivateMember.java
Changeset: 6623c675e734
Author: jrose
Date: 2013-10-05 05:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6623c675e734
8024438: JSR 292 API specification maintenance for JDK 8
Summary: add wildcard to unreflectConstructor, various clarifications and minor edits
Reviewed-by: mchung, darcy, twisti
! src/share/classes/java/lang/invoke/BoundMethodHandle.java
! src/share/classes/java/lang/invoke/CallSite.java
! src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java
! src/share/classes/java/lang/invoke/LambdaForm.java
! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleInfo.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! src/share/classes/java/lang/invoke/MethodType.java
! src/share/classes/java/lang/invoke/MutableCallSite.java
! src/share/classes/java/lang/invoke/SwitchPoint.java
! src/share/classes/sun/invoke/WrapperInstance.java
! src/share/classes/sun/invoke/util/VerifyAccess.java
! src/share/classes/sun/invoke/util/VerifyType.java
! test/java/lang/invoke/AccessControlTest.java
! test/java/lang/invoke/MethodHandlesTest.java
! test/java/lang/invoke/RevealDirectTest.java
From ivan.gerasimov at oracle.com Sat Oct 5 06:04:13 2013
From: ivan.gerasimov at oracle.com (Ivan Gerasimov)
Date: Sat, 05 Oct 2013 17:04:13 +0400
Subject: RFR [8025886] typo in shell regtest == instead of =
In-Reply-To: <524EA7D1.7030908@oracle.com>
References: <524D7AF6.2000705@oracle.com> <524EA7D1.7030908@oracle.com>
Message-ID: <52500E4D.6020307@oracle.com>
Dmitry, thanks for suggestion!
Yes, == comparison isn't the only sh-incompatible thing in the script.
Sh may be unhappy with [[ as well.
So I replaced it with case as you suggested.
Grep shows that it was the only place where [[ and == were used in
regtests, so it would be good to make things consistent.
Please find a new patch below.
Sincerely yours,
Ivan
--- a/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
+++ b/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
@@ -34,12 +34,13 @@
OS=`uname -s`
UMASK=`umask`
-if [[ $OS == CYGWIN_NT* ]] ; then
+case $OS in
+CYGWIN_NT*)
OS="Windows_NT"
if [ -z "$SystemRoot" ] ; then
- SystemRoot=$SYSTEMROOT
+ SystemRoot=$SYSTEMROOT
fi
-fi
+esac
case $OS in
SunOS | Linux | Darwin)
On 04.10.2013 15:34, Dmitry Samersoff wrote:
> Ivan,
>
> If you need shell pattern match CYGWIN_NT*
> it's better to use
>
> case
>
> but not
>
> if
>
> -Dmitry
>
>
From staffan.larsen at oracle.com Sat Oct 5 07:54:24 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Sat, 05 Oct 2013 14:54:24 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8025922: JNI access to Strings need to
check if the value field is non-null
Message-ID: <20131005145429.555BC62DBC@hg.openjdk.java.net>
Changeset: f9be370a7d54
Author: sla
Date: 2013-10-05 15:18 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/f9be370a7d54
8025922: JNI access to Strings need to check if the value field is non-null
Reviewed-by: dholmes, dcubed
! src/share/vm/prims/jni.cpp
! src/share/vm/prims/jniCheck.cpp
From calvin.cheung at oracle.com Fri Oct 4 22:30:36 2013
From: calvin.cheung at oracle.com (calvin.cheung at oracle.com)
Date: Sat, 05 Oct 2013 05:30:36 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 32 new changesets
Message-ID: <20131005053141.82C1A62DB1@hg.openjdk.java.net>
Changeset: 72b7e96c1922
Author: twisti
Date: 2013-09-26 12:07 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/72b7e96c1922
8024545: make develop and notproduct flag values available in product builds
Reviewed-by: dholmes, kvn
! agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java
! src/share/vm/prims/jvm.cpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/arguments.hpp
! src/share/vm/runtime/globals.cpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/runtime/globals_extension.hpp
! src/share/vm/runtime/vmStructs.cpp
! src/share/vm/services/attachListener.cpp
! src/share/vm/services/classLoadingService.cpp
! src/share/vm/services/dtraceAttacher.cpp
! src/share/vm/services/management.cpp
! src/share/vm/services/memoryService.cpp
Changeset: c9ccd7b85f20
Author: rbackman
Date: 2013-09-27 08:39 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/c9ccd7b85f20
8024924: Intrinsify java.lang.Math.addExact
Reviewed-by: kvn, twisti
! src/cpu/sparc/vm/sparc.ad
! src/cpu/x86/vm/x86_32.ad
! src/cpu/x86/vm/x86_64.ad
! src/share/vm/adlc/adlparse.cpp
! src/share/vm/adlc/archDesc.cpp
! src/share/vm/adlc/formssel.cpp
! src/share/vm/adlc/formssel.hpp
! src/share/vm/adlc/output_h.cpp
! src/share/vm/classfile/vmSymbols.hpp
! src/share/vm/opto/c2_globals.hpp
! src/share/vm/opto/classes.cpp
! src/share/vm/opto/classes.hpp
! src/share/vm/opto/ifnode.cpp
! src/share/vm/opto/lcm.cpp
! src/share/vm/opto/library_call.cpp
! src/share/vm/opto/loopTransform.cpp
! src/share/vm/opto/loopopts.cpp
! src/share/vm/opto/matcher.cpp
! src/share/vm/opto/matcher.hpp
+ src/share/vm/opto/mathexactnode.cpp
+ src/share/vm/opto/mathexactnode.hpp
! src/share/vm/opto/multnode.cpp
! src/share/vm/opto/node.hpp
! src/share/vm/opto/subnode.cpp
! src/share/vm/opto/subnode.hpp
! src/share/vm/opto/type.cpp
! src/share/vm/opto/type.hpp
! src/share/vm/runtime/vmStructs.cpp
+ test/compiler/intrinsics/mathexact/CondTest.java
+ test/compiler/intrinsics/mathexact/ConstantTest.java
+ test/compiler/intrinsics/mathexact/LoadTest.java
+ test/compiler/intrinsics/mathexact/LoopDependentTest.java
+ test/compiler/intrinsics/mathexact/NonConstantTest.java
+ test/compiler/intrinsics/mathexact/Verify.java
Changeset: 510fbd28919c
Author: anoll
Date: 2013-09-27 10:50 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/510fbd28919c
8020151: PSR:PERF Large performance regressions when code cache is filled
Summary: Code cache sweeping based on method hotness; removed speculatively disconnect
Reviewed-by: kvn, iveresov
! src/share/vm/code/codeCache.cpp
! src/share/vm/code/codeCache.hpp
! src/share/vm/code/nmethod.cpp
! src/share/vm/code/nmethod.hpp
! src/share/vm/compiler/compileBroker.cpp
! src/share/vm/oops/method.cpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/runtime/safepoint.cpp
! src/share/vm/runtime/sweeper.cpp
! src/share/vm/runtime/sweeper.hpp
! src/share/vm/runtime/vmStructs.cpp
! src/share/vm/runtime/vm_operations.cpp
! src/share/vm/runtime/vm_operations.hpp
! src/share/vm/trace/trace.xml
Changeset: a07c25e4f67e
Author: adlertz
Date: 2013-09-27 12:43 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/a07c25e4f67e
Merge
! src/share/vm/prims/jvm.cpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/services/attachListener.cpp
Changeset: 1c3486050433
Author: adlertz
Date: 2013-09-27 15:43 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/1c3486050433
Merge
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
Changeset: e8e077292da3
Author: iignatyev
Date: 2013-09-28 12:32 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/e8e077292da3
8024678: Java source files in hotspot/test/testlibrary should not use @author tag in JavaDoc
Reviewed-by: twisti
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/ClassPathDirEntry.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/ClassPathJarEntry.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/ClassPathJarInDirEntry.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/ClassesListInFile.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/CompileTheWorld.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/Compiler.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/PathHandler.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/Utils.java
Changeset: 303826f477c6
Author: iignatyev
Date: 2013-09-28 12:32 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/303826f477c6
8023452: TestCase$Helper(java.lang.Object) must be osr_compiled
Reviewed-by: kvn
! test/compiler/whitebox/CompilerWhiteBoxTest.java
! test/compiler/whitebox/DeoptimizeAllTest.java
! test/compiler/whitebox/DeoptimizeMethodTest.java
! test/compiler/whitebox/EnqueueMethodForCompilationTest.java
! test/compiler/whitebox/IsMethodCompilableTest.java
! test/compiler/whitebox/MakeMethodNotCompilableTest.java
Changeset: f2512d89ad0c
Author: twisti
Date: 2013-09-28 12:42 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/f2512d89ad0c
8025613: clang: remove -Wno-unused-value
Reviewed-by: iveresov
! agent/src/os/linux/LinuxDebuggerLocal.c
! agent/src/os/linux/ps_proc.c
! agent/src/os/linux/salibelf.c
! agent/src/os/linux/symtab.c
! make/bsd/makefiles/gcc.make
! make/linux/makefiles/gcc.make
! src/cpu/x86/vm/assembler_x86.cpp
! src/share/vm/classfile/defaultMethods.cpp
Changeset: 29bdcf12457c
Author: shade
Date: 2013-09-27 11:52 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/29bdcf12457c
8014447: Object.hashCode intrinsic breaks inline caches
Summary: Try to inline as normal method first, then fall back to intrinsic.
Reviewed-by: kvn, twisti
! src/share/vm/opto/callGenerator.hpp
! src/share/vm/opto/doCall.cpp
! src/share/vm/opto/library_call.cpp
Changeset: d8d059e90ec1
Author: twisti
Date: 2013-09-30 15:42 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/d8d059e90ec1
8025599: Missing store barrier with OptimizeStringConcat
Reviewed-by: kvn, twisti
Contributed-by: Axel Siebenborn
! src/share/vm/opto/graphKit.cpp
Changeset: dc261f466b6d
Author: drchase
Date: 2013-09-27 13:36 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/dc261f466b6d
8025260: Methodhandles/JSR292: NullPointerException (NPE) thrown instead of AbstractMethodError (AME)
Summary: Copied null-checks from templateInterpreter_CPU into methodHandles_CPU
Reviewed-by: jrose, twisti
! src/cpu/sparc/vm/methodHandles_sparc.cpp
! src/cpu/x86/vm/methodHandles_x86.cpp
+ test/compiler/jsr292/methodHandleExceptions/ByteClassLoader.java
+ test/compiler/jsr292/methodHandleExceptions/C.java
+ test/compiler/jsr292/methodHandleExceptions/I.java
+ test/compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java
Changeset: cacc4c6bfc80
Author: vlivanov
Date: 2013-10-02 06:17 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/cacc4c6bfc80
8025233: Move sun.invoke.Stable into java.lang.invoke package
Reviewed-by: twisti, iveresov
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/vmSymbols.hpp
Changeset: 268e7a2178d7
Author: iveresov
Date: 2013-10-03 16:38 +0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/268e7a2178d7
Merge
! src/cpu/x86/vm/methodHandles_x86.cpp
! src/cpu/x86/vm/x86_32.ad
! src/cpu/x86/vm/x86_64.ad
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/defaultMethods.cpp
! src/share/vm/code/nmethod.cpp
! src/share/vm/runtime/safepoint.cpp
! src/share/vm/services/classLoadingService.cpp
Changeset: d68894a09c7c
Author: jiangli
Date: 2013-09-27 13:49 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/d68894a09c7c
8024990: JT_JDK: 11 failures with SIGSEGV on arm-sflt platforms in nightly fastdebug build.
Summary: Enable patching for load_appendix_id.
Reviewed-by: kvn, dlong, bdelsart
! src/share/vm/c1/c1_Runtime1.cpp
Changeset: 5186dcaca431
Author: jiangli
Date: 2013-09-27 13:53 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/5186dcaca431
Merge
! src/share/vm/c1/c1_Runtime1.cpp
- test/gc/metaspace/ClassMetaspaceSizeInJmapHeap.java
- test/runtime/6878713/Test6878713.sh
- test/runtime/6878713/testcase.jar
- test/runtime/7020373/Test7020373.sh
- test/runtime/7020373/testcase.jar
Changeset: d0cfa6502dfe
Author: jprovino
Date: 2013-10-03 10:25 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/d0cfa6502dfe
Merge
! src/share/vm/c1/c1_Runtime1.cpp
Changeset: 100614790c1e
Author: vladidan
Date: 2013-10-03 10:35 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/100614790c1e
Merge
Changeset: c319b188c7b2
Author: tschatzl
Date: 2013-09-26 12:49 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/c319b188c7b2
8014078: G1: improve remembered set summary information by providing per region type information
Summary: Add memory consumption breakdown on a per region type in the G1 remembered set summary statistics. This simplifies remembered set memory consumption analysis.
Reviewed-by: brutisso
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1RemSet.cpp
! src/share/vm/gc_implementation/g1/g1RemSet.hpp
! src/share/vm/gc_implementation/g1/g1RemSetSummary.cpp
! test/gc/g1/TestSummarizeRSetStats.java
+ test/gc/g1/TestSummarizeRSetStatsPerRegion.java
+ test/gc/g1/TestSummarizeRSetStatsTools.java
Changeset: bc918fd1e584
Author: mgerdin
Date: 2013-09-27 10:23 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/bc918fd1e584
8025279: metaspace/flags/maxMetaspaceSize throws OOM: out of Compressed Klass space
Summary: Only put "Compressed class space" as OOM cause if actually using Compressed class space
Reviewed-by: jwilhelm, stefank, ehelin, coleenp
! src/share/vm/memory/metaspace.cpp
! src/share/vm/memory/metaspace.hpp
Changeset: 4fa18058548e
Author: tschatzl
Date: 2013-09-27 11:18 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/4fa18058548e
Merge
Changeset: ccef6e165e8b
Author: tschatzl
Date: 2013-09-27 13:41 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/ccef6e165e8b
Merge
Changeset: d55c004e1d4d
Author: mgerdin
Date: 2013-09-24 14:46 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/d55c004e1d4d
8025305: Cleanup CardTableModRefBS usage in G1
Summary: Move some G1 specific code from CardTableModRefBS to G1SATBCardTableModRefBS.
Reviewed-by: brutisso, tschatzl, ehelin
! src/share/vm/gc_implementation/g1/concurrentMark.inline.hpp
! src/share/vm/gc_implementation/g1/g1CardCounts.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp
! src/share/vm/gc_implementation/g1/g1EvacFailure.hpp
! src/share/vm/gc_implementation/g1/g1MarkSweep.cpp
! src/share/vm/gc_implementation/g1/g1RemSet.cpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.cpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.hpp
! src/share/vm/memory/cardTableModRefBS.cpp
! src/share/vm/memory/cardTableModRefBS.hpp
Changeset: 7ec10139bf37
Author: tschatzl
Date: 2013-09-30 12:43 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/7ec10139bf37
8025441: G1: assert "assert(thread < _num_vtimes) failed: just checking" fails when G1ConcRefinementThreads > ParallelGCThreads
Summary: The initialization for the remembered set summary data structures used the wrong thread count, i.e. number of worker threads instead of number of refinement threads.
Reviewed-by: brutisso
! src/share/vm/gc_implementation/g1/g1RemSet.cpp
! src/share/vm/gc_implementation/g1/g1RemSetSummary.cpp
! src/share/vm/gc_implementation/g1/g1RemSetSummary.hpp
+ test/gc/g1/TestSummarizeRSetStatsThreads.java
Changeset: 9de9169ddde6
Author: brutisso
Date: 2013-10-01 07:52 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9de9169ddde6
8025605: G1: Heap expansion logging misleading for fully expanded heap
Reviewed-by: tschatzl, jwilhelm, jmasa
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
Changeset: 9ecd6d3782b1
Author: ehelin
Date: 2013-10-01 15:21 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9ecd6d3782b1
8025313: MetaspaceMemoryPool incorrectly reports undefined size for max
Reviewed-by: stefank, tschatzl
! src/share/vm/memory/collectorPolicy.cpp
Changeset: 77a774ab3cf0
Author: mgerdin
Date: 2013-10-02 14:33 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/77a774ab3cf0
8012525: gc/metaspace/G1AddMetaspaceDependency.java Test fails a safepoint timeout assertion or hangs.
Reviewed-by: brutisso, tschatzl
! test/gc/metaspace/G1AddMetaspaceDependency.java
Changeset: 6e22e7042433
Author: ehelin
Date: 2013-09-30 11:39 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/6e22e7042433
8025226: TestPerfCountersAndMemoryPools.java fails with -Xmixed or -Xcomp
Reviewed-by: brutisso, mgerdin
! test/gc/metaspace/TestPerfCountersAndMemoryPools.java
Changeset: 379ef2cc19c0
Author: ehelin
Date: 2013-10-02 18:24 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/379ef2cc19c0
Merge
Changeset: ab68fc0101ce
Author: jwilhelm
Date: 2013-10-03 13:19 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/ab68fc0101ce
8025855: Simplify GenRemSet code slightly
Summary: Remove a few redundant switch-statements
Reviewed-by: jcoomes, tschatzl
! src/share/vm/memory/collectorPolicy.cpp
! src/share/vm/memory/genRemSet.cpp
Changeset: c49c7f835e8d
Author: jwilhelm
Date: 2013-10-03 17:16 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/c49c7f835e8d
8025853: Remove unnecessary uses of GenerationSizer
Summary: Removed stray includes and some minor cleanup of GenerationSizer
Reviewed-by: tschatzl, jcoomes
! src/share/vm/gc_implementation/parallelScavenge/generationSizer.hpp
! src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.cpp
! src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
! src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
! src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
Changeset: 798522662fcd
Author: jcoomes
Date: 2013-10-04 13:37 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/798522662fcd
Merge
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.cpp
Changeset: 2720ab7a0d70
Author: ccheung
Date: 2013-10-04 21:00 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/2720ab7a0d70
Merge
! src/share/vm/prims/jvm.cpp
From staffan.larsen at oracle.com Sat Oct 5 09:51:00 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Sat, 05 Oct 2013 16:51:00 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131005165108.D781C62DC2@hg.openjdk.java.net>
Changeset: 8ef918538e22
Author: sla
Date: 2013-10-04 13:44 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/8ef918538e22
6313383: SA: Update jmap to support HPROF binary format "JAVA PROFILE 1.0.2"
Summary: Adds support for large(>4G) heap dumps in hprof format. Adds tests and updates testlibrary.
Reviewed-by: sla, allwin
Contributed-by: fredrik.arvidsson at oracle.com
! agent/src/share/classes/sun/jvm/hotspot/utilities/AbstractHeapGraphWriter.java
! agent/src/share/classes/sun/jvm/hotspot/utilities/HeapHprofBinWriter.java
! test/TEST.groups
+ test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapProc.java
+ test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java
! test/testlibrary/com/oracle/java/testlibrary/JDKToolLauncher.java
Changeset: 9c63ad02c0a4
Author: sla
Date: 2013-10-05 10:56 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9c63ad02c0a4
Merge
From dmitry.samersoff at oracle.com Sat Oct 5 10:30:28 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Sat, 05 Oct 2013 21:30:28 +0400
Subject: RFR [8025886] typo in shell regtest == instead of =
In-Reply-To: <52500E4D.6020307@oracle.com>
References: <524D7AF6.2000705@oracle.com> <524EA7D1.7030908@oracle.com>
<52500E4D.6020307@oracle.com>
Message-ID: <52504CB4.9090103@oracle.com>
Ivan,
Looks good for me.
-Dmitry
On 2013-10-05 17:04, Ivan Gerasimov wrote:
> Dmitry, thanks for suggestion!
>
> Yes, == comparison isn't the only sh-incompatible thing in the script.
> Sh may be unhappy with [[ as well.
> So I replaced it with case as you suggested.
> Grep shows that it was the only place where [[ and == were used in
> regtests, so it would be good to make things consistent.
>
> Please find a new patch below.
>
> Sincerely yours,
> Ivan
>
> --- a/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
> +++ b/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
> @@ -34,12 +34,13 @@
> OS=`uname -s`
> UMASK=`umask`
>
> -if [[ $OS == CYGWIN_NT* ]] ; then
> +case $OS in
> +CYGWIN_NT*)
> OS="Windows_NT"
> if [ -z "$SystemRoot" ] ; then
> - SystemRoot=$SYSTEMROOT
> + SystemRoot=$SYSTEMROOT
> fi
> -fi
> +esac
>
> case $OS in
> SunOS | Linux | Darwin)
>
>
>
> On 04.10.2013 15:34, Dmitry Samersoff wrote:
>> Ivan,
>>
>> If you need shell pattern match CYGWIN_NT*
>> it's better to use
>>
>> case
>>
>> but not
>>
>> if
>>
>> -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.
From christian.tornqvist at oracle.com Sun Oct 6 08:49:44 2013
From: christian.tornqvist at oracle.com (christian.tornqvist at oracle.com)
Date: Sun, 06 Oct 2013 15:49:44 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8023796: [TESTBUG] Add
-XX:-TransmitErrorReport to runtime/6888954/vmerrors.sh
Message-ID: <20131006154949.B99FD62DCE@hg.openjdk.java.net>
Changeset: cc4f5f8d885e
Author: mseledtsov
Date: 2013-10-06 16:13 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/cc4f5f8d885e
8023796: [TESTBUG] Add -XX:-TransmitErrorReport to runtime/6888954/vmerrors.sh
Summary: added -XX:-TransmitErrorReport to the test
Reviewed-by: stefank, ctornqvi
! test/runtime/6888954/vmerrors.sh
! test/runtime/memory/ReserveMemory.java
From Alan.Bateman at oracle.com Sun Oct 6 13:03:34 2013
From: Alan.Bateman at oracle.com (Alan Bateman)
Date: Sun, 06 Oct 2013 21:03:34 +0100
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
Message-ID: <5251C216.105@oracle.com>
As a follow-up to Joe Darcy's rename of jdk.Supported to jdk.Exported,
I'd like to have another attempt at adding the annotation to a number of
JDK specific APIs that are long standing exported, documented and
supported APIs. Specifically, the following APIs:
- Java Debug Interface (com.sun.jdi)
- Attach API (com.sun.tools.attach)
- SCTP API (com.sun.nio.sctp)
- HTTP server API (com.sun.net.httpserver)
- Management extensions (com.sun.management)
- JConsole Plugin API (com.sun.tools.jconsole)
- JDK-specific API to JAAS (com.sun.security.auth)
- JDK-specific JGSS API (com.sun.security.jgss)
(The javadoc for each of these APIs is currently generated in the build)
The webrev with the proposed update is here:
http://cr.openjdk.java.net/~alanb/8008662/webrev.02/
As per the original webrev, I've added package-info.java to a number of
packages that didn't have any description. In a few cases, I've had to
rename the legacy package.html to package-info.java.
For the review then the intention is that @jdk.Exported be added to the
package-info and all public/protected types in these APIs. The only
exceptions are two cases where I've added @jdk.Exported(false),
specifically:
- com.sun.management.OSMBeanFactory as it clearly documents to stay away
- com.sun.security.auth.callback.DialogCallbackHandler as it for the
chop (see JEP 162)
Thanks,
Alan.
From chris.hegarty at oracle.com Mon Oct 7 01:23:08 2013
From: chris.hegarty at oracle.com (Chris Hegarty)
Date: Mon, 07 Oct 2013 09:23:08 +0100
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5251C216.105@oracle.com>
References: <5251C216.105@oracle.com>
Message-ID: <52526F6C.8020202@oracle.com>
Alan,
I checked the httpsever and sctp changes. All look good to me.
-Chris.
On 10/06/2013 09:03 PM, Alan Bateman wrote:
>
> As a follow-up to Joe Darcy's rename of jdk.Supported to jdk.Exported,
> I'd like to have another attempt at adding the annotation to a number of
> JDK specific APIs that are long standing exported, documented and
> supported APIs. Specifically, the following APIs:
>
> - Java Debug Interface (com.sun.jdi)
> - Attach API (com.sun.tools.attach)
> - SCTP API (com.sun.nio.sctp)
> - HTTP server API (com.sun.net.httpserver)
> - Management extensions (com.sun.management)
> - JConsole Plugin API (com.sun.tools.jconsole)
> - JDK-specific API to JAAS (com.sun.security.auth)
> - JDK-specific JGSS API (com.sun.security.jgss)
>
> (The javadoc for each of these APIs is currently generated in the build)
>
> The webrev with the proposed update is here:
> http://cr.openjdk.java.net/~alanb/8008662/webrev.02/
>
> As per the original webrev, I've added package-info.java to a number of
> packages that didn't have any description. In a few cases, I've had to
> rename the legacy package.html to package-info.java.
>
> For the review then the intention is that @jdk.Exported be added to the
> package-info and all public/protected types in these APIs. The only
> exceptions are two cases where I've added @jdk.Exported(false),
> specifically:
>
> - com.sun.management.OSMBeanFactory as it clearly documents to stay away
> - com.sun.security.auth.callback.DialogCallbackHandler as it for the
> chop (see JEP 162)
>
> Thanks,
>
> Alan.
From vincent.x.ryan at oracle.com Mon Oct 7 01:33:06 2013
From: vincent.x.ryan at oracle.com (Vincent Ryan)
Date: Mon, 7 Oct 2013 09:33:06 +0100
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <52526F6C.8020202@oracle.com>
References: <5251C216.105@oracle.com> <52526F6C.8020202@oracle.com>
Message-ID:
The JAAS and JGSS changes look fine too.
On 7 Oct 2013, at 09:23, Chris Hegarty wrote:
> Alan,
>
> I checked the httpsever and sctp changes. All look good to me.
>
> -Chris.
>
> On 10/06/2013 09:03 PM, Alan Bateman wrote:
>>
>> As a follow-up to Joe Darcy's rename of jdk.Supported to jdk.Exported,
>> I'd like to have another attempt at adding the annotation to a number of
>> JDK specific APIs that are long standing exported, documented and
>> supported APIs. Specifically, the following APIs:
>>
>> - Java Debug Interface (com.sun.jdi)
>> - Attach API (com.sun.tools.attach)
>> - SCTP API (com.sun.nio.sctp)
>> - HTTP server API (com.sun.net.httpserver)
>> - Management extensions (com.sun.management)
>> - JConsole Plugin API (com.sun.tools.jconsole)
>> - JDK-specific API to JAAS (com.sun.security.auth)
>> - JDK-specific JGSS API (com.sun.security.jgss)
>>
>> (The javadoc for each of these APIs is currently generated in the build)
>>
>> The webrev with the proposed update is here:
>> http://cr.openjdk.java.net/~alanb/8008662/webrev.02/
>>
>> As per the original webrev, I've added package-info.java to a number of
>> packages that didn't have any description. In a few cases, I've had to
>> rename the legacy package.html to package-info.java.
>>
>> For the review then the intention is that @jdk.Exported be added to the
>> package-info and all public/protected types in these APIs. The only
>> exceptions are two cases where I've added @jdk.Exported(false),
>> specifically:
>>
>> - com.sun.management.OSMBeanFactory as it clearly documents to stay away
>> - com.sun.security.auth.callback.DialogCallbackHandler as it for the
>> chop (see JEP 162)
>>
>> Thanks,
>>
>> Alan.
From daniel.fuchs at oracle.com Mon Oct 7 02:44:04 2013
From: daniel.fuchs at oracle.com (Daniel Fuchs)
Date: Mon, 07 Oct 2013 11:44:04 +0200
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5251C216.105@oracle.com>
References: <5251C216.105@oracle.com>
Message-ID: <52528264.4040205@oracle.com>
Hi Alan,
The com.sun.management changes look good.
-- daniel
On 10/6/13 10:03 PM, Alan Bateman wrote:
>
> As a follow-up to Joe Darcy's rename of jdk.Supported to jdk.Exported,
> I'd like to have another attempt at adding the annotation to a number of
> JDK specific APIs that are long standing exported, documented and
> supported APIs. Specifically, the following APIs:
>
> - Java Debug Interface (com.sun.jdi)
> - Attach API (com.sun.tools.attach)
> - SCTP API (com.sun.nio.sctp)
> - HTTP server API (com.sun.net.httpserver)
> - Management extensions (com.sun.management)
> - JConsole Plugin API (com.sun.tools.jconsole)
> - JDK-specific API to JAAS (com.sun.security.auth)
> - JDK-specific JGSS API (com.sun.security.jgss)
>
> (The javadoc for each of these APIs is currently generated in the build)
>
> The webrev with the proposed update is here:
> http://cr.openjdk.java.net/~alanb/8008662/webrev.02/
>
> As per the original webrev, I've added package-info.java to a number of
> packages that didn't have any description. In a few cases, I've had to
> rename the legacy package.html to package-info.java.
>
> For the review then the intention is that @jdk.Exported be added to the
> package-info and all public/protected types in these APIs. The only
> exceptions are two cases where I've added @jdk.Exported(false),
> specifically:
>
> - com.sun.management.OSMBeanFactory as it clearly documents to stay away
> - com.sun.security.auth.callback.DialogCallbackHandler as it for the
> chop (see JEP 162)
>
> Thanks,
>
> Alan.
From mandy.chung at oracle.com Mon Oct 7 03:31:08 2013
From: mandy.chung at oracle.com (Mandy Chung)
Date: Mon, 07 Oct 2013 03:31:08 -0700
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5251C216.105@oracle.com>
References: <5251C216.105@oracle.com>
Message-ID: <52528D6C.5000705@oracle.com>
On 10/6/2013 1:03 PM, Alan Bateman wrote:
>
> The webrev with the proposed update is here:
> http://cr.openjdk.java.net/~alanb/8008662/webrev.02/
>
I went through the entire webrev and the change looks good.
>
> For the review then the intention is that @jdk.Exported be added to
> the package-info and all public/protected types in these APIs. The
> only exceptions are two cases where I've added @jdk.Exported(false),
> specifically:
>
> - com.sun.management.OSMBeanFactory as it clearly documents to stay away
It's a bug. We should fix it and remove this public class (I have filed
JDK-8025985 for it).
> - com.sun.security.auth.callback.DialogCallbackHandler as it for the
> chop (see JEP 162)
Good and this will be gone in jdk9.
Mandy
From alan.bateman at oracle.com Mon Oct 7 03:51:55 2013
From: alan.bateman at oracle.com (alan.bateman at oracle.com)
Date: Mon, 07 Oct 2013 10:51:55 +0000
Subject: hg: jdk8/tl/jdk: 8025983: Typo in Javadoc of Files.isRegularFile()
Message-ID: <20131007105234.A1F8362DF3@hg.openjdk.java.net>
Changeset: 0ac9dc315071
Author: alanb
Date: 2013-10-07 11:48 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0ac9dc315071
8025983: Typo in Javadoc of Files.isRegularFile()
Reviewed-by: mchung, chegar
! src/share/classes/java/nio/file/Files.java
! src/share/classes/java/nio/file/Path.java
From Alan.Bateman at oracle.com Mon Oct 7 03:56:26 2013
From: Alan.Bateman at oracle.com (Alan Bateman)
Date: Mon, 07 Oct 2013 11:56:26 +0100
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <52528D6C.5000705@oracle.com>
References: <5251C216.105@oracle.com> <52528D6C.5000705@oracle.com>
Message-ID: <5252935A.8070005@oracle.com>
On 07/10/2013 11:31, Mandy Chung wrote:
> :
>
>>
>> For the review then the intention is that @jdk.Exported be added to
>> the package-info and all public/protected types in these APIs. The
>> only exceptions are two cases where I've added @jdk.Exported(false),
>> specifically:
>>
>> - com.sun.management.OSMBeanFactory as it clearly documents to stay away
>
> It's a bug. We should fix it and remove this public class (I have
> filed JDK-8025985 for it).
Thanks for creating the bug, I agree it should be removed. For now, I'll
leave @jdk.Exported(false), unless that issue is resolved before we push
this (I hope that is okay with you).
-Alan.
From sean.mullan at oracle.com Mon Oct 7 05:26:08 2013
From: sean.mullan at oracle.com (Sean Mullan)
Date: Mon, 07 Oct 2013 08:26:08 -0400
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5251C216.105@oracle.com>
References: <5251C216.105@oracle.com>
Message-ID: <5252A860.4050609@oracle.com>
7 classes in com.sun.security.auth have been deprecated for several
major releases now. Should they still have this annotation?
--Sean
On 10/06/2013 04:03 PM, Alan Bateman wrote:
>
> As a follow-up to Joe Darcy's rename of jdk.Supported to jdk.Exported,
> I'd like to have another attempt at adding the annotation to a number of
> JDK specific APIs that are long standing exported, documented and
> supported APIs. Specifically, the following APIs:
>
> - Java Debug Interface (com.sun.jdi)
> - Attach API (com.sun.tools.attach)
> - SCTP API (com.sun.nio.sctp)
> - HTTP server API (com.sun.net.httpserver)
> - Management extensions (com.sun.management)
> - JConsole Plugin API (com.sun.tools.jconsole)
> - JDK-specific API to JAAS (com.sun.security.auth)
> - JDK-specific JGSS API (com.sun.security.jgss)
>
> (The javadoc for each of these APIs is currently generated in the build)
>
> The webrev with the proposed update is here:
> http://cr.openjdk.java.net/~alanb/8008662/webrev.02/
>
> As per the original webrev, I've added package-info.java to a number of
> packages that didn't have any description. In a few cases, I've had to
> rename the legacy package.html to package-info.java.
>
> For the review then the intention is that @jdk.Exported be added to the
> package-info and all public/protected types in these APIs. The only
> exceptions are two cases where I've added @jdk.Exported(false),
> specifically:
>
> - com.sun.management.OSMBeanFactory as it clearly documents to stay away
> - com.sun.security.auth.callback.DialogCallbackHandler as it for the
> chop (see JEP 162)
>
> Thanks,
>
> Alan.
From Alan.Bateman at oracle.com Mon Oct 7 05:28:52 2013
From: Alan.Bateman at oracle.com (Alan Bateman)
Date: Mon, 07 Oct 2013 13:28:52 +0100
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5252A860.4050609@oracle.com>
References: <5251C216.105@oracle.com> <5252A860.4050609@oracle.com>
Message-ID: <5252A904.1070808@oracle.com>
On 07/10/2013 13:26, Sean Mullan wrote:
> 7 classes in com.sun.security.auth have been deprecated for several
> major releases now. Should they still have this annotation?
>
> --Sean
I know but aren't they still exported and supported?
DialogCallbackHandler is the only one with its name on a bullet.
-Alan.
From sean.mullan at oracle.com Mon Oct 7 05:36:53 2013
From: sean.mullan at oracle.com (Sean Mullan)
Date: Mon, 07 Oct 2013 08:36:53 -0400
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5252A904.1070808@oracle.com>
References: <5251C216.105@oracle.com> <5252A860.4050609@oracle.com>
<5252A904.1070808@oracle.com>
Message-ID: <5252AAE5.4020806@oracle.com>
On 10/07/2013 08:28 AM, Alan Bateman wrote:
> On 07/10/2013 13:26, Sean Mullan wrote:
>> 7 classes in com.sun.security.auth have been deprecated for several
>> major releases now. Should they still have this annotation?
>>
>> --Sean
> I know but aren't they still exported and supported?
They have all had API replacements since JDK 1.4 or 1.5. There has been
plenty of time to transition.
> DialogCallbackHandler is the only one with its name on a bullet.
We have only started removing some deprecated things in JDK, so it just
was never thought about until now. Marking these as supported going
forward strikes me as a bit strange, since we don't really want anyone
using these anymore.
--Sean
From Alan.Bateman at oracle.com Mon Oct 7 05:58:17 2013
From: Alan.Bateman at oracle.com (Alan Bateman)
Date: Mon, 07 Oct 2013 13:58:17 +0100
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5252AAE5.4020806@oracle.com>
References: <5251C216.105@oracle.com> <5252A860.4050609@oracle.com>
<5252A904.1070808@oracle.com> <5252AAE5.4020806@oracle.com>
Message-ID: <5252AFE9.2040205@oracle.com>
On 07/10/2013 13:36, Sean Mullan wrote:
>
> We have only started removing some deprecated things in JDK, so it
> just was never thought about until now. Marking these as supported
> going forward strikes me as a bit strange, since we don't really want
> anyone using these anymore.
As a guide, I think we should plan to address these anomalies for 9 so
that we can export APIs on a per API package basis. I'm okay to change
these to @jdk.Exported(false) if we can flag them for removal (like we
did for DialogCallbackHandler).
-Alan.
From sean.mullan at oracle.com Mon Oct 7 06:02:35 2013
From: sean.mullan at oracle.com (Sean Mullan)
Date: Mon, 07 Oct 2013 09:02:35 -0400
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5252AFE9.2040205@oracle.com>
References: <5251C216.105@oracle.com> <5252A860.4050609@oracle.com>
<5252A904.1070808@oracle.com> <5252AAE5.4020806@oracle.com>
<5252AFE9.2040205@oracle.com>
Message-ID: <5252B0EB.2040803@oracle.com>
On 10/07/2013 08:58 AM, Alan Bateman wrote:
> On 07/10/2013 13:36, Sean Mullan wrote:
>>
>> We have only started removing some deprecated things in JDK, so it
>> just was never thought about until now. Marking these as supported
>> going forward strikes me as a bit strange, since we don't really want
>> anyone using these anymore.
> As a guide, I think we should plan to address these anomalies for 9 so
> that we can export APIs on a per API package basis. I'm okay to change
> these to @jdk.Exported(false) if we can flag them for removal (like we
> did for DialogCallbackHandler).
Sure. I'll file a bug to have these deprecated classes removed in 9.
--Sean
From jaroslav.bachorik at oracle.com Mon Oct 7 06:59:23 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Mon, 07 Oct 2013 15:59:23 +0200
Subject: RFR 7144200: java/lang/management/ClassLoadingMXBean/LoadCounts.java
failed with JFR enabled
Message-ID: <5252BE3B.5020607@oracle.com>
The test captures the number of loaded classes right at the start and
then checks the diffs when it's finished. However, it seems that there
might by some async class loading still going on, initiated by JFR.
The patch simply adds a loop to wait for the number of loaded classes to
settle before continuing. This should prevent the test failing with JFR
intermittently.
Issue: https://bugs.openjdk.java.net/browse/JDK-7144200
Webrev: http://cr.openjdk.java.net/~jbachorik/7144200/webrev.00/
Cheers,
-JB-
From jaroslav.bachorik at oracle.com Mon Oct 7 07:14:14 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Mon, 07 Oct 2013 16:14:14 +0200
Subject: [ping][ping] Re: jmx-dev RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <523B0B30.4020003@oracle.com>
References: <52308ECC.1050304@oracle.com>
<523138CB.9040401@oracle.com> <52317782.1060300@oracle.com>
<523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com>
<5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com>
<523B0B30.4020003@oracle.com>
Message-ID: <5252C1B6.2060904@oracle.com>
On 19.9.2013 16:33, Jaroslav Bachorik wrote:
> The updated webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>
> I've moved some of the functionality to the testlibrary.
>
> -JB -
>
> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>> Jaroslav,
>>>
>>> CustomLauncherTest.java:
>>>
>>> 102: this check could be moved to switch at ll. 108
>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>> unset.
>> Good idea. Thanks.
>>
>>> 129: I would prefer don't have pattern like this one ever in shell
>>> script. Could you prepare a list of VM's to check and just loop over it?
>>> It makes test better readable. Also I think nowdays we can always use
>>> server VM.
>> I tried to mirror the original shell test as closely as possible. It
>> would be nice if we could rely on the "server" vm only. Definitely more
>> readable.
>>
>> -JB-
>>
>>> -Dmitry
>>>
>>>
>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>> Hi Jaroslav,
>>>>>>>
>>>>>>> You need a copyright notice in the new file.
>>>>>>>
>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>> it to
>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to come
>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>
>>>>>>> Is there a reason this test can't run on OSX? I know it would need
>>>>>>> further modification but was wondering if there is something
>>>>>>> inherent in
>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>
>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>> hotspot
>>>>>>> test library's process tools available. :(
>>>>>> We have some, is there an obvious gap?
>>>>>>
>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>
>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>
>>>>> Please, stand by for the updated webrev.
>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>> application can recognize its own PID and print it to its stdout. The
>>>> main application then just reads the stdout to parse the PID. No need
>>>> for JCMD any more.
>>>>
>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>> property. According to the jtreg web documentation
>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>> "test.java"
>>>> system property should be available but in fact is not. But it seems
>>>> that the testlibrary uses "test.jdk" system property too.
>>>>
>>>> The test does not run on OSX because nobody built the launcher
>>>> binary :)
>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>> linux-amd64 launcher while working on the test.
>>>>
>>>> While working with the test library I realized I was missing a crucial
>>>> feature (at least for my purposes) - waiting for a certain message to
>>>> appear in the stdout/stderr of the launched process. Very often I need
>>>> to wait for the target process to get to certain point before the test
>>>> can be allowed to continue - and the point is indicated by a message in
>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>> analyzed after the target process died - and are not suitable for this
>>>> kind of usage.
>>>>
>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>
>>>>> -JB-
>>>>>
>>>>>>
>>>>>> -Chris.
>>>>>>
>>>>>>> David
>>>>>>> -----
>>>>>>>
>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>
>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>
>>>>>>>> In order to fix this the test is rewritten in Java - the original
>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>> similarity
>>>>>>>> between the *.sh and *.java file so one needs to go through the new
>>>>>>>> source in whole.
>>>>>>>>
>>>>>>>> The changes in "launcher" files are all about adding permissions to
>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Issue : JDK-8004926
>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>
>>>>>>>> -JB-
>>>>>>>>
>>>
>
From daniel.fuchs at oracle.com Mon Oct 7 07:22:10 2013
From: daniel.fuchs at oracle.com (Daniel Fuchs)
Date: Mon, 07 Oct 2013 16:22:10 +0200
Subject: jmx-dev RFR 7144200:
java/lang/management/ClassLoadingMXBean/LoadCounts.java
failed with JFR enabled
In-Reply-To: <5252BE3B.5020607@oracle.com>
References: <5252BE3B.5020607@oracle.com>
Message-ID: <5252C392.5010909@oracle.com>
Hi Jaroslav,
I am not an expert in classloading but I don't see any obvious
issue with what you propose.
I wonder whether making the test always run in /othervm mode
might make it more stable.
best regards,
-- daniel
On 10/7/13 3:59 PM, Jaroslav Bachorik wrote:
> The test captures the number of loaded classes right at the start and
> then checks the diffs when it's finished. However, it seems that there
> might by some async class loading still going on, initiated by JFR.
>
> The patch simply adds a loop to wait for the number of loaded classes to
> settle before continuing. This should prevent the test failing with JFR
> intermittently.
>
> Issue: https://bugs.openjdk.java.net/browse/JDK-7144200
> Webrev: http://cr.openjdk.java.net/~jbachorik/7144200/webrev.00/
>
> Cheers,
>
> -JB-
From dmitry.samersoff at oracle.com Mon Oct 7 07:31:27 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Mon, 07 Oct 2013 18:31:27 +0400
Subject: jmx-dev [ping][ping] Re: RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <5252C1B6.2060904@oracle.com>
References: <52308ECC.1050304@oracle.com> <523138CB.9040401@oracle.com> <52317782.1060300@oracle.com> <523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com> <5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com> <523B0B30.4020003@oracle.com>
<5252C1B6.2060904@oracle.com>
Message-ID: <5252C5BF.4060406@oracle.com>
Jarsolav,
Looks good for me, comments below is just a nits - so fill free to
ignore it.
1.
As FS.getPath(TEST_JDK, "jre", "lib", LIBARCH) is the only value for
findLibjvm parameter, It's better to create an overload function
findLibjvm().
2.
it's better to check for File.isFile() - readable (e.g. device) is not
always what you whant here.
3. It's good to try
ARCH/libjvm.so, ARCH/server/libjvm.so, ARCH/client/libjvm.so
in order for the possible platforms with the only vm
-Dmitry
On 2013-10-07 18:14, Jaroslav Bachorik wrote:
> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>> The updated webrev:
>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>
>> I've moved some of the functionality to the testlibrary.
>>
>> -JB -
>>
>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>> Jaroslav,
>>>>
>>>> CustomLauncherTest.java:
>>>>
>>>> 102: this check could be moved to switch at ll. 108
>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>> unset.
>>> Good idea. Thanks.
>>>
>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>> script. Could you prepare a list of VM's to check and just loop over
>>>> it?
>>>> It makes test better readable. Also I think nowdays we can always use
>>>> server VM.
>>> I tried to mirror the original shell test as closely as possible. It
>>> would be nice if we could rely on the "server" vm only. Definitely more
>>> readable.
>>>
>>> -JB-
>>>
>>>> -Dmitry
>>>>
>>>>
>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>> Hi Jaroslav,
>>>>>>>>
>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>
>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>> it to
>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>> come
>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>
>>>>>>>> Is there a reason this test can't run on OSX? I know it would need
>>>>>>>> further modification but was wondering if there is something
>>>>>>>> inherent in
>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>
>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>> hotspot
>>>>>>>> test library's process tools available. :(
>>>>>>> We have some, is there an obvious gap?
>>>>>>>
>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>
>>>>>>>
>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>
>>>>>> Please, stand by for the updated webrev.
>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>> application can recognize its own PID and print it to its stdout. The
>>>>> main application then just reads the stdout to parse the PID. No need
>>>>> for JCMD any more.
>>>>>
>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>> property. According to the jtreg web documentation
>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>> "test.java"
>>>>> system property should be available but in fact is not. But it seems
>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>
>>>>> The test does not run on OSX because nobody built the launcher
>>>>> binary :)
>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>> linux-amd64 launcher while working on the test.
>>>>>
>>>>> While working with the test library I realized I was missing a crucial
>>>>> feature (at least for my purposes) - waiting for a certain message to
>>>>> appear in the stdout/stderr of the launched process. Very often I need
>>>>> to wait for the target process to get to certain point before the test
>>>>> can be allowed to continue - and the point is indicated by a
>>>>> message in
>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>> analyzed after the target process died - and are not suitable for this
>>>>> kind of usage.
>>>>>
>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>
>>>>>> -JB-
>>>>>>
>>>>>>>
>>>>>>> -Chris.
>>>>>>>
>>>>>>>> David
>>>>>>>> -----
>>>>>>>>
>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>
>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>
>>>>>>>>> In order to fix this the test is rewritten in Java - the original
>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>> similarity
>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>> new
>>>>>>>>> source in whole.
>>>>>>>>>
>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>> permissions to
>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> Issue : JDK-8004926
>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>
>>>>>>>>> -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.
From jaroslav.bachorik at oracle.com Mon Oct 7 07:34:52 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Mon, 07 Oct 2013 16:34:52 +0200
Subject: jmx-dev RFR 7144200:
java/lang/management/ClassLoadingMXBean/LoadCounts.java
failed with JFR enabled
In-Reply-To: <5252C392.5010909@oracle.com>
References: <5252BE3B.5020607@oracle.com> <5252C392.5010909@oracle.com>
Message-ID: <5252C68C.4050608@oracle.com>
On 7.10.2013 16:22, Daniel Fuchs wrote:
> Hi Jaroslav,
>
> I am not an expert in classloading but I don't see any obvious
> issue with what you propose.
I hope there is none :) If the number of loaded classes is not changing
the test should continue immediately. The only problem could be loading
the classes veeery slowly - not increasing the number of the loaded
classes in 300ms interval. We could get a false positive and end up with
the same failure as now :(
>
> I wonder whether making the test always run in /othervm mode
> might make it more stable.
I don't know. I was not able to reproduce the problem but from the
description it sounds like it is spotted only with JFR enabled. So, I
suppose, running it in othervm would not help at all.
-JB-
>
> best regards,
>
> -- daniel
>
> On 10/7/13 3:59 PM, Jaroslav Bachorik wrote:
>> The test captures the number of loaded classes right at the start and
>> then checks the diffs when it's finished. However, it seems that there
>> might by some async class loading still going on, initiated by JFR.
>>
>> The patch simply adds a loop to wait for the number of loaded classes to
>> settle before continuing. This should prevent the test failing with JFR
>> intermittently.
>>
>> Issue: https://bugs.openjdk.java.net/browse/JDK-7144200
>> Webrev: http://cr.openjdk.java.net/~jbachorik/7144200/webrev.00/
>>
>> Cheers,
>>
>> -JB-
>
From staffan.larsen at oracle.com Mon Oct 7 07:35:47 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Mon, 7 Oct 2013 16:35:47 +0200
Subject: RFR 7144200:
java/lang/management/ClassLoadingMXBean/LoadCounts.java failed
with JFR enabled
In-Reply-To: <5252BE3B.5020607@oracle.com>
References: <5252BE3B.5020607@oracle.com>
Message-ID:
This will make it less likely for the test to fail, but does not guarantee it since there is nothing that says classloading will be done in 300 ms. Any failures will unfortunately be harder to reproduce. (And the test is now 300 ms slower to run.)
A different solution is to only allow the number of classes to increase, but not be strict about the increase being exactly 4. That would of course make the test less stringent, but very stable.
In any case, I think the test has to be marked as /othervm since running other tests simultaneously will impact this test.
S/taffan
On 7 okt 2013, at 15:59, Jaroslav Bachorik wrote:
> The test captures the number of loaded classes right at the start and then checks the diffs when it's finished. However, it seems that there might by some async class loading still going on, initiated by JFR.
>
> The patch simply adds a loop to wait for the number of loaded classes to settle before continuing. This should prevent the test failing with JFR intermittently.
>
> Issue: https://bugs.openjdk.java.net/browse/JDK-7144200
> Webrev: http://cr.openjdk.java.net/~jbachorik/7144200/webrev.00/
>
> Cheers,
>
> -JB-
From erik.gahlin at oracle.com Mon Oct 7 09:01:40 2013
From: erik.gahlin at oracle.com (Erik Gahlin)
Date: Mon, 07 Oct 2013 18:01:40 +0200
Subject: RFR 7144200:
java/lang/management/ClassLoadingMXBean/LoadCounts.java
failed with JFR enabled
In-Reply-To: <5252BE3B.5020607@oracle.com>
References: <5252BE3B.5020607@oracle.com>
Message-ID: <5252DAE4.6030406@oracle.com>
I don't think the test should run with JFR enabled. I would ask SQE not
to run unit tests with JFR and only add /othervm.
Erik
Jaroslav Bachorik skrev 10/7/13 3:59 PM:
> The test captures the number of loaded classes right at the start and
> then checks the diffs when it's finished. However, it seems that there
> might by some async class loading still going on, initiated by JFR.
>
> The patch simply adds a loop to wait for the number of loaded classes
> to settle before continuing. This should prevent the test failing with
> JFR intermittently.
>
> Issue: https://bugs.openjdk.java.net/browse/JDK-7144200
> Webrev: http://cr.openjdk.java.net/~jbachorik/7144200/webrev.00/
>
> Cheers,
>
> -JB-
From jaroslav.bachorik at oracle.com Mon Oct 7 09:39:06 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Mon, 07 Oct 2013 18:39:06 +0200
Subject: jmx-dev [ping][ping] Re: RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <5252C5BF.4060406@oracle.com>
References: <52308ECC.1050304@oracle.com> <523138CB.9040401@oracle.com> <52317782.1060300@oracle.com> <523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com> <5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com> <523B0B30.4020003@oracle.com>
<5252C1B6.2060904@oracle.com> <5252C5BF.4060406@oracle.com>
Message-ID: <5252E3AA.5010702@oracle.com>
On 7.10.2013 16:31, Dmitry Samersoff wrote:
> Jarsolav,
>
> Looks good for me, comments below is just a nits - so fill free to
> ignore it.
>
> 1.
> As FS.getPath(TEST_JDK, "jre", "lib", LIBARCH) is the only value for
> findLibjvm parameter, It's better to create an overload function
> findLibjvm().
Ok. It will make the code a further bit readable.
>
> 2.
> it's better to check for File.isFile() - readable (e.g. device) is not
> always what you whant here.
Can you elaborate why checking for the current user being able to read
the actual library file might be wrong?
>
> 3. It's good to try
> ARCH/libjvm.so, ARCH/server/libjvm.so, ARCH/client/libjvm.so
> in order for the possible platforms with the only vm
Ok.
-JB-
>
> -Dmitry
>
>
> On 2013-10-07 18:14, Jaroslav Bachorik wrote:
>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>> The updated webrev:
>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>
>>> I've moved some of the functionality to the testlibrary.
>>>
>>> -JB -
>>>
>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>> Jaroslav,
>>>>>
>>>>> CustomLauncherTest.java:
>>>>>
>>>>> 102: this check could be moved to switch at ll. 108
>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>>> unset.
>>>> Good idea. Thanks.
>>>>
>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>> script. Could you prepare a list of VM's to check and just loop over
>>>>> it?
>>>>> It makes test better readable. Also I think nowdays we can always use
>>>>> server VM.
>>>> I tried to mirror the original shell test as closely as possible. It
>>>> would be nice if we could rely on the "server" vm only. Definitely more
>>>> readable.
>>>>
>>>> -JB-
>>>>
>>>>> -Dmitry
>>>>>
>>>>>
>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>> Hi Jaroslav,
>>>>>>>>>
>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>
>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>> it to
>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>> come
>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>
>>>>>>>>> Is there a reason this test can't run on OSX? I know it would need
>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>> inherent in
>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>
>>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>>> hotspot
>>>>>>>>> test library's process tools available. :(
>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>
>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>
>>>>>>>>
>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>
>>>>>>> Please, stand by for the updated webrev.
>>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>>> application can recognize its own PID and print it to its stdout. The
>>>>>> main application then just reads the stdout to parse the PID. No need
>>>>>> for JCMD any more.
>>>>>>
>>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>>> property. According to the jtreg web documentation
>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>> "test.java"
>>>>>> system property should be available but in fact is not. But it seems
>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>
>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>> binary :)
>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>> linux-amd64 launcher while working on the test.
>>>>>>
>>>>>> While working with the test library I realized I was missing a crucial
>>>>>> feature (at least for my purposes) - waiting for a certain message to
>>>>>> appear in the stdout/stderr of the launched process. Very often I need
>>>>>> to wait for the target process to get to certain point before the test
>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>> message in
>>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>> analyzed after the target process died - and are not suitable for this
>>>>>> kind of usage.
>>>>>>
>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>
>>>>>>> -JB-
>>>>>>>
>>>>>>>>
>>>>>>>> -Chris.
>>>>>>>>
>>>>>>>>> David
>>>>>>>>> -----
>>>>>>>>>
>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>
>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>
>>>>>>>>>> In order to fix this the test is rewritten in Java - the original
>>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>> similarity
>>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>>> new
>>>>>>>>>> source in whole.
>>>>>>>>>>
>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>> permissions to
>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>
>>>>>>>>>> -JB-
>>>>>>>>>>
>>>>>
>>>
>>
>
>
From dmitry.samersoff at oracle.com Mon Oct 7 09:47:25 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Mon, 07 Oct 2013 20:47:25 +0400
Subject: jmx-dev [ping][ping] Re: RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <5252E3AA.5010702@oracle.com>
References: <52308ECC.1050304@oracle.com> <523138CB.9040401@oracle.com> <52317782.1060300@oracle.com> <523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com> <5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com> <523B0B30.4020003@oracle.com>
<5252C1B6.2060904@oracle.com> <5252C5BF.4060406@oracle.com>
<5252E3AA.5010702@oracle.com>
Message-ID: <5252E59D.30200@oracle.com>
Jaroslav,
> Can you elaborate why checking for the current user being able to read
> the actual library file might be wrong?
It's not applicable to this particular testcase (so I'd marked it as a
nit) but a generic security rule is to always check that we deal with a
regular file.
Try to link any block device to libjvm.so and see what happens.
-Dmitry
On 2013-10-07 20:39, Jaroslav Bachorik wrote:
> On 7.10.2013 16:31, Dmitry Samersoff wrote:
>> Jarsolav,
>>
>> Looks good for me, comments below is just a nits - so fill free to
>> ignore it.
>>
>> 1.
>> As FS.getPath(TEST_JDK, "jre", "lib", LIBARCH) is the only value for
>> findLibjvm parameter, It's better to create an overload function
>> findLibjvm().
>
> Ok. It will make the code a further bit readable.
>
>>
>> 2.
>> it's better to check for File.isFile() - readable (e.g. device) is not
>> always what you whant here.
>
> Can you elaborate why checking for the current user being able to read
> the actual library file might be wrong?
>
>>
>> 3. It's good to try
>> ARCH/libjvm.so, ARCH/server/libjvm.so, ARCH/client/libjvm.so
>> in order for the possible platforms with the only vm
>
> Ok.
>
> -JB-
>
>>
>> -Dmitry
>>
>>
>> On 2013-10-07 18:14, Jaroslav Bachorik wrote:
>>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>>> The updated webrev:
>>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>>
>>>> I've moved some of the functionality to the testlibrary.
>>>>
>>>> -JB -
>>>>
>>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>>> Jaroslav,
>>>>>>
>>>>>> CustomLauncherTest.java:
>>>>>>
>>>>>> 102: this check could be moved to switch at ll. 108
>>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>>>> unset.
>>>>> Good idea. Thanks.
>>>>>
>>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>>> script. Could you prepare a list of VM's to check and just loop over
>>>>>> it?
>>>>>> It makes test better readable. Also I think nowdays we can always use
>>>>>> server VM.
>>>>> I tried to mirror the original shell test as closely as possible. It
>>>>> would be nice if we could rely on the "server" vm only. Definitely
>>>>> more
>>>>> readable.
>>>>>
>>>>> -JB-
>>>>>
>>>>>> -Dmitry
>>>>>>
>>>>>>
>>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>>> Hi Jaroslav,
>>>>>>>>>>
>>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>>
>>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>>> it to
>>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>>> come
>>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>>
>>>>>>>>>> Is there a reason this test can't run on OSX? I know it would
>>>>>>>>>> need
>>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>>> inherent in
>>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>>
>>>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>>>> hotspot
>>>>>>>>>> test library's process tools available. :(
>>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>>
>>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>>
>>>>>>>> Please, stand by for the updated webrev.
>>>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>>>> application can recognize its own PID and print it to its stdout.
>>>>>>> The
>>>>>>> main application then just reads the stdout to parse the PID. No
>>>>>>> need
>>>>>>> for JCMD any more.
>>>>>>>
>>>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>>>> property. According to the jtreg web documentation
>>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>>> "test.java"
>>>>>>> system property should be available but in fact is not. But it seems
>>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>>
>>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>>> binary :)
>>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>>> linux-amd64 launcher while working on the test.
>>>>>>>
>>>>>>> While working with the test library I realized I was missing a
>>>>>>> crucial
>>>>>>> feature (at least for my purposes) - waiting for a certain
>>>>>>> message to
>>>>>>> appear in the stdout/stderr of the launched process. Very often I
>>>>>>> need
>>>>>>> to wait for the target process to get to certain point before the
>>>>>>> test
>>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>>> message in
>>>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>>> analyzed after the target process died - and are not suitable for
>>>>>>> this
>>>>>>> kind of usage.
>>>>>>>
>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>>
>>>>>>>> -JB-
>>>>>>>>
>>>>>>>>>
>>>>>>>>> -Chris.
>>>>>>>>>
>>>>>>>>>> David
>>>>>>>>>> -----
>>>>>>>>>>
>>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>>
>>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>>
>>>>>>>>>>> In order to fix this the test is rewritten in Java - the
>>>>>>>>>>> original
>>>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>>> similarity
>>>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>>>> new
>>>>>>>>>>> source in whole.
>>>>>>>>>>>
>>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>>> permissions to
>>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>>
>>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>>
>>>>>>>>>>> -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.
From jaroslav.bachorik at oracle.com Mon Oct 7 09:55:53 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Mon, 07 Oct 2013 18:55:53 +0200
Subject: jmx-dev [ping][ping] Re: RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <5252E59D.30200@oracle.com>
References: <52308ECC.1050304@oracle.com> <523138CB.9040401@oracle.com> <52317782.1060300@oracle.com> <523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com> <5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com> <523B0B30.4020003@oracle.com>
<5252C1B6.2060904@oracle.com> <5252C5BF.4060406@oracle.com>
<5252E3AA.5010702@oracle.com> <5252E59D.30200@oracle.com>
Message-ID: <5252E799.4090402@oracle.com>
On 7.10.2013 18:47, Dmitry Samersoff wrote:
> Jaroslav,
>
>> Can you elaborate why checking for the current user being able to read
>> the actual library file might be wrong?
>
> It's not applicable to this particular testcase (so I'd marked it as a
> nit) but a generic security rule is to always check that we deal with a
> regular file.
>
> Try to link any block device to libjvm.so and see what happens.
Ok. I see - in that case it would probably be good to check either for
regular file and it being readable.
-JB-
>
> -Dmitry
>
>
>
> On 2013-10-07 20:39, Jaroslav Bachorik wrote:
>> On 7.10.2013 16:31, Dmitry Samersoff wrote:
>>> Jarsolav,
>>>
>>> Looks good for me, comments below is just a nits - so fill free to
>>> ignore it.
>>>
>>> 1.
>>> As FS.getPath(TEST_JDK, "jre", "lib", LIBARCH) is the only value for
>>> findLibjvm parameter, It's better to create an overload function
>>> findLibjvm().
>>
>> Ok. It will make the code a further bit readable.
>>
>>>
>>> 2.
>>> it's better to check for File.isFile() - readable (e.g. device) is not
>>> always what you whant here.
>>
>> Can you elaborate why checking for the current user being able to read
>> the actual library file might be wrong?
>>
>>>
>>> 3. It's good to try
>>> ARCH/libjvm.so, ARCH/server/libjvm.so, ARCH/client/libjvm.so
>>> in order for the possible platforms with the only vm
>>
>> Ok.
>>
>> -JB-
>>
>>>
>>> -Dmitry
>>>
>>>
>>> On 2013-10-07 18:14, Jaroslav Bachorik wrote:
>>>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>>>> The updated webrev:
>>>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>>>
>>>>> I've moved some of the functionality to the testlibrary.
>>>>>
>>>>> -JB -
>>>>>
>>>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>>>> Jaroslav,
>>>>>>>
>>>>>>> CustomLauncherTest.java:
>>>>>>>
>>>>>>> 102: this check could be moved to switch at ll. 108
>>>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>>>>> unset.
>>>>>> Good idea. Thanks.
>>>>>>
>>>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>>>> script. Could you prepare a list of VM's to check and just loop over
>>>>>>> it?
>>>>>>> It makes test better readable. Also I think nowdays we can always use
>>>>>>> server VM.
>>>>>> I tried to mirror the original shell test as closely as possible. It
>>>>>> would be nice if we could rely on the "server" vm only. Definitely
>>>>>> more
>>>>>> readable.
>>>>>>
>>>>>> -JB-
>>>>>>
>>>>>>> -Dmitry
>>>>>>>
>>>>>>>
>>>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>>>> Hi Jaroslav,
>>>>>>>>>>>
>>>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>>>
>>>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>>>> it to
>>>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>>>> come
>>>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>>>
>>>>>>>>>>> Is there a reason this test can't run on OSX? I know it would
>>>>>>>>>>> need
>>>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>>>> inherent in
>>>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>>>
>>>>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>>>>> hotspot
>>>>>>>>>>> test library's process tools available. :(
>>>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>>>
>>>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>>>
>>>>>>>>> Please, stand by for the updated webrev.
>>>>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>>>>> application can recognize its own PID and print it to its stdout.
>>>>>>>> The
>>>>>>>> main application then just reads the stdout to parse the PID. No
>>>>>>>> need
>>>>>>>> for JCMD any more.
>>>>>>>>
>>>>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>>>>> property. According to the jtreg web documentation
>>>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>>>> "test.java"
>>>>>>>> system property should be available but in fact is not. But it seems
>>>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>>>
>>>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>>>> binary :)
>>>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>>>> linux-amd64 launcher while working on the test.
>>>>>>>>
>>>>>>>> While working with the test library I realized I was missing a
>>>>>>>> crucial
>>>>>>>> feature (at least for my purposes) - waiting for a certain
>>>>>>>> message to
>>>>>>>> appear in the stdout/stderr of the launched process. Very often I
>>>>>>>> need
>>>>>>>> to wait for the target process to get to certain point before the
>>>>>>>> test
>>>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>>>> message in
>>>>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>>>> analyzed after the target process died - and are not suitable for
>>>>>>>> this
>>>>>>>> kind of usage.
>>>>>>>>
>>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>>>
>>>>>>>>> -JB-
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -Chris.
>>>>>>>>>>
>>>>>>>>>>> David
>>>>>>>>>>> -----
>>>>>>>>>>>
>>>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>>>
>>>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>>>
>>>>>>>>>>>> In order to fix this the test is rewritten in Java - the
>>>>>>>>>>>> original
>>>>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>>>> similarity
>>>>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>>>>> new
>>>>>>>>>>>> source in whole.
>>>>>>>>>>>>
>>>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>>>> permissions to
>>>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>
>>>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>>>
>>>>>>>>>>>> -JB-
>>>>>>>>>>>>
>>>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>
From serguei.spitsyn at oracle.com Mon Oct 7 10:06:15 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Mon, 07 Oct 2013 10:06:15 -0700
Subject: RFR 7144200:
java/lang/management/ClassLoadingMXBean/LoadCounts.java
failed with JFR enabled
In-Reply-To: <5252DAE4.6030406@oracle.com>
References: <5252BE3B.5020607@oracle.com> <5252DAE4.6030406@oracle.com>
Message-ID: <5252EA07.4060305@oracle.com>
I agree with Erik.
It is better to just exclude this test from run with JFR enabled.
Adding /othervm should probably solve the problem.
Thanks,
Serguei
On 10/7/13 9:01 AM, Erik Gahlin wrote:
> I don't think the test should run with JFR enabled. I would ask SQE
> not to run unit tests with JFR and only add /othervm.
>
> Erik
>
> Jaroslav Bachorik skrev 10/7/13 3:59 PM:
>> The test captures the number of loaded classes right at the start and
>> then checks the diffs when it's finished. However, it seems that
>> there might by some async class loading still going on, initiated by
>> JFR.
>>
>> The patch simply adds a loop to wait for the number of loaded classes
>> to settle before continuing. This should prevent the test failing
>> with JFR intermittently.
>>
>> Issue: https://bugs.openjdk.java.net/browse/JDK-7144200
>> Webrev: http://cr.openjdk.java.net/~jbachorik/7144200/webrev.00/
>>
>> Cheers,
>>
>> -JB-
>
From jaroslav.bachorik at oracle.com Mon Oct 7 10:10:33 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Mon, 07 Oct 2013 19:10:33 +0200
Subject: jmx-dev [ping][ping] Re: RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <5252C5BF.4060406@oracle.com>
References: <52308ECC.1050304@oracle.com> <523138CB.9040401@oracle.com> <52317782.1060300@oracle.com> <523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com> <5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com> <523B0B30.4020003@oracle.com>
<5252C1B6.2060904@oracle.com> <5252C5BF.4060406@oracle.com>
Message-ID: <5252EB09.2090103@oracle.com>
On 7.10.2013 16:31, Dmitry Samersoff wrote:
> Jarsolav,
>
> Looks good for me, comments below is just a nits - so fill free to
> ignore it.
>
> 1.
> As FS.getPath(TEST_JDK, "jre", "lib", LIBARCH) is the only value for
> findLibjvm parameter, It's better to create an overload function
> findLibjvm().
>
> 2.
> it's better to check for File.isFile() - readable (e.g. device) is not
> always what you whant here.
>
> 3. It's good to try
> ARCH/libjvm.so, ARCH/server/libjvm.so, ARCH/client/libjvm.so
> in order for the possible platforms with the only vm
Nits not ignored -
http://cr.openjdk.java.net/~jbachorik/8004926/webrev.04/ :)
-JB-
>
> -Dmitry
>
>
> On 2013-10-07 18:14, Jaroslav Bachorik wrote:
>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>> The updated webrev:
>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>
>>> I've moved some of the functionality to the testlibrary.
>>>
>>> -JB -
>>>
>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>> Jaroslav,
>>>>>
>>>>> CustomLauncherTest.java:
>>>>>
>>>>> 102: this check could be moved to switch at ll. 108
>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>>> unset.
>>>> Good idea. Thanks.
>>>>
>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>> script. Could you prepare a list of VM's to check and just loop over
>>>>> it?
>>>>> It makes test better readable. Also I think nowdays we can always use
>>>>> server VM.
>>>> I tried to mirror the original shell test as closely as possible. It
>>>> would be nice if we could rely on the "server" vm only. Definitely more
>>>> readable.
>>>>
>>>> -JB-
>>>>
>>>>> -Dmitry
>>>>>
>>>>>
>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>> Hi Jaroslav,
>>>>>>>>>
>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>
>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>> it to
>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>> come
>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>
>>>>>>>>> Is there a reason this test can't run on OSX? I know it would need
>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>> inherent in
>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>
>>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>>> hotspot
>>>>>>>>> test library's process tools available. :(
>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>
>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>
>>>>>>>>
>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>
>>>>>>> Please, stand by for the updated webrev.
>>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>>> application can recognize its own PID and print it to its stdout. The
>>>>>> main application then just reads the stdout to parse the PID. No need
>>>>>> for JCMD any more.
>>>>>>
>>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>>> property. According to the jtreg web documentation
>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>> "test.java"
>>>>>> system property should be available but in fact is not. But it seems
>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>
>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>> binary :)
>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>> linux-amd64 launcher while working on the test.
>>>>>>
>>>>>> While working with the test library I realized I was missing a crucial
>>>>>> feature (at least for my purposes) - waiting for a certain message to
>>>>>> appear in the stdout/stderr of the launched process. Very often I need
>>>>>> to wait for the target process to get to certain point before the test
>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>> message in
>>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>> analyzed after the target process died - and are not suitable for this
>>>>>> kind of usage.
>>>>>>
>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>
>>>>>>> -JB-
>>>>>>>
>>>>>>>>
>>>>>>>> -Chris.
>>>>>>>>
>>>>>>>>> David
>>>>>>>>> -----
>>>>>>>>>
>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>
>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>
>>>>>>>>>> In order to fix this the test is rewritten in Java - the original
>>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>> similarity
>>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>>> new
>>>>>>>>>> source in whole.
>>>>>>>>>>
>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>> permissions to
>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>
>>>>>>>>>> -JB-
>>>>>>>>>>
>>>>>
>>>
>>
>
>
From dmitry.samersoff at oracle.com Mon Oct 7 10:12:23 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Mon, 07 Oct 2013 21:12:23 +0400
Subject: jmx-dev [ping][ping] Re: RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <5252EB09.2090103@oracle.com>
References: <52308ECC.1050304@oracle.com> <523138CB.9040401@oracle.com> <52317782.1060300@oracle.com> <523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com> <5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com> <523B0B30.4020003@oracle.com>
<5252C1B6.2060904@oracle.com> <5252C5BF.4060406@oracle.com>
<5252EB09.2090103@oracle.com>
Message-ID: <5252EB77.8090702@oracle.com>
Jaroslav,
Thumbs up!
Thank you for addressing my comments.
-Dmitry
On 2013-10-07 21:10, Jaroslav Bachorik wrote:
> On 7.10.2013 16:31, Dmitry Samersoff wrote:
>> Jarsolav,
>>
>> Looks good for me, comments below is just a nits - so fill free to
>> ignore it.
>>
>> 1.
>> As FS.getPath(TEST_JDK, "jre", "lib", LIBARCH) is the only value for
>> findLibjvm parameter, It's better to create an overload function
>> findLibjvm().
>>
>> 2.
>> it's better to check for File.isFile() - readable (e.g. device) is not
>> always what you whant here.
>>
>> 3. It's good to try
>> ARCH/libjvm.so, ARCH/server/libjvm.so, ARCH/client/libjvm.so
>> in order for the possible platforms with the only vm
>
> Nits not ignored -
> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.04/ :)
>
> -JB-
>
>>
>> -Dmitry
>>
>>
>> On 2013-10-07 18:14, Jaroslav Bachorik wrote:
>>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>>> The updated webrev:
>>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>>
>>>> I've moved some of the functionality to the testlibrary.
>>>>
>>>> -JB -
>>>>
>>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>>> Jaroslav,
>>>>>>
>>>>>> CustomLauncherTest.java:
>>>>>>
>>>>>> 102: this check could be moved to switch at ll. 108
>>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>>>> unset.
>>>>> Good idea. Thanks.
>>>>>
>>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>>> script. Could you prepare a list of VM's to check and just loop over
>>>>>> it?
>>>>>> It makes test better readable. Also I think nowdays we can always use
>>>>>> server VM.
>>>>> I tried to mirror the original shell test as closely as possible. It
>>>>> would be nice if we could rely on the "server" vm only. Definitely
>>>>> more
>>>>> readable.
>>>>>
>>>>> -JB-
>>>>>
>>>>>> -Dmitry
>>>>>>
>>>>>>
>>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>>> Hi Jaroslav,
>>>>>>>>>>
>>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>>
>>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>>> it to
>>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>>> come
>>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>>
>>>>>>>>>> Is there a reason this test can't run on OSX? I know it would
>>>>>>>>>> need
>>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>>> inherent in
>>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>>
>>>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>>>> hotspot
>>>>>>>>>> test library's process tools available. :(
>>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>>
>>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>>
>>>>>>>> Please, stand by for the updated webrev.
>>>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>>>> application can recognize its own PID and print it to its stdout.
>>>>>>> The
>>>>>>> main application then just reads the stdout to parse the PID. No
>>>>>>> need
>>>>>>> for JCMD any more.
>>>>>>>
>>>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>>>> property. According to the jtreg web documentation
>>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>>> "test.java"
>>>>>>> system property should be available but in fact is not. But it seems
>>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>>
>>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>>> binary :)
>>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>>> linux-amd64 launcher while working on the test.
>>>>>>>
>>>>>>> While working with the test library I realized I was missing a
>>>>>>> crucial
>>>>>>> feature (at least for my purposes) - waiting for a certain
>>>>>>> message to
>>>>>>> appear in the stdout/stderr of the launched process. Very often I
>>>>>>> need
>>>>>>> to wait for the target process to get to certain point before the
>>>>>>> test
>>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>>> message in
>>>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>>> analyzed after the target process died - and are not suitable for
>>>>>>> this
>>>>>>> kind of usage.
>>>>>>>
>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>>
>>>>>>>> -JB-
>>>>>>>>
>>>>>>>>>
>>>>>>>>> -Chris.
>>>>>>>>>
>>>>>>>>>> David
>>>>>>>>>> -----
>>>>>>>>>>
>>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>>
>>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>>
>>>>>>>>>>> In order to fix this the test is rewritten in Java - the
>>>>>>>>>>> original
>>>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>>> similarity
>>>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>>>> new
>>>>>>>>>>> source in whole.
>>>>>>>>>>>
>>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>>> permissions to
>>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>>
>>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>>
>>>>>>>>>>> -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.
From henry.jen at oracle.com Mon Oct 7 11:32:58 2013
From: henry.jen at oracle.com (henry.jen at oracle.com)
Date: Mon, 07 Oct 2013 18:32:58 +0000
Subject: hg: jdk8/tl/jdk: 8025968: Integrate test improvements made in lambda
repo
Message-ID: <20131007183325.BD04D62E0B@hg.openjdk.java.net>
Changeset: f0ad3e2918b4
Author: henryjen
Date: 2013-10-07 11:25 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f0ad3e2918b4
8025968: Integrate test improvements made in lambda repo
Reviewed-by: psandoz
! test/java/util/stream/bootlib/java/util/stream/OpTestCase.java
! test/java/util/stream/test/org/openjdk/tests/java/util/stream/ExplodeOpTest.java
! test/java/util/stream/test/org/openjdk/tests/java/util/stream/TabulatorsTest.java
From karen.kinnear at oracle.com Mon Oct 7 13:33:37 2013
From: karen.kinnear at oracle.com (karen.kinnear at oracle.com)
Date: Mon, 07 Oct 2013 20:33:37 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8009130: Lambda: Fix access controls,
loader constraints.
Message-ID: <20131007203343.879CA62E15@hg.openjdk.java.net>
Changeset: ac9cb1d5a202
Author: acorn
Date: 2013-10-07 12:20 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/ac9cb1d5a202
8009130: Lambda: Fix access controls, loader constraints.
Summary: New default methods list with inherited superinterface methods
Reviewed-by: minqi, sspitsyn, coleenp
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/defaultMethods.cpp
! src/share/vm/code/dependencies.cpp
! src/share/vm/interpreter/linkResolver.cpp
! src/share/vm/interpreter/linkResolver.hpp
! src/share/vm/memory/heapInspection.hpp
! src/share/vm/oops/instanceKlass.cpp
! src/share/vm/oops/instanceKlass.hpp
! src/share/vm/oops/klassVtable.cpp
! src/share/vm/oops/klassVtable.hpp
! src/share/vm/oops/method.cpp
! src/share/vm/oops/method.hpp
! src/share/vm/prims/jni.cpp
! src/share/vm/prims/jvmtiRedefineClasses.cpp
! src/share/vm/prims/methodHandles.cpp
! src/share/vm/runtime/reflectionUtils.cpp
! src/share/vm/runtime/reflectionUtils.hpp
! src/share/vm/runtime/vmStructs.cpp
From joe.darcy at oracle.com Mon Oct 7 15:02:15 2013
From: joe.darcy at oracle.com (Joseph Darcy)
Date: Mon, 07 Oct 2013 15:02:15 -0700
Subject: 8008662: Add @jdk.Exported to JDK-specific/exported APIs
In-Reply-To: <5251C216.105@oracle.com>
References: <5251C216.105@oracle.com>
Message-ID: <52532F67.4070408@oracle.com>
Hello,
I skimmed the patch and it looked fine.
More generally, we want every package and top-level class in the
com.sun.* namespace to be either explicitly exported or not.
Cheers,
-Joe
On 10/6/2013 1:03 PM, Alan Bateman wrote:
>
> As a follow-up to Joe Darcy's rename of jdk.Supported to jdk.Exported,
> I'd like to have another attempt at adding the annotation to a number
> of JDK specific APIs that are long standing exported, documented and
> supported APIs. Specifically, the following APIs:
>
> - Java Debug Interface (com.sun.jdi)
> - Attach API (com.sun.tools.attach)
> - SCTP API (com.sun.nio.sctp)
> - HTTP server API (com.sun.net.httpserver)
> - Management extensions (com.sun.management)
> - JConsole Plugin API (com.sun.tools.jconsole)
> - JDK-specific API to JAAS (com.sun.security.auth)
> - JDK-specific JGSS API (com.sun.security.jgss)
>
> (The javadoc for each of these APIs is currently generated in the build)
>
> The webrev with the proposed update is here:
> http://cr.openjdk.java.net/~alanb/8008662/webrev.02/
>
> As per the original webrev, I've added package-info.java to a number
> of packages that didn't have any description. In a few cases, I've had
> to rename the legacy package.html to package-info.java.
>
> For the review then the intention is that @jdk.Exported be added to
> the package-info and all public/protected types in these APIs. The
> only exceptions are two cases where I've added @jdk.Exported(false),
> specifically:
>
> - com.sun.management.OSMBeanFactory as it clearly documents to stay away
> - com.sun.security.auth.callback.DialogCallbackHandler as it for the
> chop (see JEP 162)
>
> Thanks,
>
> Alan.
From henry.jen at oracle.com Mon Oct 7 16:50:27 2013
From: henry.jen at oracle.com (henry.jen at oracle.com)
Date: Mon, 07 Oct 2013 23:50:27 +0000
Subject: hg: jdk8/tl/jdk: 8026009: Changes for 8025968 break all stream tests
Message-ID: <20131007235048.ABE8762E19@hg.openjdk.java.net>
Changeset: 0cffe1dab0bf
Author: henryjen
Date: 2013-10-07 15:18 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0cffe1dab0bf
8026009: Changes for 8025968 break all stream tests
Reviewed-by: mduigou
! test/java/util/stream/bootlib/java/util/stream/OpTestCase.java
From joe.darcy at oracle.com Mon Oct 7 16:52:13 2013
From: joe.darcy at oracle.com (joe.darcy at oracle.com)
Date: Mon, 07 Oct 2013 23:52:13 +0000
Subject: hg: jdk8/tl/langtools: 8026017: Make history of AnnotatedConstruct
methods in jx.l.m.e.Element clearer
Message-ID: <20131007235219.1698962E1A@hg.openjdk.java.net>
Changeset: 4dd7ffbf01fb
Author: darcy
Date: 2013-10-07 16:51 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/4dd7ffbf01fb
8026017: Make history of AnnotatedConstruct methods in jx.l.m.e.Element clearer
Reviewed-by: jjg
! src/share/classes/javax/lang/model/element/Element.java
From xuelei.fan at oracle.com Mon Oct 7 18:47:30 2013
From: xuelei.fan at oracle.com (xuelei.fan at oracle.com)
Date: Tue, 08 Oct 2013 01:47:30 +0000
Subject: hg: jdk8/tl/jdk: 6956398: make ephemeral DH key match the length of
the certificate key
Message-ID: <20131008014817.94FEF62E1D@hg.openjdk.java.net>
Changeset: 0d5f4f1782e8
Author: xuelei
Date: 2013-10-07 18:46 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0d5f4f1782e8
6956398: make ephemeral DH key match the length of the certificate key
Reviewed-by: weijun
! src/share/classes/sun/security/ssl/ServerHandshaker.java
+ test/sun/security/ssl/com/sun/net/ssl/internal/ssl/DHKeyExchange/DHEKeySizing.java
From david.holmes at oracle.com Mon Oct 7 20:42:46 2013
From: david.holmes at oracle.com (David Holmes)
Date: Tue, 08 Oct 2013 13:42:46 +1000
Subject: [ping][ping] Re: jmx-dev RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <5252C1B6.2060904@oracle.com>
References: <52308ECC.1050304@oracle.com>
<523138CB.9040401@oracle.com> <52317782.1060300@oracle.com>
<523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com>
<5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com>
<523B0B30.4020003@oracle.com> <5252C1B6.2060904@oracle.com>
Message-ID: <52537F36.8020001@oracle.com>
Jaroslav,
Can you summarise the changes please? With the conversion to Java and
the infrastructure additions I can't tell what is actually fixing the
original timeout issue :)
Thanks,
David
On 8/10/2013 12:14 AM, Jaroslav Bachorik wrote:
> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>> The updated webrev:
>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>
>> I've moved some of the functionality to the testlibrary.
>>
>> -JB -
>>
>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>> Jaroslav,
>>>>
>>>> CustomLauncherTest.java:
>>>>
>>>> 102: this check could be moved to switch at ll. 108
>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>> unset.
>>> Good idea. Thanks.
>>>
>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>> script. Could you prepare a list of VM's to check and just loop over
>>>> it?
>>>> It makes test better readable. Also I think nowdays we can always use
>>>> server VM.
>>> I tried to mirror the original shell test as closely as possible. It
>>> would be nice if we could rely on the "server" vm only. Definitely more
>>> readable.
>>>
>>> -JB-
>>>
>>>> -Dmitry
>>>>
>>>>
>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>> Hi Jaroslav,
>>>>>>>>
>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>
>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>> it to
>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>> come
>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>
>>>>>>>> Is there a reason this test can't run on OSX? I know it would need
>>>>>>>> further modification but was wondering if there is something
>>>>>>>> inherent in
>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>
>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>> hotspot
>>>>>>>> test library's process tools available. :(
>>>>>>> We have some, is there an obvious gap?
>>>>>>>
>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>
>>>>>>>
>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>
>>>>>> Please, stand by for the updated webrev.
>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>> application can recognize its own PID and print it to its stdout. The
>>>>> main application then just reads the stdout to parse the PID. No need
>>>>> for JCMD any more.
>>>>>
>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>> property. According to the jtreg web documentation
>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>> "test.java"
>>>>> system property should be available but in fact is not. But it seems
>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>
>>>>> The test does not run on OSX because nobody built the launcher
>>>>> binary :)
>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>> linux-amd64 launcher while working on the test.
>>>>>
>>>>> While working with the test library I realized I was missing a crucial
>>>>> feature (at least for my purposes) - waiting for a certain message to
>>>>> appear in the stdout/stderr of the launched process. Very often I need
>>>>> to wait for the target process to get to certain point before the test
>>>>> can be allowed to continue - and the point is indicated by a
>>>>> message in
>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>> analyzed after the target process died - and are not suitable for this
>>>>> kind of usage.
>>>>>
>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>
>>>>>> -JB-
>>>>>>
>>>>>>>
>>>>>>> -Chris.
>>>>>>>
>>>>>>>> David
>>>>>>>> -----
>>>>>>>>
>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>
>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>
>>>>>>>>> In order to fix this the test is rewritten in Java - the original
>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>> similarity
>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>> new
>>>>>>>>> source in whole.
>>>>>>>>>
>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>> permissions to
>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> Issue : JDK-8004926
>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>
>>>>>>>>> -JB-
>>>>>>>>>
>>>>
>>
>
From david.holmes at oracle.com Mon Oct 7 23:16:13 2013
From: david.holmes at oracle.com (David Holmes)
Date: Tue, 08 Oct 2013 16:16:13 +1000
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <524D73C4.7060004@oracle.com>
References: <524D73C4.7060004@oracle.com>
Message-ID: <5253A32D.40502@oracle.com>
As I wrote in the bug report I have reservations about this as these are
launcher options not VM options. Plus with the dropping of 32-bit
Solaris the -d32/-d64 part will be moot. That leaves the VM "mode" -
client, server, minimal or whatever might happened to be defined via
jvm.cfg (-server might actually run client VM).
David
On 3/10/2013 11:40 PM, Aleksey Shipilev wrote:
> Hi,
>
> Please take a look at the potential fix for:
> https://bugs.openjdk.java.net/browse/JDK-8025700
>
> The webrev is here:
> http://cr.openjdk.java.net/~shade/8025700/webrev.01/
>
> Rationale: when doing the Java tools which need to replicate the VM
> launch, e.g. fork the JVM with the same set of command line options, we
> need the exact command line. Otherwise we miss the significant part of
> configuration, which confuses people. So far we miss "-server",
> "-client", "-d32", and "-d64" options from there. I have seen troubles
> with jmh and jcstress stemming from this very issue.
>
> Testing:
> - new jtreg test, works fine on Linux x86_64; (I can run other
> platforms as long as the fix approach is sound)
> - jdk/test/tools/launcher jtreg tests on Linux x86_64
>
> Thanks,
> -Aleksey
>
From david.holmes at oracle.com Tue Oct 8 00:34:46 2013
From: david.holmes at oracle.com (David Holmes)
Date: Tue, 08 Oct 2013 17:34:46 +1000
Subject: RFR 6523160: RuntimeMXBean.getUptime() returns negative values
In-Reply-To: <524BDD9E.1050100@oracle.com>
References: <524BDD9E.1050100@oracle.com>
Message-ID: <5253B596.1000206@oracle.com>
Jaroslav,
On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
> Hello,
>
> currently the JVM uptime reported by the RuntimeMXBean is based on
> System.currentTimeMillis() which makes it susceptible to changes of the
> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
> should not depend on the system time and should be calculated using a
> monotonic clock source.
>
> There is already the way to get the actual JVM uptime in ticks. It is
> accessible as Management::timestamp() and the ticks are convertible to
> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it very
> easy to switch to the monotonic clock based uptime.
Maybe I'm missing something but TiumeStamp updates using
os::elapsed_counter() which on Linux uses gettimeofday so is not a
monotonic clock source.
David
-----
> The patch consists of the hotspot and jdk parts.
>
> For the hotspot a new constant needs to be introduced in
> src/share/vm/services/jmm.h and the actual logic to obtain the uptime in
> milliseconds is added in src/share/vm/services/management.cpp.
>
> For the jdk the changes comprise of adding the necessary JNI bridging
> methods in order to get the new uptime, introducing the same constant
> that is used in hotspot and changes to mapfile-vers files in order to
> properly build the native library.
>
> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>
> Thanks,
>
> -JB-
From stefan.karlsson at oracle.com Tue Oct 8 01:58:19 2013
From: stefan.karlsson at oracle.com (Stefan Karlsson)
Date: Tue, 08 Oct 2013 10:58:19 +0200
Subject: Review request: 8025996: Track metaspace usage when metaspace is
expanded
Message-ID: <5253C92B.1030404@oracle.com>
http://cr.openjdk.java.net/~stefank/8025996/webrev.00
Previously, the Metaspace memory usage was only tracked at the end of
the GCs. This causes the MemoryPoolMXBean.getUsageThreshold(?)
functionality to fail for the Metaspace memory pools. This patch adds
tracking of Metaspace usage when a new Metachunk is fetched.
This patch builds upon the patch in:
http://mail.openjdk.java.net/pipermail/hotspot-dev/2013-October/011166.html
Review request: 8024547: MaxMetaspaceSize should limit the committed
memory used by the metaspaces
This patch has been tested with the fix for:
https://bugs.openjdk.java.net/browse/JDK-7196801
NPG: Fix java/lang/management/MemoryMXBean/LowMemoryTest2
The fix for 7196801 will be done in a separate review request since the
test is located in jdk repository and the fix for 8025996 is done in the
hotspot repository.
thanks,
StefanK
From david.holmes at oracle.com Tue Oct 8 02:34:52 2013
From: david.holmes at oracle.com (david.holmes at oracle.com)
Date: Tue, 08 Oct 2013 09:34:52 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8026025: JVM_GetCallerClass allows
Reflection.getCallerClass(int depth) to use
Message-ID: <20131008093543.CF38762E22@hg.openjdk.java.net>
Changeset: 615d83933195
Author: dholmes
Date: 2013-10-08 02:56 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/615d83933195
8026025: JVM_GetCallerClass allows Reflection.getCallerClass(int depth) to use
Reviewed-by: alanb, dholmes, twisti
Contributed-by: mandy.chung at oracle.com
! src/share/vm/prims/jvm.cpp
! src/share/vm/prims/jvm.h
From paul.sandoz at oracle.com Tue Oct 8 02:49:05 2013
From: paul.sandoz at oracle.com (paul.sandoz at oracle.com)
Date: Tue, 08 Oct 2013 09:49:05 +0000
Subject: hg: jdk8/tl/jdk: 8025136: SplittableRandom enchancements
Message-ID: <20131008095033.9061F62E23@hg.openjdk.java.net>
Changeset: b90dcd1a71bf
Author: psandoz
Date: 2013-10-08 11:17 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b90dcd1a71bf
8025136: SplittableRandom enchancements
Reviewed-by: psandoz, martin
Contributed-by: Doug Lea , Guy Steele
! src/share/classes/java/util/Random.java
! src/share/classes/java/util/SplittableRandom.java
! src/share/classes/java/util/concurrent/ThreadLocalRandom.java
From alan.bateman at oracle.com Tue Oct 8 04:13:29 2013
From: alan.bateman at oracle.com (alan.bateman at oracle.com)
Date: Tue, 08 Oct 2013 11:13:29 +0000
Subject: hg: jdk8/tl/jdk: 8024788: (fs) Files.readAllBytes uses FileChannel
which may not be supported by all providers
Message-ID: <20131008111357.0B8C962E2C@hg.openjdk.java.net>
Changeset: 95bb56c61276
Author: alanb
Date: 2013-10-08 10:49 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/95bb56c61276
8024788: (fs) Files.readAllBytes uses FileChannel which may not be supported by all providers
Reviewed-by: chegar
! src/share/classes/java/nio/file/Files.java
! test/java/nio/file/Files/BytesAndLines.java
From jaroslav.bachorik at oracle.com Tue Oct 8 04:33:41 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Tue, 08 Oct 2013 13:33:41 +0200
Subject: [ping][ping] Re: jmx-dev RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <52537F36.8020001@oracle.com>
References: <52308ECC.1050304@oracle.com>
<523138CB.9040401@oracle.com> <52317782.1060300@oracle.com>
<523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com>
<5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com>
<523B0B30.4020003@oracle.com> <5252C1B6.2060904@oracle.com>
<52537F36.8020001@oracle.com>
Message-ID: <5253ED95.20706@oracle.com>
On 8.10.2013 05:42, David Holmes wrote:
> Jaroslav,
>
> Can you summarise the changes please? With the conversion to Java and
> the infrastructure additions I can't tell what is actually fixing the
> original timeout issue :)
The timeout was most caused by using the same file for communication
between java processes in more test cases. When those test cases were
run in parallel the file got rewritten silently and some of the tests
could end up trying to connect to incorrect port in the target
application. I was able to reproduce the timeout by interleaving the
test runs for CustomLauncherTest.sh and LocalManagementTest.sh and
adding an artificial delay to CusteomLauncherTest.sh to allow
LocalManagementTest.sh to change the port in the file.
While it could be fixed by using a different file for each test case I
took the liberty of converting the shell tests to java tests. This
allows me to remove the communication file and, in the end, make the
tests more robust.
CustomLauncherTest.java and LocalManagementTest.java are the tests
converted from shell to java. I decided to convert
LocalManagementTest.sh as well because it has the same problems as the
CustomLauncherTest.sh.
The changes in the testlibrary are about introducing new methods
allowing the tests easily start a process and wait for a certain text
appearing in its stdout/stderr. Using these methods the caller can wait
till the callee is fully initialized and eg. ready to accept connections.
The changes in launchers make the launchers actually executable + I am
adding a linux-amd64 launcher (I needed that one to work on the changes
locally and thought it might be nice to have one more platform covered
by the test).
I've update the webrev to include changes to LocalManagementTest and
TEST.groups (both of those tests require JDK) -
http://cr.openjdk.java.net/~jbachorik/8004926/webrev.05
-JB-
>
> Thanks,
> David
>
> On 8/10/2013 12:14 AM, Jaroslav Bachorik wrote:
>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>> The updated webrev:
>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>
>>> I've moved some of the functionality to the testlibrary.
>>>
>>> -JB -
>>>
>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>> Jaroslav,
>>>>>
>>>>> CustomLauncherTest.java:
>>>>>
>>>>> 102: this check could be moved to switch at ll. 108
>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>>> unset.
>>>> Good idea. Thanks.
>>>>
>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>> script. Could you prepare a list of VM's to check and just loop over
>>>>> it?
>>>>> It makes test better readable. Also I think nowdays we can always use
>>>>> server VM.
>>>> I tried to mirror the original shell test as closely as possible. It
>>>> would be nice if we could rely on the "server" vm only. Definitely more
>>>> readable.
>>>>
>>>> -JB-
>>>>
>>>>> -Dmitry
>>>>>
>>>>>
>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>> Hi Jaroslav,
>>>>>>>>>
>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>
>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>> it to
>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>> come
>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>
>>>>>>>>> Is there a reason this test can't run on OSX? I know it would need
>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>> inherent in
>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>
>>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>>> hotspot
>>>>>>>>> test library's process tools available. :(
>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>
>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>
>>>>>>> Please, stand by for the updated webrev.
>>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>>> application can recognize its own PID and print it to its stdout. The
>>>>>> main application then just reads the stdout to parse the PID. No need
>>>>>> for JCMD any more.
>>>>>>
>>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>>> property. According to the jtreg web documentation
>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>> "test.java"
>>>>>> system property should be available but in fact is not. But it seems
>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>
>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>> binary :)
>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>> linux-amd64 launcher while working on the test.
>>>>>>
>>>>>> While working with the test library I realized I was missing a
>>>>>> crucial
>>>>>> feature (at least for my purposes) - waiting for a certain message to
>>>>>> appear in the stdout/stderr of the launched process. Very often I
>>>>>> need
>>>>>> to wait for the target process to get to certain point before the
>>>>>> test
>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>> message in
>>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>> analyzed after the target process died - and are not suitable for
>>>>>> this
>>>>>> kind of usage.
>>>>>>
>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>
>>>>>>> -JB-
>>>>>>>
>>>>>>>>
>>>>>>>> -Chris.
>>>>>>>>
>>>>>>>>> David
>>>>>>>>> -----
>>>>>>>>>
>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>
>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>
>>>>>>>>>> In order to fix this the test is rewritten in Java - the original
>>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>> similarity
>>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>>> new
>>>>>>>>>> source in whole.
>>>>>>>>>>
>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>> permissions to
>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>
>>>>>>>>>> -JB-
>>>>>>>>>>
>>>>>
>>>
>>
From kevin.walls at oracle.com Tue Oct 8 04:23:51 2013
From: kevin.walls at oracle.com (kevin.walls at oracle.com)
Date: Tue, 08 Oct 2013 11:23:51 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131008112359.C9EF862E30@hg.openjdk.java.net>
Changeset: c90e76575b03
Author: kevinw
Date: 2013-10-08 09:33 +0100
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/c90e76575b03
8019375: Internal symbol table size should be tunable.
Reviewed-by: coleenp, kamg
! agent/src/share/classes/sun/jvm/hotspot/memory/SymbolTable.java
! src/share/vm/classfile/symbolTable.hpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/runtime/vmStructs.cpp
! src/share/vm/utilities/globalDefinitions.hpp
Changeset: ced68a57cdbd
Author: kevinw
Date: 2013-10-08 11:37 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/ced68a57cdbd
Merge
From staffan.larsen at oracle.com Tue Oct 8 05:06:53 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Tue, 8 Oct 2013 14:06:53 +0200
Subject: RFR (S): 8025427 jstat tests fails on 32-bit platforms
In-Reply-To:
References: <7483E09E-5283-412F-BEA3-F7CC015A67DC@oracle.com>
Message-ID:
Pinging again: Please, pretty please? :)
/Staffan
On 1 okt 2013, at 20:46, Staffan Larsen wrote:
> Any Reviewer who can take a look?
>
> Thanks,
> /Staffan
>
> On 27 sep 2013, at 23:59, Staffan Larsen wrote:
>
>> This change makes jstat output '-' instead of '\ufffd' when the result of a calculation is NaN. '\ufffd' is typically not displayable in a terminal.
>>
>> This change also updates the tests to allow '-' as the output int the CCS (Compressed Class Space Space - Percent Used) column from -gcutil and -gccause. It can be hard to see from the diff but what I have done is change the regexp for that column from:
>>
>> [0-9]+\.[0-9]+
>>
>> to:
>>
>> ([0-9]+\.[0-9]+)|-
>>
>> Testing: Passes tests locally, currently running JPRT.
>>
>> webrev: http://cr.openjdk.java.net/~sla/8025427/webrev.00/
>> bug: https://bugs.openjdk.java.net/browse/JDK-8025427
>>
>> Thanks,
>> /Staffan
>
From jaroslav.bachorik at oracle.com Tue Oct 8 05:36:36 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Tue, 08 Oct 2013 14:36:36 +0200
Subject: RFR 6523160: RuntimeMXBean.getUptime() returns negative values
In-Reply-To: <5253B596.1000206@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
Message-ID: <5253FC54.4010407@oracle.com>
On 8.10.2013 09:34, David Holmes wrote:
> Jaroslav,
>
> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>> Hello,
>>
>> currently the JVM uptime reported by the RuntimeMXBean is based on
>> System.currentTimeMillis() which makes it susceptible to changes of the
>> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
>> should not depend on the system time and should be calculated using a
>> monotonic clock source.
>>
>> There is already the way to get the actual JVM uptime in ticks. It is
>> accessible as Management::timestamp() and the ticks are convertible to
>> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it very
>> easy to switch to the monotonic clock based uptime.
>
> Maybe I'm missing something but TiumeStamp updates using
> os::elapsed_counter() which on Linux uses gettimeofday so is not a
> monotonic clock source.
Hm, yes. I wasn't aware of this linux/bsd specific.
Is there any reason why a non monotonic clock source is used for
timestamping except of the historical one? os::javaTimeNanos() uses
montonic clock when available - why can't be the same used for
os::elapsed_counter() especially when a counter based on "gettimeofday"
is not really a counter?
-JB-
>
> David
> -----
>
>
>
>> The patch consists of the hotspot and jdk parts.
>>
>> For the hotspot a new constant needs to be introduced in
>> src/share/vm/services/jmm.h and the actual logic to obtain the uptime in
>> milliseconds is added in src/share/vm/services/management.cpp.
>>
>> For the jdk the changes comprise of adding the necessary JNI bridging
>> methods in order to get the new uptime, introducing the same constant
>> that is used in hotspot and changes to mapfile-vers files in order to
>> properly build the native library.
>>
>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>
>> Thanks,
>>
>> -JB-
From aleksey.shipilev at oracle.com Tue Oct 8 07:39:33 2013
From: aleksey.shipilev at oracle.com (Aleksey Shipilev)
Date: Tue, 08 Oct 2013 18:39:33 +0400
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <5253A32D.40502@oracle.com>
References: <524D73C4.7060004@oracle.com> <5253A32D.40502@oracle.com>
Message-ID: <52541925.5030907@oracle.com>
Yes, I can see that reasoning.
I have the opposite perspective though: I think it is the matter of user
experience, RuntimeMXBean should not care about the launcher/VM
distinction, since what user "perceives" is the JVM launched via "java".
Segregating the launcher and "pure" VM options seems to be exposing the
implementation detail. Thus, this fix actually covers up that glitch.
-Aleksey.
On 10/08/2013 10:16 AM, David Holmes wrote:
> As I wrote in the bug report I have reservations about this as these are
> launcher options not VM options. Plus with the dropping of 32-bit
> Solaris the -d32/-d64 part will be moot. That leaves the VM "mode" -
> client, server, minimal or whatever might happened to be defined via
> jvm.cfg (-server might actually run client VM).
>
> David
>
> On 3/10/2013 11:40 PM, Aleksey Shipilev wrote:
>> Hi,
>>
>> Please take a look at the potential fix for:
>> https://bugs.openjdk.java.net/browse/JDK-8025700
>>
>> The webrev is here:
>> http://cr.openjdk.java.net/~shade/8025700/webrev.01/
>>
>> Rationale: when doing the Java tools which need to replicate the VM
>> launch, e.g. fork the JVM with the same set of command line options, we
>> need the exact command line. Otherwise we miss the significant part of
>> configuration, which confuses people. So far we miss "-server",
>> "-client", "-d32", and "-d64" options from there. I have seen troubles
>> with jmh and jcstress stemming from this very issue.
>>
>> Testing:
>> - new jtreg test, works fine on Linux x86_64; (I can run other
>> platforms as long as the fix approach is sound)
>> - jdk/test/tools/launcher jtreg tests on Linux x86_64
>>
>> Thanks,
>> -Aleksey
>>
From serguei.spitsyn at oracle.com Tue Oct 8 08:24:31 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Tue, 08 Oct 2013 08:24:31 -0700
Subject: RFR (S): 8025427 jstat tests fails on 32-bit platforms
In-Reply-To:
References: <7483E09E-5283-412F-BEA3-F7CC015A67DC@oracle.com>
Message-ID: <525423AF.8030008@oracle.com>
Looks good.
Thanks,
Serguei
On 10/8/13 5:06 AM, Staffan Larsen wrote:
> Pinging again: Please, pretty please? :)
>
> /Staffan
>
> On 1 okt 2013, at 20:46, Staffan Larsen wrote:
>
>> Any Reviewer who can take a look?
>>
>> Thanks,
>> /Staffan
>>
>> On 27 sep 2013, at 23:59, Staffan Larsen wrote:
>>
>>> This change makes jstat output '-' instead of '\ufffd' when the result of a calculation is NaN. '\ufffd' is typically not displayable in a terminal.
>>>
>>> This change also updates the tests to allow '-' as the output int the CCS (Compressed Class Space Space - Percent Used) column from -gcutil and -gccause. It can be hard to see from the diff but what I have done is change the regexp for that column from:
>>>
>>> [0-9]+\.[0-9]+
>>>
>>> to:
>>>
>>> ([0-9]+\.[0-9]+)|-
>>>
>>> Testing: Passes tests locally, currently running JPRT.
>>>
>>> webrev: http://cr.openjdk.java.net/~sla/8025427/webrev.00/
>>> bug: https://bugs.openjdk.java.net/browse/JDK-8025427
>>>
>>> Thanks,
>>> /Staffan
From sundararajan.athijegannathan at oracle.com Tue Oct 8 08:26:34 2013
From: sundararajan.athijegannathan at oracle.com (sundararajan.athijegannathan at oracle.com)
Date: Tue, 08 Oct 2013 15:26:34 +0000
Subject: hg: jdk8/tl/nashorn: 6 new changesets
Message-ID: <20131008152640.B367362E44@hg.openjdk.java.net>
Changeset: 6345d08fd5de
Author: hannesw
Date: 2013-10-08 11:55 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/6345d08fd5de
8025213: Assignment marks variable as defined too early
Reviewed-by: jlaskey, lagergren, sundar
! src/jdk/nashorn/internal/codegen/Attr.java
+ test/script/basic/JDK-8025213.js
+ test/script/basic/JDK-8025213.js.EXPECTED
Changeset: 8c326f8c6799
Author: sundar
Date: 2013-10-08 13:02 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/8c326f8c6799
8026033: Switch should load expression even when there are no cases in it
Reviewed-by: jlaskey, hannesw
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
+ test/script/basic/JDK-8026033.js
+ test/script/basic/JDK-8026033.js.EXPECTED
Changeset: 025e2ff9e91b
Author: hannesw
Date: 2013-10-08 13:11 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/025e2ff9e91b
8025965: Specialized functions with same weight replace each other in TreeSet
Reviewed-by: jlaskey, sundar
! src/jdk/nashorn/internal/runtime/CompiledFunction.java
Changeset: 19dba6637f20
Author: sundar
Date: 2013-10-08 14:57 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/19dba6637f20
8026039: future strict names are allowed as function name and argument name of a strict function
Reviewed-by: hannesw, jlaskey
! src/jdk/nashorn/internal/ir/IdentNode.java
! src/jdk/nashorn/internal/parser/AbstractParser.java
! src/jdk/nashorn/internal/parser/Parser.java
+ test/script/error/JDK-8026039.js
+ test/script/error/JDK-8026039.js.EXPECTED
Changeset: c9921761903b
Author: hannesw
Date: 2013-10-08 15:53 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/c9921761903b
8026042: FoldConstants need to guard against ArrayLiteralNode
Reviewed-by: jlaskey, sundar
! src/jdk/nashorn/internal/codegen/FoldConstants.java
! src/jdk/nashorn/internal/ir/LiteralNode.java
+ test/script/basic/JDK-8026042.js
+ test/script/basic/JDK-8026042.js.EXPECTED
Changeset: 346ba5b8a488
Author: sundar
Date: 2013-10-08 16:46 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/346ba5b8a488
8026048: Function constructor should convert arguments to String before performing any syntax checks
Reviewed-by: jlaskey, hannesw
! src/jdk/nashorn/internal/objects/NativeFunction.java
+ test/script/basic/JDK-8026048.js
From michael.fang at oracle.com Tue Oct 8 09:44:00 2013
From: michael.fang at oracle.com (michael.fang at oracle.com)
Date: Tue, 08 Oct 2013 16:44:00 +0000
Subject: hg: jdk8/tl/jaxp: 2 new changesets
Message-ID: <20131008164405.D673462E49@hg.openjdk.java.net>
Changeset: dbecbb685503
Author: mfang
Date: 2013-10-08 09:22 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/dbecbb685503
8025215: jdk8 l10n resource file translation update 4
Reviewed-by: joehw, yhuang
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_de.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_es.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_fr.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_it.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_ja.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_ko.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_pt_BR.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_sv.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_zh_CN.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_zh_TW.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_de.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_es.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_fr.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_it.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_ja.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_ko.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_pt_BR.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_sv.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_zh_CN.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_zh_TW.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_pt_BR.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sv.java
! src/com/sun/org/apache/xerces/internal/impl/msg/JAXPValidationMessages_it.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_de.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_es.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_fr.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_it.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_ja.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_ko.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_pt_BR.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_sv.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_zh_CN.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLMessages_zh_TW.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_de.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_es.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_fr.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_it.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_ja.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_ko.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_pt_BR.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_sv.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_zh_CN.properties
! src/com/sun/org/apache/xerces/internal/impl/msg/XMLSchemaMessages_zh_TW.properties
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_de.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_es.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_fr.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_it.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_ja.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_ko.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_pt_BR.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_sv.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_zh_CN.java
! src/com/sun/org/apache/xml/internal/res/XMLErrorResources_zh_TW.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_de.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_es.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_fr.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_it.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_ja.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_ko.java
+ src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_pt_BR.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_sv.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_zh_CN.java
! src/com/sun/org/apache/xml/internal/serializer/utils/SerializerMessages_zh_TW.java
! src/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_es.java
! src/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_ja.java
! src/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_pt_BR.java
! src/com/sun/org/apache/xpath/internal/res/XPATHErrorResources_sv.java
Changeset: 1c074a0c2b97
Author: mfang
Date: 2013-10-08 09:24 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/1c074a0c2b97
Merge
From staffan.larsen at oracle.com Tue Oct 8 10:04:50 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Tue, 8 Oct 2013 19:04:50 +0200
Subject: RFR (S): 8025427 jstat tests fails on 32-bit platforms
In-Reply-To: <525423AF.8030008@oracle.com>
References: <7483E09E-5283-412F-BEA3-F7CC015A67DC@oracle.com>
<525423AF.8030008@oracle.com>
Message-ID: <35223AD7-3203-4308-B6C7-7D2258FE31CB@oracle.com>
Thanks Serguei!
Still need an official Reviewer.
Thanks,
/Staffan
On 8 okt 2013, at 17:24, serguei.spitsyn at oracle.com wrote:
> Looks good.
>
> Thanks,
> Serguei
>
> On 10/8/13 5:06 AM, Staffan Larsen wrote:
>> Pinging again: Please, pretty please? :)
>>
>> /Staffan
>>
>> On 1 okt 2013, at 20:46, Staffan Larsen wrote:
>>
>>> Any Reviewer who can take a look?
>>>
>>> Thanks,
>>> /Staffan
>>>
>>> On 27 sep 2013, at 23:59, Staffan Larsen wrote:
>>>
>>>> This change makes jstat output '-' instead of '\ufffd' when the result of a calculation is NaN. '\ufffd' is typically not displayable in a terminal.
>>>>
>>>> This change also updates the tests to allow '-' as the output int the CCS (Compressed Class Space Space - Percent Used) column from -gcutil and -gccause. It can be hard to see from the diff but what I have done is change the regexp for that column from:
>>>>
>>>> [0-9]+\.[0-9]+
>>>>
>>>> to:
>>>>
>>>> ([0-9]+\.[0-9]+)|-
>>>>
>>>> Testing: Passes tests locally, currently running JPRT.
>>>>
>>>> webrev: http://cr.openjdk.java.net/~sla/8025427/webrev.00/
>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8025427
>>>>
>>>> Thanks,
>>>> /Staffan
>
From aleksey.timofeev at oracle.com Tue Oct 8 15:14:56 2013
From: aleksey.timofeev at oracle.com (aleksey.timofeev at oracle.com)
Date: Wed, 09 Oct 2013 02:14:56 +0400
Subject: Fix to 8025925
In-Reply-To: <92711177-AFA2-4719-8834-EEE40FA20B92@oracle.com>
References: <5252C9DE.8030402@oracle.com> <5252D10E.7070405@oracle.com>
<92711177-AFA2-4719-8834-EEE40FA20B92@oracle.com>
Message-ID: <525483E0.7040506@oracle.com>
Hello.
I prepared a little fix to JDK-8025925
. Find webrev here
please:
http://cr.openjdk.java.net/~iignatyev/atimofeev/8025925/webrev.00/index.html
(now it's on open server). Staffan Larsen generously agreed to sponsor
this commit if we conclude everything is OK. Please your provide feedback.
--
Best regards, Aleksey Timofeev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131009/347deb58/attachment.html
From coleen.phillimore at oracle.com Tue Oct 8 11:27:04 2013
From: coleen.phillimore at oracle.com (Coleen Phillimore)
Date: Tue, 08 Oct 2013 14:27:04 -0400
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not handled
in ConstantPool::,compare_entry_to and copy_entry_to
Message-ID: <52544E78.9090103@oracle.com>
Summary: Add missing cases.
I verified this with the test for
https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to copy
the test into with modifications the hotspot repository, still working
on refactoring the test for the JDK repository for after this gets pushed.
open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
bug link https://bugs.openjdk.java.net/browse/JDK-8025185
Thanks,
Coleen
From ivan.gerasimov at oracle.com Tue Oct 8 13:34:47 2013
From: ivan.gerasimov at oracle.com (Ivan Gerasimov)
Date: Wed, 09 Oct 2013 00:34:47 +0400
Subject: RFR [8025886] typo in shell regtest == instead of =
In-Reply-To: <52504CB4.9090103@oracle.com>
References: <524D7AF6.2000705@oracle.com> <524EA7D1.7030908@oracle.com>
<52500E4D.6020307@oracle.com> <52504CB4.9090103@oracle.com>
Message-ID: <52546C67.7090904@oracle.com>
Thanks, Dmitry!
I assume I still need an approval from the Reviewer.
Sincerely yours,
Ivan
On 05.10.2013 21:30, Dmitry Samersoff wrote:
> Ivan,
>
> Looks good for me.
>
> -Dmitry
>
> On 2013-10-05 17:04, Ivan Gerasimov wrote:
>> Dmitry, thanks for suggestion!
>>
>> Yes, == comparison isn't the only sh-incompatible thing in the script.
>> Sh may be unhappy with [[ as well.
>> So I replaced it with case as you suggested.
>> Grep shows that it was the only place where [[ and == were used in
>> regtests, so it would be good to make things consistent.
>>
>> Please find a new patch below.
>>
>> Sincerely yours,
>> Ivan
>>
>> --- a/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
>> +++ b/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
>> @@ -34,12 +34,13 @@
>> OS=`uname -s`
>> UMASK=`umask`
>>
>> -if [[ $OS == CYGWIN_NT* ]] ; then
>> +case $OS in
>> +CYGWIN_NT*)
>> OS="Windows_NT"
>> if [ -z "$SystemRoot" ] ; then
>> - SystemRoot=$SYSTEMROOT
>> + SystemRoot=$SYSTEMROOT
>> fi
>> -fi
>> +esac
>>
>> case $OS in
>> SunOS | Linux | Darwin)
>>
>>
>>
>> On 04.10.2013 15:34, Dmitry Samersoff wrote:
>>> Ivan,
>>>
>>> If you need shell pattern match CYGWIN_NT*
>>> it's better to use
>>>
>>> case
>>>
>>> but not
>>>
>>> if
>>>
>>> -Dmitry
>>>
>>>
>
From serguei.spitsyn at oracle.com Tue Oct 8 13:56:30 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Tue, 08 Oct 2013 13:56:30 -0700
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not handled
in ConstantPool::,compare_entry_to and copy_entry_to
In-Reply-To: <52544E78.9090103@oracle.com>
References: <52544E78.9090103@oracle.com>
Message-ID: <5254717E.7000502@oracle.com>
It looks good.
A question:
1011 case JVM_CONSTANT_MethodType:
1012 {
1013 int k1 = method_type_index_at_error_ok(index1);
1014 int k2 = cp2->method_type_index_at_error_ok(index2);
. . .
1021 case JVM_CONSTANT_MethodHandle:
1022 {
1023 int k1 = method_handle_ref_kind_at_error_ok(index1);
1024 int k2 = cp2->method_handle_ref_kind_at_error_ok(index2);
Should the above include InError variants ?:
1011 case JVM_CONSTANT_MethodType:
case JVM_CONSTANT_MethodTypeInError:
1012 {
1013 int k1 = method_type_index_at_error_ok(index1);
1014 int k2 = cp2->method_type_index_at_error_ok(index2);
. . .
1021 case JVM_CONSTANT_MethodHandle:
case JVM_CONSTANT_MethodHandleInError:
1022 {
1023 int k1 = method_handle_ref_kind_at_error_ok(index1);
1024 int k2 = cp2->method_handle_ref_kind_at_error_ok(index2);
Thanks,
Serguei
On 10/8/13 11:27 AM, Coleen Phillimore wrote:
> Summary: Add missing cases.
>
> I verified this with the test for
> https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to
> copy the test into with modifications the hotspot repository, still
> working on refactoring the test for the JDK repository for after this
> gets pushed.
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
> bug link https://bugs.openjdk.java.net/browse/JDK-8025185
>
> Thanks,
> Coleen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131008/2b83cd73/attachment.html
From david.holmes at oracle.com Tue Oct 8 14:46:12 2013
From: david.holmes at oracle.com (David Holmes)
Date: Wed, 09 Oct 2013 07:46:12 +1000
Subject: RFR 6523160: RuntimeMXBean.getUptime() returns negative values
In-Reply-To: <5253FC54.4010407@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com>
Message-ID: <52547D24.9060806@oracle.com>
On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
> On 8.10.2013 09:34, David Holmes wrote:
>> Jaroslav,
>>
>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>> Hello,
>>>
>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>> System.currentTimeMillis() which makes it susceptible to changes of the
>>> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
>>> should not depend on the system time and should be calculated using a
>>> monotonic clock source.
>>>
>>> There is already the way to get the actual JVM uptime in ticks. It is
>>> accessible as Management::timestamp() and the ticks are convertible to
>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it very
>>> easy to switch to the monotonic clock based uptime.
>>
>> Maybe I'm missing something but TiumeStamp updates using
>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>> monotonic clock source.
>
> Hm, yes. I wasn't aware of this linux/bsd specific.
>
> Is there any reason why a non monotonic clock source is used for
> timestamping except of the historical one? os::javaTimeNanos() uses
> montonic clock when available - why can't be the same used for
> os::elapsed_counter() especially when a counter based on "gettimeofday"
> is not really a counter?
It is all historical. These elapsed_counters and elapsed_timers make me
cringe. But changing it has a lot of potential consequences because of
the way these are used in logging etc. Certainly not something to be
contemplated at this stage of JDK 8.
Perhaps a simpler fix here is to expose a startUpTimeNanos that can then
be used for the uptime.
David
> -JB-
>
>>
>> David
>> -----
>>
>>
>>
>>> The patch consists of the hotspot and jdk parts.
>>>
>>> For the hotspot a new constant needs to be introduced in
>>> src/share/vm/services/jmm.h and the actual logic to obtain the uptime in
>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>
>>> For the jdk the changes comprise of adding the necessary JNI bridging
>>> methods in order to get the new uptime, introducing the same constant
>>> that is used in hotspot and changes to mapfile-vers files in order to
>>> properly build the native library.
>>>
>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>
>>> Thanks,
>>>
>>> -JB-
>
From karen.kinnear at oracle.com Tue Oct 8 15:23:51 2013
From: karen.kinnear at oracle.com (karen.kinnear at oracle.com)
Date: Tue, 08 Oct 2013 22:23:51 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8026022: Verifier: allow anon classes to
invokespecial host class/intf methods.
Message-ID: <20131008222357.8FF6862E68@hg.openjdk.java.net>
Changeset: c72075c2883e
Author: acorn
Date: 2013-10-08 16:58 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/c72075c2883e
8026022: Verifier: allow anon classes to invokespecial host class/intf methods.
Reviewed-by: coleenp, bharadwaj
! src/share/vm/classfile/verifier.cpp
From daniel.daugherty at oracle.com Tue Oct 8 15:59:57 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Tue, 08 Oct 2013 16:59:57 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <524B8A78.9040807@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
Message-ID: <52548E6D.80701@oracle.com>
Sorry for the delay in getting back to this. I've been side tracked by
other tasks.
I've made all the changes needed to address most of the comments
below, but I still have to double check and test...
On 10/1/13 8:52 PM, David Holmes wrote:
> Hi Dan,
>
> Overall thumbs up.
Thanks!
> A couple of minor issues that need fixing.
Will address those below...
> A few meta-comments (I hate seeing all this stuff duplicated again and
> again.
Agreed that the duplication is bad (as before), but there is some
hope that this stuff will get refactored...
>
> David
> -----
>
> - common/autoconf/hotspot-spec.gmk.in
>
> Seems a good simplification.
>
> ----
>
> - common/autoconf/jdk-options.m4
>
> No comment.
>
> ---
>
> - common/makefiles/NativeCompilation.gmk
>
> So JDK .diz support is phase 2? :)
Yes, phase 2 if someone gets to it (probably me again).
> The Windows changes here seem okay given that on windows a .debuginfo
> file should never be in the target list.
Right, I happened to notice that the .debuginfo file logic was not
being excluded on Windows. Yes, this is the MacOS X bug, but I figured
I would clean it up while I was there.
> ---
>
> - hotspot/make/Makefile
>
> + $(EXPORT_CLIENT_DIR)/%.dSYM: $(MINIMAL1_BUILD_DIR)/%.dSYM
>
> EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
>
> For fun you can try building minimal on OSX, but I don't know how far
> you will get:
>
> --with-jvm-variants=client,server,minimal1
>
> I'll point out obvious issues with minimal VM support anyway.
Since you pointed out in a later email that minimal1 isn't
supported on MacOS X, I'm going to drop those changes. I'm
going to leave the Client VM support since there are folks
out in OpenJDK trying to get the Client VM working on MacOS X.
It does look like someone added minimal1 support for other
non-Linux platforms, but I'm not planning to clean that up.
> ---
>
> - hotspot/make/bsd/Makefile
>
> No comment.
>
> - hotspot/make/bsd/makefiles/buildtree.make
>
> No comment.
>
> - make/bsd/makefiles/defs.make
>
> Note that the whole jdk6_or_earlier logic is defunct as this will
> never be used for jdk6 or earlier. But best to clean all that up at
> the one time.
Agreed that we (Oracle) currently don't have plans to drop HSX-25 into
JDK6 or OpenJDK6, but I don't want to rule out future insanity.
Also agreed that cleaning up that logic should all be done at the same
time using a different bug ID.
> Sadly I never found a satisfactory solution to the multiplicity and
> verbosity of the FDS messages, so OSX builds will now be afflicted by
> them too.
Also agreed, I've read your emails on that topic a few times, but
nothing springs to mind...
>
> 328 else
> 329 EXPORT_LIST += $(EXPORT_MINIMAL_DIR)/libjvm.debuginfo
> 330 endif
>
> This pre-existing minimal VM code needs to be modified to reference
> the dSYM directory on OSX as per the client/server cases.
Since MacOS X doesn't support the minimal1 config, I've dropped that
block of logic. Perhaps another bug should be used to remove all
mention of minimal1 config from the MacOS X/BSD makefiles.
> ---
>
> - hotspot/make/bsd/makefiles/dtrace.make
>
> Note related to your changes but I don't think any of the "64"
> directory stuff has any meaning outside of Solaris.
And now that 32-bit Solaris support is being dropped, this whole '64'
subdir stuff might become obsolete/moot.
> 102 dsymutil $@
>
> I think dsymutil should be assigned to a variable in the platform
> defs.make as with other tools.
Good idea. It surprised me when the original Makefiles had this
non-macro'ized call to dsymutil, but I went ahead and simply
refactored the existing call (and copied it).
I'll figure out how/where to fix it.
> Would be nice if objcopy/dsymutil could be hidden behind a single
> SYM_TOOL variables as well so there wasn't so much duplication of the
> process. You could have a single set of instructions to invoke
> SYM_TOOL, STRIP and ZIP (strip would be skipped of course because
> STRIP_POLICY would never be set on osx). Just wishful thinking ...
Could/should be done when the other refactoring is done to remove
duplication.
>
> ---
>
> - hotspot/make/bsd/makefiles/gcc.make
>
> + FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
>
> should be
>
> + FASTDEBUG_CFLAGS += $(FASTDEBUG_CFLAGS/$(BUILDARCH))
Thanks for catching the cut-n-paste typo...
>
> Don't we need the USE_CLANG variations here as for linux?
I suppose. I was trying to ignore CLANG, but I'll go ahead and
drop in the changes (untested).
> ---
>
> - hotspot/make/bsd/makefiles/jsig.make
> - hotspot/make/bsd/makefiles/saproc.make
>
> Similar comments to dtrace.make
Fixed the literal 'dsymutil' usages.
>
> ---
>
> - make/bsd/makefiles/universal.gmk
>
> I did not understand the additional logic here:
>
> 63 # Copy built non-universal binaries in place
> 64 $(UNIVERSAL_COPY_LIST):
> 65 BUILT_COPY_FILES="`find
> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
> 2>/dev/null`"; \
> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
> 67 for i in $${BUILT_COPY_FILES}; do \
> 68 if [ -f $${i} ]; then \
> 69 $(MKDIR) -p $(shell dirname $@); \
> 70 $(CP) -R $${i} $@; \
> 71 fi; \
> 72 if [ -d $${i} ]; then \
> 73 $(MKDIR) -p $@; \
> 74 fi; \
> 75 done; \
> 76 fi
>
> until I realized that foo.dSYM is a directory not a file! Even so
> don't you want to copy the contents of the directory across ?
BUILT_COPY_FILES includes both files and directories so everything
should get copied across. I've added some commments to the rule
header and reorganized the logic a bit to hopefully be more clear.
> BTW: UNIVERSAL_COPY_LIST doesn't handle minimal VM.
That's a good thing. :-)
>
> ---
>
> - make/bsd/makefiles/vm.make
>
> Similar comments to dtrace.make ref dsymutil.
Fixed the literal 'dsymutil' usages.
>
> ---
>
> - hotspot/make/defs.make
>
> No comment.
>
> ---
>
> - jdk/make/common/Defs-macosx.gmk
>
> No comment
>
> - jdk/makefiles/Tools.gmk
>
> Not sure about this one. Logically is seems correct but up to now this
> has been defined for everything without it seeming to cause a problem.
> So why do we need to change it and what impact will it have?
It just seemed wrong to define something that should never be used
on non-Solaris platforms. My control build of the entire forest
didn't have an issue with this change so I'm planning to keep it.
Dan
>
> David
> -----
>
> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
>> Greetings,
>>
>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>> and ready for review:
>>
>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>
>> Here is the JDK8/HSX-25 webrev URL:
>>
>> OpenJDK:
>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>> Internal:
>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>
>> This webrev includes changes for the follow repos:
>>
>> jdk8
>> jdk8/hotspot
>> jdk8/jdk
>> jdk8/jdk/make/closed
>>
>> Once these changes are approved, I'm planning to push them to
>> RT_Baseline. From there, they can follow the normal path to
>> Main_Baseline and eventually JDK8.
>>
>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>> the other repos are necessary to support importing the .diz files from
>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>> FDS related errors in the magic incantations for the new build. This is
>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>> from Solaris. In other words, this is Frankenstein's monster...
>>
>> Thanks to Staffan Larsen for providing an initial set of changes
>> which I morphed into what you see here.
>>
>> Testing:
>> - JPRT HSX build and test on all platforms; verification of .diz
>> files in the MacOS X JPRT bundles
>> - JPRT JDK8 forest build and test on all platforms; verification of
>> .diz files in the MacOS X JPRT bundles
>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>> repo build and test, but that no longer seems to work.
>>
>> As always, comments, questions and suggestions are welcome.
>>
>> Dan
From coleen.phillimore at oracle.com Tue Oct 8 15:54:45 2013
From: coleen.phillimore at oracle.com (Coleen Phillimore)
Date: Tue, 08 Oct 2013 18:54:45 -0400
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not handled
in ConstantPool::,compare_entry_to and copy_entry_to
In-Reply-To: <5254717E.7000502@oracle.com>
References: <52544E78.9090103@oracle.com> <5254717E.7000502@oracle.com>
Message-ID: <52548D35.50105@oracle.com>
Hi Serguei, Thanks again for the prompt code review.
On 10/08/2013 04:56 PM, serguei.spitsyn at oracle.com wrote:
> It looks good.
> A question:
>
> 1011 case JVM_CONSTANT_MethodType:
> 1012 {
> 1013 int k1 = method_type_index_at_error_ok(index1);
> 1014 int k2 = cp2->method_type_index_at_error_ok(index2);
> . . .
> 1021 case JVM_CONSTANT_MethodHandle:
> 1022 {
> 1023 int k1 = method_handle_ref_kind_at_error_ok(index1);
> 1024 int k2 = cp2->method_handle_ref_kind_at_error_ok(index2);
> Should the above include InError variants ?:
> 1011 case JVM_CONSTANT_MethodType:
> case JVM_CONSTANT_MethodTypeInError:
> 1012 {
> 1013 int k1 = method_type_index_at_error_ok(index1);
> 1014 int k2 = cp2->method_type_index_at_error_ok(index2);
> . . .
> 1021 case JVM_CONSTANT_MethodHandle:
> case JVM_CONSTANT_MethodHandleInError:
> 1022 {
> 1023 int k1 = method_handle_ref_kind_at_error_ok(index1);
> 1024 int k2 = cp2->method_handle_ref_kind_at_error_ok(index2);
No, because I normalize these InError constant pool entries above, so
they won't be found.
thanks,
Coleen
>
> Thanks,
> Serguei
>
>
>
> On 10/8/13 11:27 AM, Coleen Phillimore wrote:
>> Summary: Add missing cases.
>>
>> I verified this with the test for
>> https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to
>> copy the test into with modifications the hotspot repository, still
>> working on refactoring the test for the JDK repository for after this
>> gets pushed.
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
>> bug link https://bugs.openjdk.java.net/browse/JDK-8025185
>>
>> Thanks,
>> Coleen
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131008/9a657a02/attachment-0001.html
From serguei.spitsyn at oracle.com Tue Oct 8 16:09:56 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Tue, 08 Oct 2013 16:09:56 -0700
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not handled
in ConstantPool::,compare_entry_to and copy_entry_to
In-Reply-To: <52548D35.50105@oracle.com>
References: <52544E78.9090103@oracle.com> <5254717E.7000502@oracle.com>
<52548D35.50105@oracle.com>
Message-ID: <525490C4.9050402@oracle.com>
On 10/8/13 3:54 PM, Coleen Phillimore wrote:
>
> Hi Serguei, Thanks again for the prompt code review.
>
> On 10/08/2013 04:56 PM, serguei.spitsyn at oracle.com wrote:
>> It looks good.
>> A question:
>>
>> 1011 case JVM_CONSTANT_MethodType:
>> 1012 {
>> 1013 int k1 = method_type_index_at_error_ok(index1);
>> 1014 int k2 = cp2->method_type_index_at_error_ok(index2);
>> . . .
>> 1021 case JVM_CONSTANT_MethodHandle:
>> 1022 {
>> 1023 int k1 = method_handle_ref_kind_at_error_ok(index1);
>> 1024 int k2 = cp2->method_handle_ref_kind_at_error_ok(index2);
>> Should the above include InError variants ?:
>> 1011 case JVM_CONSTANT_MethodType:
>> case JVM_CONSTANT_MethodTypeInError:
>> 1012 {
>> 1013 int k1 = method_type_index_at_error_ok(index1);
>> 1014 int k2 = cp2->method_type_index_at_error_ok(index2);
>> . . .
>> 1021 case JVM_CONSTANT_MethodHandle:
>> case JVM_CONSTANT_MethodHandleInError:
>> 1022 {
>> 1023 int k1 = method_handle_ref_kind_at_error_ok(index1);
>> 1024 int k2 = cp2->method_handle_ref_kind_at_error_ok(index2);
>
> No, because I normalize these InError constant pool entries above, so
> they won't be found.
Right.
Thanks!
Serguei
> thanks,
> Coleen
>>
>> Thanks,
>> Serguei
>>
>>
>>
>> On 10/8/13 11:27 AM, Coleen Phillimore wrote:
>>> Summary: Add missing cases.
>>>
>>> I verified this with the test for
>>> https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to
>>> copy the test into with modifications the hotspot repository, still
>>> working on refactoring the test for the JDK repository for after
>>> this gets pushed.
>>>
>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
>>> bug link https://bugs.openjdk.java.net/browse/JDK-8025185
>>>
>>> Thanks,
>>> Coleen
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131008/3cc51bfe/attachment.html
From rob.mckenna at oracle.com Tue Oct 8 16:12:59 2013
From: rob.mckenna at oracle.com (rob.mckenna at oracle.com)
Date: Tue, 08 Oct 2013 23:12:59 +0000
Subject: hg: jdk8/tl/jdk: 7180557: InetAddress.getLocalHost throws
UnknownHostException on java7u5 on OSX webbugs
Message-ID: <20131008231322.E3E2662E6A@hg.openjdk.java.net>
Changeset: f1e31376f419
Author: robm
Date: 2013-10-09 00:10 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f1e31376f419
7180557: InetAddress.getLocalHost throws UnknownHostException on java7u5 on OSX webbugs
Reviewed-by: chegar, dsamersoff
! src/solaris/native/java/net/Inet4AddressImpl.c
! src/solaris/native/java/net/Inet6AddressImpl.c
From david.holmes at oracle.com Tue Oct 8 18:04:41 2013
From: david.holmes at oracle.com (David Holmes)
Date: Wed, 09 Oct 2013 11:04:41 +1000
Subject: jmx-dev Codereview request: 8025207 Intermittent test failure:
javax/management/monitor/CounterMonitorThresholdTest.java
References: 52415BE3.1030803@oracle.com
Message-ID: <5254ABA9.6010405@oracle.com>
shanliang wrote:
> Daniel Fuchs wrote:
>> On 9/23/13 8:27 PM, shanliang wrote:
>>> Hi,
>>>
>>> Please review this test fix, if the test continues failing, then we need
>>> to investigate the Monitor implementation.
>>>
>>> webrev: http://cr.openjdk.java.net/~sjiang/JDK-8025207/00/
>>> bug: https://bugs.openjdk.java.net/browse/JDK-8025207
>>>
>>> Thanks,
>>> Shanliang
>>>
>>
>> Hi Shanliang,
>>
>> There seems to an issue in the exit condition of the loop in the
>> new code.
>>
>> The old code had:
>>
>> 150 if (derivedGaugeValue.intValue() != derivedGauge[i])
>>
>> the new code has:
>>
>> 155 } while (derivedGaugeValue.intValue() != counter[i]);
> Good catch, I changed the code, even they are same today:
> Here is the new version:
> http://cr.openjdk.java.net/~sjiang/JDK-8025207/01/
My concern here is that if the test times out and is killed by the test
harness, there is absolutely nothing to indicate where the test got
stuck. So I would suggest at least adding a println before entering the
loop and again after.
David
-----
From david.holmes at oracle.com Tue Oct 8 18:15:19 2013
From: david.holmes at oracle.com (David Holmes)
Date: Wed, 09 Oct 2013 11:15:19 +1000
Subject: jmx-dev Codereview request: 8025206 IIntermittent test failure:
javax/management/monitor/NullAttributeValueTest.java
References: 52493592.1030504@oracle.com
Message-ID: <5254AE27.4060303@oracle.com>
Shanliang writes:
> Daniel Fuchs wrote:
>> Hi Shanliang,
>>
>> Shouldn't 'messageReceived' be at least declared as volatile?
>> It looks as if this test is a multi-thread test which
>> is not MT-safe.
> OK I am convinced:
> http://cr.openjdk.java.net/~sjiang/JDK-8025206/02/
The volatile is definitely needed if the field is written/read by
different threads.
I think the rule is to not use @author tags in OpenJDK code.
This comment is not needed:
288 // See 8025206
but I think the bug number should be added to the @bug line.
Otherwise seems reasonable.
Reviewed.
David
From david.holmes at oracle.com Tue Oct 8 18:20:36 2013
From: david.holmes at oracle.com (David Holmes)
Date: Wed, 09 Oct 2013 11:20:36 +1000
Subject: Codereview request: 8025205 Intermittent test failure:
javax/management/remote/mandatory/connection/BrokenConnectionTest.java
References: 5240881E.4060204@oracle.com
Message-ID: <5254AF64.3020702@oracle.com>
Shanliang writes:
> Hi,
>
> Simply wait longer time for a broken notif.
>
> webrev: http://cr.openjdk.java.net/~sjiang/JDK-8025205/00/
> bug: https://bugs.openjdk.java.net/browse/JDK-8025205
The new loop seems okay - and there is a println to aid in the timeout case.
Not sure about the extra Thread.sleep(1000), seems somewhat ad-hoc, but
I'm unclear about where these extra notifications might come from or how
long is a reasonable time to wait to see that there are none. Let's just
see how this plays out in testing. (I assume you will be keeping a close
eye on all new results :) ).
Reviewed.
David
From david.holmes at oracle.com Tue Oct 8 18:28:22 2013
From: david.holmes at oracle.com (David Holmes)
Date: Wed, 09 Oct 2013 11:28:22 +1000
Subject: Codereview request: 8025204 Intermittent test failure:
javax/management/remote/mandatory/connection/IdleTimeoutTest.java
Message-ID: <5254B136.5070705@oracle.com>
Shanliang writes:
> Hi,
>
> Simply wait longer time for a broken notif.
>
> webrev: http://cr.openjdk.java.net/~sjiang/JDK-8025205/00/
> bug: https://bugs.openjdk.java.net/browse/JDK-8025205
! // no deadline here, let's wait till either the connId
is removed
! // or the test timeout (jprt kills the test)!
! // see 8025204
The comment loses context if you don't know what the code previously
did. I suggest using the simpler form you used in other tests eg:
// pass or timed out by test harness - see XXXX
Note it isn't JPRT that normally kills these but the jtreg harness.
Style nit:
} while(ids
space needed after 'while'
} while (ids
David
-----
From staffan.larsen at oracle.com Wed Oct 9 00:04:20 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Wed, 9 Oct 2013 09:04:20 +0200
Subject: Fix to 8025925
In-Reply-To: <525483E0.7040506@oracle.com>
References: <5252C9DE.8030402@oracle.com> <5252D10E.7070405@oracle.com>
<92711177-AFA2-4719-8834-EEE40FA20B92@oracle.com>
<525483E0.7040506@oracle.com>
Message-ID:
Looks good to me, but I'd like Thomas' opinion as well.
Thanks,
/Staffan
On 9 okt 2013, at 00:14, aleksey.timofeev at oracle.com wrote:
> Hello.
>
> I prepared a little fix to JDK-8025925. Find webrev here please: http://cr.openjdk.java.net/~iignatyev/atimofeev/8025925/webrev.00/index.html (now it's on open server). Staffan Larsen generously agreed to sponsor this commit if we conclude everything is OK. Please your provide feedback.
>
> --
> Best regards, Aleksey Timofeev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131009/d908b55a/attachment.html
From joel.franck at oracle.com Wed Oct 9 00:08:53 2013
From: joel.franck at oracle.com (joel.franck at oracle.com)
Date: Wed, 09 Oct 2013 07:08:53 +0000
Subject: hg: jdk8/tl/langtools: 8024415: Bug in javac Pretty: Wrong precedence
in JCConditional trees
Message-ID: <20131009070900.731AD62E73@hg.openjdk.java.net>
Changeset: ea000904db62
Author: alundblad
Date: 2013-10-08 15:33 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/ea000904db62
8024415: Bug in javac Pretty: Wrong precedence in JCConditional trees
Summary: Fixed precedence and associativity issues with pretty printing of JCConditional expressions.
Reviewed-by: jfranck
Contributed-by: Andreas Lundblad , Matthew Dempsky
! src/share/classes/com/sun/tools/javac/tree/Pretty.java
+ test/tools/javac/tree/T8024415.java
From shanliang.jiang at oracle.com Wed Oct 9 00:42:21 2013
From: shanliang.jiang at oracle.com (shanliang)
Date: Wed, 09 Oct 2013 09:42:21 +0200
Subject: jmx-dev Codereview request: 8025207 Intermittent test failure:
javax/management/monitor/CounterMonitorThresholdTest.java
In-Reply-To: <5254ABA9.6010405@oracle.com>
References: 52415BE3.1030803@oracle.com <5254ABA9.6010405@oracle.com>
Message-ID: <525508DD.6070108@oracle.com>
David Holmes wrote:
> shanliang wrote:
>> Daniel Fuchs wrote:
>>> On 9/23/13 8:27 PM, shanliang wrote:
>>>> Hi,
>>>>
>>>> Please review this test fix, if the test continues failing, then we
>>>> need
>>>> to investigate the Monitor implementation.
>>>>
>>>> webrev: http://cr.openjdk.java.net/~sjiang/JDK-8025207/00/
>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8025207
>>>>
>>>> Thanks,
>>>> Shanliang
>>>>
>>>
>>> Hi Shanliang,
>>>
>>> There seems to an issue in the exit condition of the loop in the
>>> new code.
>>>
>>> The old code had:
>>>
>>> 150 if (derivedGaugeValue.intValue() != derivedGauge[i])
>>>
>>> the new code has:
>>>
>>> 155 } while (derivedGaugeValue.intValue() != counter[i]);
>> Good catch, I changed the code, even they are same today:
>> Here is the new version:
>> http://cr.openjdk.java.net/~sjiang/JDK-8025207/01/
>
> My concern here is that if the test times out and is killed by the
> test harness, there is absolutely nothing to indicate where the test
> got stuck. So I would suggest at least adding a println before
> entering the loop and again after.
I think today the test gives info about each test step:
Line 139:
System.out.println("\nStart monitoring...");
tells the looping entry
Line 146:
System.out.println("\nCounter = " + mbean.getCounter());
within the loop tells which counter value is being tested.
Line 156:
System.out.println("Threshold = " + thresholdValue);
within the loop tells the test end of a count value.
Line 168:
System.out.println("\nStop monitoring...");
tells the looping end.
and the class Listener prints out notification info allowing to know
where is testing too.
Thanks,
Shanliang
>
> David
> -----
From mandy.chung at oracle.com Wed Oct 9 00:46:19 2013
From: mandy.chung at oracle.com (Mandy Chung)
Date: Wed, 09 Oct 2013 00:46:19 -0700
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <52541925.5030907@oracle.com>
References: <524D73C4.7060004@oracle.com> <5253A32D.40502@oracle.com>
<52541925.5030907@oracle.com>
Message-ID: <525509CB.1050301@oracle.com>
Hi Aleksey,
Like David said, -client/-server and -d32/-d64 are launcher option but
not VM options. RuntimeMXBean.getInputArguments() returns the arguments
passed to the VM which is created via the JNI_CreateJavaVM API.
-client/-server is the java launcher option that determines which VM to
load and initialize and it's not an option passed to the JVM. In
addition, -client/-server is actually not a valid option to the hotspot
VM. Instead, you can find out if it's a server/client/minimal VM from
getVmName().
> Moving forward, I can foresee different VMs being requested which can
> not be guessed that easily. Think -XXaltjvm= or some other black magic
> in launcher. Because of that, I think more generic solution (like the
> variant being proposed) is more viable.
A different VM should have a name that can easily differentiate from
other implementation. The only thing I can imagine missing for such a
future launcher is the pathname if specified in the command-line. I
would suggest to revisit this when such a launcher option is added and
determine what API is needed.
Mandy
On 10/8/2013 7:39 AM, Aleksey Shipilev wrote:
> Yes, I can see that reasoning.
>
> I have the opposite perspective though: I think it is the matter of user
> experience, RuntimeMXBean should not care about the launcher/VM
> distinction, since what user "perceives" is the JVM launched via "java".
> Segregating the launcher and "pure" VM options seems to be exposing the
> implementation detail. Thus, this fix actually covers up that glitch.
>
> -Aleksey.
>
> On 10/08/2013 10:16 AM, David Holmes wrote:
>> As I wrote in the bug report I have reservations about this as these are
>> launcher options not VM options. Plus with the dropping of 32-bit
>> Solaris the -d32/-d64 part will be moot. That leaves the VM "mode" -
>> client, server, minimal or whatever might happened to be defined via
>> jvm.cfg (-server might actually run client VM).
>>
>> David
>>
>> On 3/10/2013 11:40 PM, Aleksey Shipilev wrote:
>>> Hi,
>>>
>>> Please take a look at the potential fix for:
>>> https://bugs.openjdk.java.net/browse/JDK-8025700
>>>
>>> The webrev is here:
>>> http://cr.openjdk.java.net/~shade/8025700/webrev.01/
>>>
>>> Rationale: when doing the Java tools which need to replicate the VM
>>> launch, e.g. fork the JVM with the same set of command line options, we
>>> need the exact command line. Otherwise we miss the significant part of
>>> configuration, which confuses people. So far we miss "-server",
>>> "-client", "-d32", and "-d64" options from there. I have seen troubles
>>> with jmh and jcstress stemming from this very issue.
>>>
>>> Testing:
>>> - new jtreg test, works fine on Linux x86_64; (I can run other
>>> platforms as long as the fix approach is sound)
>>> - jdk/test/tools/launcher jtreg tests on Linux x86_64
>>>
>>> Thanks,
>>> -Aleksey
>>>
From shanliang.jiang at oracle.com Wed Oct 9 00:56:18 2013
From: shanliang.jiang at oracle.com (shanliang)
Date: Wed, 09 Oct 2013 09:56:18 +0200
Subject: Codereview request: 8025204 Intermittent test failure:
javax/management/remote/mandatory/connection/IdleTimeoutTest.java
In-Reply-To: <5254B136.5070705@oracle.com>
References: <5254B136.5070705@oracle.com>
Message-ID: <52550C22.2080201@oracle.com>
David Holmes wrote:
> ! // no deadline here, let's wait till either the
> connId is removed
> ! // or the test timeout (jprt kills the test)!
> ! // see 8025204
>
> The comment loses context if you don't know what the code previously
> did. I suggest using the simpler form you used in other tests eg:
>
> // pass or timed out by test harness - see XXXX
>
> Note it isn't JPRT that normally kills these but the jtreg harness.
>
> Style nit:
>
> } while(ids
>
> space needed after 'while'
>
> } while (ids
Here is the new version integrated your comments:
web: http://cr.openjdk.java.net/~sjiang/8025204jdk/01/
bug: https://bugs.openjdk.java.net/browse/JDK-8025204
Thanks,
Shanliang
>
> David
> -----
From aleksey.shipilev at oracle.com Wed Oct 9 01:19:17 2013
From: aleksey.shipilev at oracle.com (Aleksey Shipilev)
Date: Wed, 09 Oct 2013 12:19:17 +0400
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <525509CB.1050301@oracle.com>
References: <524D73C4.7060004@oracle.com> <5253A32D.40502@oracle.com>
<52541925.5030907@oracle.com> <525509CB.1050301@oracle.com>
Message-ID: <52551185.8070209@oracle.com>
Hi Mandy,
On 10/09/2013 11:46 AM, Mandy Chung wrote:
> Like David said, -client/-server and -d32/-d64 are launcher option but
> not VM options. RuntimeMXBean.getInputArguments() returns the arguments
> passed to the VM which is created via the JNI_CreateJavaVM API.
Hm, this is the first time I hear about this contract, is it really
specified somewhere? Or, is it the informal status quo? Because it feels
remarkably as the implementation detail. I don't think users should be
exposed to the distinction between launcher and VM anyway.
> -client/-server is the java launcher option that determines which VM to
> load and initialize and it's not an option passed to the JVM. In
> addition, -client/-server is actually not a valid option to the hotspot
> VM. Instead, you can find out if it's a server/client/minimal VM from
> getVmName().
Okay, let me state the intent cleaner. The tools I maintain (jmh and
jcstress are notable examples) need to start exactly the same VM with
exactly the same "java" options. How would you propose to do this?
Recovering the command line by parsing getVmName() uses (unstable)
stringly conventions to detect the running VM, and also pushes me to
maintain the list of all possible VMs in the detection code.
RuntimeMXBean.getInputArguments() omits some launcher options, but it is
fixable to expose these options to the user, no stringly parsing is
required on user side.
Do you see any better option?
-Aleksey.
From alan.bateman at oracle.com Wed Oct 9 01:23:36 2013
From: alan.bateman at oracle.com (alan.bateman at oracle.com)
Date: Wed, 09 Oct 2013 08:23:36 +0000
Subject: hg: jdk8/tl/jdk: 8008662: Add @jdk.Exported to JDK-specific/exported
APIs
Message-ID: <20131009082348.AE9D462E76@hg.openjdk.java.net>
Changeset: 2ea162b2ff55
Author: alanb
Date: 2013-10-09 09:20 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2ea162b2ff55
8008662: Add @jdk.Exported to JDK-specific/exported APIs
Reviewed-by: chegar, vinnie, dfuchs, mchung, mullan, darcy
! src/share/classes/com/sun/jdi/AbsentInformationException.java
! src/share/classes/com/sun/jdi/Accessible.java
! src/share/classes/com/sun/jdi/ArrayReference.java
! src/share/classes/com/sun/jdi/ArrayType.java
! src/share/classes/com/sun/jdi/BooleanType.java
! src/share/classes/com/sun/jdi/BooleanValue.java
! src/share/classes/com/sun/jdi/Bootstrap.java
! src/share/classes/com/sun/jdi/ByteType.java
! src/share/classes/com/sun/jdi/ByteValue.java
! src/share/classes/com/sun/jdi/CharType.java
! src/share/classes/com/sun/jdi/CharValue.java
! src/share/classes/com/sun/jdi/ClassLoaderReference.java
! src/share/classes/com/sun/jdi/ClassNotLoadedException.java
! src/share/classes/com/sun/jdi/ClassNotPreparedException.java
! src/share/classes/com/sun/jdi/ClassObjectReference.java
! src/share/classes/com/sun/jdi/ClassType.java
! src/share/classes/com/sun/jdi/DoubleType.java
! src/share/classes/com/sun/jdi/DoubleValue.java
! src/share/classes/com/sun/jdi/Field.java
! src/share/classes/com/sun/jdi/FloatType.java
! src/share/classes/com/sun/jdi/FloatValue.java
! src/share/classes/com/sun/jdi/IncompatibleThreadStateException.java
! src/share/classes/com/sun/jdi/InconsistentDebugInfoException.java
! src/share/classes/com/sun/jdi/IntegerType.java
! src/share/classes/com/sun/jdi/IntegerValue.java
! src/share/classes/com/sun/jdi/InterfaceType.java
! src/share/classes/com/sun/jdi/InternalException.java
! src/share/classes/com/sun/jdi/InvalidCodeIndexException.java
! src/share/classes/com/sun/jdi/InvalidLineNumberException.java
! src/share/classes/com/sun/jdi/InvalidStackFrameException.java
! src/share/classes/com/sun/jdi/InvalidTypeException.java
! src/share/classes/com/sun/jdi/InvocationException.java
! src/share/classes/com/sun/jdi/JDIPermission.java
! src/share/classes/com/sun/jdi/LocalVariable.java
! src/share/classes/com/sun/jdi/Locatable.java
! src/share/classes/com/sun/jdi/Location.java
! src/share/classes/com/sun/jdi/LongType.java
! src/share/classes/com/sun/jdi/LongValue.java
! src/share/classes/com/sun/jdi/Method.java
! src/share/classes/com/sun/jdi/Mirror.java
! src/share/classes/com/sun/jdi/MonitorInfo.java
! src/share/classes/com/sun/jdi/NativeMethodException.java
! src/share/classes/com/sun/jdi/ObjectCollectedException.java
! src/share/classes/com/sun/jdi/ObjectReference.java
! src/share/classes/com/sun/jdi/PathSearchingVirtualMachine.java
! src/share/classes/com/sun/jdi/PrimitiveType.java
! src/share/classes/com/sun/jdi/PrimitiveValue.java
! src/share/classes/com/sun/jdi/ReferenceType.java
! src/share/classes/com/sun/jdi/ShortType.java
! src/share/classes/com/sun/jdi/ShortValue.java
! src/share/classes/com/sun/jdi/StackFrame.java
! src/share/classes/com/sun/jdi/StringReference.java
! src/share/classes/com/sun/jdi/ThreadGroupReference.java
! src/share/classes/com/sun/jdi/ThreadReference.java
! src/share/classes/com/sun/jdi/Type.java
! src/share/classes/com/sun/jdi/TypeComponent.java
! src/share/classes/com/sun/jdi/VMCannotBeModifiedException.java
! src/share/classes/com/sun/jdi/VMDisconnectedException.java
! src/share/classes/com/sun/jdi/VMMismatchException.java
! src/share/classes/com/sun/jdi/VMOutOfMemoryException.java
! src/share/classes/com/sun/jdi/Value.java
! src/share/classes/com/sun/jdi/VirtualMachine.java
! src/share/classes/com/sun/jdi/VirtualMachineManager.java
! src/share/classes/com/sun/jdi/VoidType.java
! src/share/classes/com/sun/jdi/VoidValue.java
! src/share/classes/com/sun/jdi/connect/AttachingConnector.java
! src/share/classes/com/sun/jdi/connect/Connector.java
! src/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java
! src/share/classes/com/sun/jdi/connect/LaunchingConnector.java
! src/share/classes/com/sun/jdi/connect/ListeningConnector.java
! src/share/classes/com/sun/jdi/connect/Transport.java
! src/share/classes/com/sun/jdi/connect/TransportTimeoutException.java
! src/share/classes/com/sun/jdi/connect/VMStartException.java
+ src/share/classes/com/sun/jdi/connect/package-info.java
- src/share/classes/com/sun/jdi/connect/package.html
! src/share/classes/com/sun/jdi/connect/spi/ClosedConnectionException.java
! src/share/classes/com/sun/jdi/connect/spi/Connection.java
! src/share/classes/com/sun/jdi/connect/spi/TransportService.java
+ src/share/classes/com/sun/jdi/connect/spi/package-info.java
- src/share/classes/com/sun/jdi/connect/spi/package.html
! src/share/classes/com/sun/jdi/event/AccessWatchpointEvent.java
! src/share/classes/com/sun/jdi/event/BreakpointEvent.java
! src/share/classes/com/sun/jdi/event/ClassPrepareEvent.java
! src/share/classes/com/sun/jdi/event/ClassUnloadEvent.java
! src/share/classes/com/sun/jdi/event/Event.java
! src/share/classes/com/sun/jdi/event/EventIterator.java
! src/share/classes/com/sun/jdi/event/EventQueue.java
! src/share/classes/com/sun/jdi/event/EventSet.java
! src/share/classes/com/sun/jdi/event/ExceptionEvent.java
! src/share/classes/com/sun/jdi/event/LocatableEvent.java
! src/share/classes/com/sun/jdi/event/MethodEntryEvent.java
! src/share/classes/com/sun/jdi/event/MethodExitEvent.java
! src/share/classes/com/sun/jdi/event/ModificationWatchpointEvent.java
! src/share/classes/com/sun/jdi/event/MonitorContendedEnterEvent.java
! src/share/classes/com/sun/jdi/event/MonitorContendedEnteredEvent.java
! src/share/classes/com/sun/jdi/event/MonitorWaitEvent.java
! src/share/classes/com/sun/jdi/event/MonitorWaitedEvent.java
! src/share/classes/com/sun/jdi/event/StepEvent.java
! src/share/classes/com/sun/jdi/event/ThreadDeathEvent.java
! src/share/classes/com/sun/jdi/event/ThreadStartEvent.java
! src/share/classes/com/sun/jdi/event/VMDeathEvent.java
! src/share/classes/com/sun/jdi/event/VMDisconnectEvent.java
! src/share/classes/com/sun/jdi/event/VMStartEvent.java
! src/share/classes/com/sun/jdi/event/WatchpointEvent.java
+ src/share/classes/com/sun/jdi/event/package-info.java
- src/share/classes/com/sun/jdi/event/package.html
+ src/share/classes/com/sun/jdi/package-info.java
- src/share/classes/com/sun/jdi/package.html
! src/share/classes/com/sun/jdi/request/AccessWatchpointRequest.java
! src/share/classes/com/sun/jdi/request/BreakpointRequest.java
! src/share/classes/com/sun/jdi/request/ClassPrepareRequest.java
! src/share/classes/com/sun/jdi/request/ClassUnloadRequest.java
! src/share/classes/com/sun/jdi/request/DuplicateRequestException.java
! src/share/classes/com/sun/jdi/request/EventRequest.java
! src/share/classes/com/sun/jdi/request/EventRequestManager.java
! src/share/classes/com/sun/jdi/request/ExceptionRequest.java
! src/share/classes/com/sun/jdi/request/InvalidRequestStateException.java
! src/share/classes/com/sun/jdi/request/MethodEntryRequest.java
! src/share/classes/com/sun/jdi/request/MethodExitRequest.java
! src/share/classes/com/sun/jdi/request/ModificationWatchpointRequest.java
! src/share/classes/com/sun/jdi/request/MonitorContendedEnterRequest.java
! src/share/classes/com/sun/jdi/request/MonitorContendedEnteredRequest.java
! src/share/classes/com/sun/jdi/request/MonitorWaitRequest.java
! src/share/classes/com/sun/jdi/request/MonitorWaitedRequest.java
! src/share/classes/com/sun/jdi/request/StepRequest.java
! src/share/classes/com/sun/jdi/request/ThreadDeathRequest.java
! src/share/classes/com/sun/jdi/request/ThreadStartRequest.java
! src/share/classes/com/sun/jdi/request/VMDeathRequest.java
! src/share/classes/com/sun/jdi/request/WatchpointRequest.java
+ src/share/classes/com/sun/jdi/request/package-info.java
- src/share/classes/com/sun/jdi/request/package.html
! src/share/classes/com/sun/management/GarbageCollectionNotificationInfo.java
! src/share/classes/com/sun/management/GarbageCollectorMXBean.java
! src/share/classes/com/sun/management/GcInfo.java
! src/share/classes/com/sun/management/HotSpotDiagnosticMXBean.java
! src/share/classes/com/sun/management/OperatingSystemMXBean.java
! src/share/classes/com/sun/management/ThreadMXBean.java
! src/share/classes/com/sun/management/UnixOperatingSystemMXBean.java
! src/share/classes/com/sun/management/VMOption.java
+ src/share/classes/com/sun/management/package-info.java
- src/share/classes/com/sun/management/package.html
! src/share/classes/com/sun/net/httpserver/Authenticator.java
! src/share/classes/com/sun/net/httpserver/BasicAuthenticator.java
! src/share/classes/com/sun/net/httpserver/Filter.java
! src/share/classes/com/sun/net/httpserver/Headers.java
! src/share/classes/com/sun/net/httpserver/HttpContext.java
! src/share/classes/com/sun/net/httpserver/HttpExchange.java
! src/share/classes/com/sun/net/httpserver/HttpHandler.java
! src/share/classes/com/sun/net/httpserver/HttpPrincipal.java
! src/share/classes/com/sun/net/httpserver/HttpServer.java
! src/share/classes/com/sun/net/httpserver/HttpsConfigurator.java
! src/share/classes/com/sun/net/httpserver/HttpsExchange.java
! src/share/classes/com/sun/net/httpserver/HttpsParameters.java
! src/share/classes/com/sun/net/httpserver/HttpsServer.java
! src/share/classes/com/sun/net/httpserver/package-info.java
! src/share/classes/com/sun/net/httpserver/spi/HttpServerProvider.java
! src/share/classes/com/sun/net/httpserver/spi/package-info.java
! src/share/classes/com/sun/nio/sctp/AbstractNotificationHandler.java
! src/share/classes/com/sun/nio/sctp/Association.java
! src/share/classes/com/sun/nio/sctp/AssociationChangeNotification.java
! src/share/classes/com/sun/nio/sctp/HandlerResult.java
! src/share/classes/com/sun/nio/sctp/IllegalReceiveException.java
! src/share/classes/com/sun/nio/sctp/IllegalUnbindException.java
! src/share/classes/com/sun/nio/sctp/InvalidStreamException.java
! src/share/classes/com/sun/nio/sctp/MessageInfo.java
! src/share/classes/com/sun/nio/sctp/Notification.java
! src/share/classes/com/sun/nio/sctp/NotificationHandler.java
! src/share/classes/com/sun/nio/sctp/PeerAddressChangeNotification.java
! src/share/classes/com/sun/nio/sctp/SctpChannel.java
! src/share/classes/com/sun/nio/sctp/SctpMultiChannel.java
! src/share/classes/com/sun/nio/sctp/SctpServerChannel.java
! src/share/classes/com/sun/nio/sctp/SctpSocketOption.java
! src/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java
! src/share/classes/com/sun/nio/sctp/SendFailedNotification.java
! src/share/classes/com/sun/nio/sctp/ShutdownNotification.java
! src/share/classes/com/sun/nio/sctp/package-info.java
! src/share/classes/com/sun/security/auth/LdapPrincipal.java
! src/share/classes/com/sun/security/auth/NTDomainPrincipal.java
! src/share/classes/com/sun/security/auth/NTNumericCredential.java
! src/share/classes/com/sun/security/auth/NTSid.java
! src/share/classes/com/sun/security/auth/NTSidDomainPrincipal.java
! src/share/classes/com/sun/security/auth/NTSidGroupPrincipal.java
! src/share/classes/com/sun/security/auth/NTSidPrimaryGroupPrincipal.java
! src/share/classes/com/sun/security/auth/NTSidUserPrincipal.java
! src/share/classes/com/sun/security/auth/NTUserPrincipal.java
! src/share/classes/com/sun/security/auth/PolicyFile.java
! src/share/classes/com/sun/security/auth/PrincipalComparator.java
! src/share/classes/com/sun/security/auth/SolarisNumericGroupPrincipal.java
! src/share/classes/com/sun/security/auth/SolarisNumericUserPrincipal.java
! src/share/classes/com/sun/security/auth/SolarisPrincipal.java
! src/share/classes/com/sun/security/auth/UnixNumericGroupPrincipal.java
! src/share/classes/com/sun/security/auth/UnixNumericUserPrincipal.java
! src/share/classes/com/sun/security/auth/UnixPrincipal.java
! src/share/classes/com/sun/security/auth/UserPrincipal.java
! src/share/classes/com/sun/security/auth/X500Principal.java
! src/share/classes/com/sun/security/auth/callback/DialogCallbackHandler.java
! src/share/classes/com/sun/security/auth/callback/TextCallbackHandler.java
+ src/share/classes/com/sun/security/auth/callback/package-info.java
! src/share/classes/com/sun/security/auth/login/ConfigFile.java
+ src/share/classes/com/sun/security/auth/login/package-info.java
! src/share/classes/com/sun/security/auth/module/JndiLoginModule.java
! src/share/classes/com/sun/security/auth/module/KeyStoreLoginModule.java
! src/share/classes/com/sun/security/auth/module/Krb5LoginModule.java
! src/share/classes/com/sun/security/auth/module/LdapLoginModule.java
! src/share/classes/com/sun/security/auth/module/NTLoginModule.java
! src/share/classes/com/sun/security/auth/module/NTSystem.java
! src/share/classes/com/sun/security/auth/module/SolarisLoginModule.java
! src/share/classes/com/sun/security/auth/module/SolarisSystem.java
! src/share/classes/com/sun/security/auth/module/UnixLoginModule.java
! src/share/classes/com/sun/security/auth/module/UnixSystem.java
+ src/share/classes/com/sun/security/auth/module/package-info.java
+ src/share/classes/com/sun/security/auth/package-info.java
! src/share/classes/com/sun/security/jgss/AuthorizationDataEntry.java
! src/share/classes/com/sun/security/jgss/ExtendedGSSContext.java
! src/share/classes/com/sun/security/jgss/ExtendedGSSCredential.java
! src/share/classes/com/sun/security/jgss/GSSUtil.java
! src/share/classes/com/sun/security/jgss/InquireSecContextPermission.java
! src/share/classes/com/sun/security/jgss/InquireType.java
+ src/share/classes/com/sun/security/jgss/package-info.java
! src/share/classes/com/sun/tools/attach/AgentInitializationException.java
! src/share/classes/com/sun/tools/attach/AgentLoadException.java
! src/share/classes/com/sun/tools/attach/AttachNotSupportedException.java
! src/share/classes/com/sun/tools/attach/AttachPermission.java
! src/share/classes/com/sun/tools/attach/VirtualMachine.java
! src/share/classes/com/sun/tools/attach/VirtualMachineDescriptor.java
+ src/share/classes/com/sun/tools/attach/package-info.java
- src/share/classes/com/sun/tools/attach/package.html
! src/share/classes/com/sun/tools/attach/spi/AttachProvider.java
+ src/share/classes/com/sun/tools/attach/spi/package-info.java
- src/share/classes/com/sun/tools/attach/spi/package.html
! src/share/classes/com/sun/tools/jconsole/JConsoleContext.java
! src/share/classes/com/sun/tools/jconsole/JConsolePlugin.java
+ src/share/classes/com/sun/tools/jconsole/package-info.java
- src/share/classes/com/sun/tools/jconsole/package.html
! src/solaris/classes/com/sun/management/OSMBeanFactory.java
From mandy.chung at oracle.com Wed Oct 9 02:03:55 2013
From: mandy.chung at oracle.com (Mandy Chung)
Date: Wed, 09 Oct 2013 02:03:55 -0700
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <52551185.8070209@oracle.com>
References: <524D73C4.7060004@oracle.com> <5253A32D.40502@oracle.com>
<52541925.5030907@oracle.com> <525509CB.1050301@oracle.com>
<52551185.8070209@oracle.com>
Message-ID: <52551BFB.5040309@oracle.com>
On 10/9/2013 1:19 AM, Aleksey Shipilev wrote:
> Hi Mandy,
>
> On 10/09/2013 11:46 AM, Mandy Chung wrote:
>> Like David said, -client/-server and -d32/-d64 are launcher option but
>> not VM options. RuntimeMXBean.getInputArguments() returns the arguments
>> passed to the VM which is created via the JNI_CreateJavaVM API.
> Hm, this is the first time I hear about this contract, is it really
> specified somewhere? Or, is it the informal status quo? Because it feels
> remarkably as the implementation detail. I don't think users should be
> exposed to the distinction between launcher and VM anyway.
The spec of RuntimeMXBean.getInputArguments says:
Returns the input arguments passed to the Java virtual machine which
does not include the arguments to the main method.
It didn't say it can't include invalid VM options but they are just not
VM options and the hotspot implementation will exit if they were passed
to the VM.
Our java launcher is one implementation that loads and initialize the
hotspot VM but there are other custom launchers out there that can call
JNI_CreateJavaVM to load and initialize a JVM.
>
>> -client/-server is the java launcher option that determines which VM to
>> load and initialize and it's not an option passed to the JVM. In
>> addition, -client/-server is actually not a valid option to the hotspot
>> VM. Instead, you can find out if it's a server/client/minimal VM from
>> getVmName().
> Okay, let me state the intent cleaner. The tools I maintain (jmh and
> jcstress are notable examples) need to start exactly the same VM with
> exactly the same "java" options. How would you propose to do this?
You want to exec another process with the same command-line options to
the java launcher (or augmenting with additional ones). Your proposed
fix will only work with this implementation and the application is
launched by the java launcher. In other words, your tools wouldn't
support any other launcher implementation that may launch different
VMs. Maybe you are only interested in our JDK implementation.
> Recovering the command line by parsing getVmName() uses (unstable)
> stringly conventions to detect the running VM, and also pushes me to
> maintain the list of all possible VMs in the detection code.
>
> RuntimeMXBean.getInputArguments() omits some launcher options, but it is
> fixable to expose these options to the user, no stringly parsing is
> required on user side.
>
> Do you see any better option?
I no longer work in this area and don't have any suggestion at the
moment. Although parsing of VM name is not ideal, I suggest it as a
workaround for now and give the serviceability team time to look into
this to address your request.
Mandy
>
> -Aleksey.
From aleksey.shipilev at oracle.com Wed Oct 9 02:21:21 2013
From: aleksey.shipilev at oracle.com (Aleksey Shipilev)
Date: Wed, 09 Oct 2013 13:21:21 +0400
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <52551BFB.5040309@oracle.com>
References: <524D73C4.7060004@oracle.com> <5253A32D.40502@oracle.com>
<52541925.5030907@oracle.com> <525509CB.1050301@oracle.com>
<52551185.8070209@oracle.com> <52551BFB.5040309@oracle.com>
Message-ID: <52552011.6020904@oracle.com>
On 10/09/2013 01:03 PM, Mandy Chung wrote:
>> Do you see any better option?
>
> I no longer work in this area and don't have any suggestion at the
> moment. Although parsing of VM name is not ideal, I suggest it as a
> workaround for now and give the serviceability team time to look into
> this to address your request.
Ok, I'll leave the ticket open meanwhile.
Thanks,
-Aleksey.
From shanliang.jiang at oracle.com Wed Oct 9 02:43:46 2013
From: shanliang.jiang at oracle.com (shanliang)
Date: Wed, 09 Oct 2013 11:43:46 +0200
Subject: jmx-dev Codereview request: 8025206 IIntermittent test failure:
javax/management/monitor/NullAttributeValueTest.java
In-Reply-To: <5254AE27.4060303@oracle.com>
References: 52493592.1030504@oracle.com <5254AE27.4060303@oracle.com>
Message-ID: <52552552.9070708@oracle.com>
David Holmes wrote:
> Shanliang writes:
>> Daniel Fuchs wrote:
>>> Hi Shanliang,
>>>
>>> Shouldn't 'messageReceived' be at least declared as volatile?
>>> It looks as if this test is a multi-thread test which
>>> is not MT-safe.
>> OK I am convinced:
>> http://cr.openjdk.java.net/~sjiang/JDK-8025206/02/
>
> The volatile is definitely needed if the field is written/read by
> different threads.
>
> I think the rule is to not use @author tags in OpenJDK code.
>
> This comment is not needed:
>
> 288 // See 8025206
>
> but I think the bug number should be added to the @bug line.
>
> Otherwise seems reasonable.
>
> Reviewed.
Thanks for the review, I will remove Line
288 // See 8025206
but add the bug id to @bug
Shanliang
>
> David
From david.holmes at oracle.com Wed Oct 9 03:23:54 2013
From: david.holmes at oracle.com (David Holmes)
Date: Wed, 09 Oct 2013 20:23:54 +1000
Subject: [ping][ping] Re: jmx-dev RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <5253ED95.20706@oracle.com>
References: <52308ECC.1050304@oracle.com>
<523138CB.9040401@oracle.com> <52317782.1060300@oracle.com>
<523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com>
<5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com>
<523B0B30.4020003@oracle.com> <5252C1B6.2060904@oracle.com>
<52537F36.8020001@oracle.com> <5253ED95.20706@oracle.com>
Message-ID: <52552EBA.4060308@oracle.com>
Jaroslav,
Thanks for the details description of changes - much appreciated.
There is a lot to digest in there. :)
It isn't obvious to me why these tests require a full JDK?
I don't quite follow the libjvm lookup logic - I would expect that you
would always want to test the libjvm that is currently running - though
it is hard to determine that.
Thanks,
David
On 8/10/2013 9:33 PM, Jaroslav Bachorik wrote:
> On 8.10.2013 05:42, David Holmes wrote:
>> Jaroslav,
>>
>> Can you summarise the changes please? With the conversion to Java and
>> the infrastructure additions I can't tell what is actually fixing the
>> original timeout issue :)
>
> The timeout was most caused by using the same file for communication
> between java processes in more test cases. When those test cases were
> run in parallel the file got rewritten silently and some of the tests
> could end up trying to connect to incorrect port in the target
> application. I was able to reproduce the timeout by interleaving the
> test runs for CustomLauncherTest.sh and LocalManagementTest.sh and
> adding an artificial delay to CusteomLauncherTest.sh to allow
> LocalManagementTest.sh to change the port in the file.
>
> While it could be fixed by using a different file for each test case I
> took the liberty of converting the shell tests to java tests. This
> allows me to remove the communication file and, in the end, make the
> tests more robust.
>
> CustomLauncherTest.java and LocalManagementTest.java are the tests
> converted from shell to java. I decided to convert
> LocalManagementTest.sh as well because it has the same problems as the
> CustomLauncherTest.sh.
>
> The changes in the testlibrary are about introducing new methods
> allowing the tests easily start a process and wait for a certain text
> appearing in its stdout/stderr. Using these methods the caller can wait
> till the callee is fully initialized and eg. ready to accept connections.
>
> The changes in launchers make the launchers actually executable + I am
> adding a linux-amd64 launcher (I needed that one to work on the changes
> locally and thought it might be nice to have one more platform covered
> by the test).
>
> I've update the webrev to include changes to LocalManagementTest and
> TEST.groups (both of those tests require JDK) -
> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.05
>
> -JB-
>
>>
>> Thanks,
>> David
>>
>> On 8/10/2013 12:14 AM, Jaroslav Bachorik wrote:
>>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>>> The updated webrev:
>>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>>
>>>> I've moved some of the functionality to the testlibrary.
>>>>
>>>> -JB -
>>>>
>>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>>> Jaroslav,
>>>>>>
>>>>>> CustomLauncherTest.java:
>>>>>>
>>>>>> 102: this check could be moved to switch at ll. 108
>>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>>>> unset.
>>>>> Good idea. Thanks.
>>>>>
>>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>>> script. Could you prepare a list of VM's to check and just loop over
>>>>>> it?
>>>>>> It makes test better readable. Also I think nowdays we can always use
>>>>>> server VM.
>>>>> I tried to mirror the original shell test as closely as possible. It
>>>>> would be nice if we could rely on the "server" vm only. Definitely
>>>>> more
>>>>> readable.
>>>>>
>>>>> -JB-
>>>>>
>>>>>> -Dmitry
>>>>>>
>>>>>>
>>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>>> Hi Jaroslav,
>>>>>>>>>>
>>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>>
>>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>>> it to
>>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>>> come
>>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>>
>>>>>>>>>> Is there a reason this test can't run on OSX? I know it would
>>>>>>>>>> need
>>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>>> inherent in
>>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>>
>>>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>>>> hotspot
>>>>>>>>>> test library's process tools available. :(
>>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>>
>>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>>
>>>>>>>> Please, stand by for the updated webrev.
>>>>>>> I was able to get rid off the JCMD. Using the testlibrary the target
>>>>>>> application can recognize its own PID and print it to its stdout.
>>>>>>> The
>>>>>>> main application then just reads the stdout to parse the PID. No
>>>>>>> need
>>>>>>> for JCMD any more.
>>>>>>>
>>>>>>> I could not find a way to remove the dependency on "test.jdk" system
>>>>>>> property. According to the jtreg web documentation
>>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>>> "test.java"
>>>>>>> system property should be available but in fact is not. But it seems
>>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>>
>>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>>> binary :)
>>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>>> linux-amd64 launcher while working on the test.
>>>>>>>
>>>>>>> While working with the test library I realized I was missing a
>>>>>>> crucial
>>>>>>> feature (at least for my purposes) - waiting for a certain
>>>>>>> message to
>>>>>>> appear in the stdout/stderr of the launched process. Very often I
>>>>>>> need
>>>>>>> to wait for the target process to get to certain point before the
>>>>>>> test
>>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>>> message in
>>>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>>> analyzed after the target process died - and are not suitable for
>>>>>>> this
>>>>>>> kind of usage.
>>>>>>>
>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>>
>>>>>>>> -JB-
>>>>>>>>
>>>>>>>>>
>>>>>>>>> -Chris.
>>>>>>>>>
>>>>>>>>>> David
>>>>>>>>>> -----
>>>>>>>>>>
>>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>>
>>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>>
>>>>>>>>>>> In order to fix this the test is rewritten in Java - the
>>>>>>>>>>> original
>>>>>>>>>>> functionality and outputs should be 100% preserved. The patch is
>>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>>> similarity
>>>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>>>> new
>>>>>>>>>>> source in whole.
>>>>>>>>>>>
>>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>>> permissions to
>>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>>
>>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>>> Webrev : http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>>
>>>>>>>>>>> -JB-
>>>>>>>>>>>
>>>>>>
>>>>
>>>
>
From vincent.x.ryan at oracle.com Wed Oct 9 03:50:46 2013
From: vincent.x.ryan at oracle.com (vincent.x.ryan at oracle.com)
Date: Wed, 09 Oct 2013 10:50:46 +0000
Subject: hg: jdk8/tl/jdk: 8008171: Refactor KeyStore.DomainLoadStoreParameter
as a standalone class
Message-ID: <20131009105101.6D73A62E7F@hg.openjdk.java.net>
Changeset: 91a752e3d50b
Author: vinnie
Date: 2013-10-09 10:48 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/91a752e3d50b
8008171: Refactor KeyStore.DomainLoadStoreParameter as a standalone class
Reviewed-by: mullan, weijun
+ src/share/classes/java/security/DomainLoadStoreParameter.java
! src/share/classes/java/security/KeyStore.java
! src/share/classes/sun/security/provider/DomainKeyStore.java
! test/sun/security/provider/KeyStore/DKSTest.java
From jan.lahoda at oracle.com Wed Oct 9 04:13:15 2013
From: jan.lahoda at oracle.com (jan.lahoda at oracle.com)
Date: Wed, 09 Oct 2013 11:13:15 +0000
Subject: hg: jdk8/tl/langtools: 2 new changesets
Message-ID: <20131009111321.C1A1D62E81@hg.openjdk.java.net>
Changeset: 0be3f1820e8b
Author: jlahoda
Date: 2013-10-09 13:06 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/0be3f1820e8b
8025141: java.lang.ClassFormatError: Illegal field modifiers in class (...)
Summary: Should not generate non-public $assertionsDisabled field into interfaces
Reviewed-by: jjg, vromero
! src/share/classes/com/sun/tools/javac/comp/Lower.java
+ test/tools/javac/defaultMethods/Assertions.java
+ test/tools/javac/defaultMethods/CannotChangeAssertionsStateAfterInitialized.java
Changeset: 1b469fd31e35
Author: jlahoda
Date: 2013-10-09 13:09 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/1b469fd31e35
8025087: Annotation processing api returns default modifier for interface static method
Summary: ClassReader must not set Flags.DEFAULT for interface static methods
Reviewed-by: vromero, jjg
! make/build.xml
! src/share/classes/com/sun/tools/javac/jvm/ClassReader.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
+ test/tools/javac/defaultMethods/BadClassfile.java
! test/tools/javac/diags/examples.not-yet.txt
+ test/tools/javac/diags/examples/InvalidDefaultInterface/InvalidDefaultInterface.java
+ test/tools/javac/diags/examples/InvalidDefaultInterface/processors/CreateBadClassFile.java
+ test/tools/javac/diags/examples/InvalidStaticInterface/InvalidStaticInterface.java
+ test/tools/javac/diags/examples/InvalidStaticInterface/processors/CreateBadClassFile.java
! test/tools/javac/processing/model/element/TestExecutableElement.java
From jaroslav.bachorik at oracle.com Wed Oct 9 04:26:27 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Wed, 09 Oct 2013 13:26:27 +0200
Subject: RFR 6523160: RuntimeMXBean.getUptime() returns negative values
In-Reply-To: <52547D24.9060806@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com> <52547D24.9060806@oracle.com>
Message-ID: <52553D63.5000508@oracle.com>
On 8.10.2013 23:46, David Holmes wrote:
> On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
>> On 8.10.2013 09:34, David Holmes wrote:
>>> Jaroslav,
>>>
>>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>>> Hello,
>>>>
>>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>>> System.currentTimeMillis() which makes it susceptible to changes of the
>>>> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
>>>> should not depend on the system time and should be calculated using a
>>>> monotonic clock source.
>>>>
>>>> There is already the way to get the actual JVM uptime in ticks. It is
>>>> accessible as Management::timestamp() and the ticks are convertible to
>>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it
>>>> very
>>>> easy to switch to the monotonic clock based uptime.
>>>
>>> Maybe I'm missing something but TiumeStamp updates using
>>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>>> monotonic clock source.
>>
>> Hm, yes. I wasn't aware of this linux/bsd specific.
>>
>> Is there any reason why a non monotonic clock source is used for
>> timestamping except of the historical one? os::javaTimeNanos() uses
>> montonic clock when available - why can't be the same used for
>> os::elapsed_counter() especially when a counter based on "gettimeofday"
>> is not really a counter?
>
> It is all historical. These elapsed_counters and elapsed_timers make me
> cringe. But changing it has a lot of potential consequences because of
> the way these are used in logging etc. Certainly not something to be
> contemplated at this stage of JDK 8.
>
> Perhaps a simpler fix here is to expose a startUpTimeNanos that can then
> be used for the uptime.
My attempt at this is at
http://cr.openjdk.java.net/~jbachorik/6523160/webrev.01/hotspot
I am using os::javaTimeNanos() to get the monotonic ticks where possible.
The JDK part stays the same as for webrev.00
-JB-
>
> David
>
>> -JB-
>>
>>>
>>> David
>>> -----
>>>
>>>
>>>
>>>> The patch consists of the hotspot and jdk parts.
>>>>
>>>> For the hotspot a new constant needs to be introduced in
>>>> src/share/vm/services/jmm.h and the actual logic to obtain the
>>>> uptime in
>>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>>
>>>> For the jdk the changes comprise of adding the necessary JNI bridging
>>>> methods in order to get the new uptime, introducing the same constant
>>>> that is used in hotspot and changes to mapfile-vers files in order to
>>>> properly build the native library.
>>>>
>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>>
>>>> Thanks,
>>>>
>>>> -JB-
>>
From jaroslav.bachorik at oracle.com Wed Oct 9 04:31:57 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Wed, 09 Oct 2013 13:31:57 +0200
Subject: [ping][ping] Re: jmx-dev RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <52552EBA.4060308@oracle.com>
References: <52308ECC.1050304@oracle.com>
<523138CB.9040401@oracle.com> <52317782.1060300@oracle.com>
<523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com>
<5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com>
<523B0B30.4020003@oracle.com> <5252C1B6.2060904@oracle.com>
<52537F36.8020001@oracle.com> <5253ED95.20706@oracle.com>
<52552EBA.4060308@oracle.com>
Message-ID: <52553EAD.4040506@oracle.com>
On 9.10.2013 12:23, David Holmes wrote:
> Jaroslav,
>
> Thanks for the details description of changes - much appreciated.
>
> There is a lot to digest in there. :)
Yep, it started as a simple fix :/
>
> It isn't obvious to me why these tests require a full JDK?
IDK, LocalManagementTest.sh was listed as one requiring full JDK. Its
requirements are the same as the ones of CustomLauncherTest.sh (now
*.java) so it seemed logical to list it there too.
>
> I don't quite follow the libjvm lookup logic - I would expect that you
> would always want to test the libjvm that is currently running - though
> it is hard to determine that.
I'm afraid I can't be of much assistance here - I just took what was in
the *.sh version and converted it to *.java.
-JB-
>
> Thanks,
> David
>
> On 8/10/2013 9:33 PM, Jaroslav Bachorik wrote:
>> On 8.10.2013 05:42, David Holmes wrote:
>>> Jaroslav,
>>>
>>> Can you summarise the changes please? With the conversion to Java and
>>> the infrastructure additions I can't tell what is actually fixing the
>>> original timeout issue :)
>>
>> The timeout was most caused by using the same file for communication
>> between java processes in more test cases. When those test cases were
>> run in parallel the file got rewritten silently and some of the tests
>> could end up trying to connect to incorrect port in the target
>> application. I was able to reproduce the timeout by interleaving the
>> test runs for CustomLauncherTest.sh and LocalManagementTest.sh and
>> adding an artificial delay to CusteomLauncherTest.sh to allow
>> LocalManagementTest.sh to change the port in the file.
>>
>> While it could be fixed by using a different file for each test case I
>> took the liberty of converting the shell tests to java tests. This
>> allows me to remove the communication file and, in the end, make the
>> tests more robust.
>>
>> CustomLauncherTest.java and LocalManagementTest.java are the tests
>> converted from shell to java. I decided to convert
>> LocalManagementTest.sh as well because it has the same problems as the
>> CustomLauncherTest.sh.
>>
>> The changes in the testlibrary are about introducing new methods
>> allowing the tests easily start a process and wait for a certain text
>> appearing in its stdout/stderr. Using these methods the caller can wait
>> till the callee is fully initialized and eg. ready to accept connections.
>>
>> The changes in launchers make the launchers actually executable + I am
>> adding a linux-amd64 launcher (I needed that one to work on the changes
>> locally and thought it might be nice to have one more platform covered
>> by the test).
>>
>> I've update the webrev to include changes to LocalManagementTest and
>> TEST.groups (both of those tests require JDK) -
>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.05
>>
>> -JB-
>>
>>>
>>> Thanks,
>>> David
>>>
>>> On 8/10/2013 12:14 AM, Jaroslav Bachorik wrote:
>>>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>>>> The updated webrev:
>>>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>>>
>>>>> I've moved some of the functionality to the testlibrary.
>>>>>
>>>>> -JB -
>>>>>
>>>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>>>> Jaroslav,
>>>>>>>
>>>>>>> CustomLauncherTest.java:
>>>>>>>
>>>>>>> 102: this check could be moved to switch at ll. 108
>>>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM remains
>>>>>>> unset.
>>>>>> Good idea. Thanks.
>>>>>>
>>>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>>>> script. Could you prepare a list of VM's to check and just loop over
>>>>>>> it?
>>>>>>> It makes test better readable. Also I think nowdays we can always
>>>>>>> use
>>>>>>> server VM.
>>>>>> I tried to mirror the original shell test as closely as possible. It
>>>>>> would be nice if we could rely on the "server" vm only. Definitely
>>>>>> more
>>>>>> readable.
>>>>>>
>>>>>> -JB-
>>>>>>
>>>>>>> -Dmitry
>>>>>>>
>>>>>>>
>>>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>>>> Hi Jaroslav,
>>>>>>>>>>>
>>>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>>>
>>>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>>>> it to
>>>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>>>> come
>>>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>>>
>>>>>>>>>>> Is there a reason this test can't run on OSX? I know it would
>>>>>>>>>>> need
>>>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>>>> inherent in
>>>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>>>
>>>>>>>>>>> I think the test would be a lot simpler if the jdk tests had the
>>>>>>>>>>> hotspot
>>>>>>>>>>> test library's process tools available. :(
>>>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>>>
>>>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>>>
>>>>>>>>> Please, stand by for the updated webrev.
>>>>>>>> I was able to get rid off the JCMD. Using the testlibrary the
>>>>>>>> target
>>>>>>>> application can recognize its own PID and print it to its stdout.
>>>>>>>> The
>>>>>>>> main application then just reads the stdout to parse the PID. No
>>>>>>>> need
>>>>>>>> for JCMD any more.
>>>>>>>>
>>>>>>>> I could not find a way to remove the dependency on "test.jdk"
>>>>>>>> system
>>>>>>>> property. According to the jtreg web documentation
>>>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>>>> "test.java"
>>>>>>>> system property should be available but in fact is not. But it
>>>>>>>> seems
>>>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>>>
>>>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>>>> binary :)
>>>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>>>> linux-amd64 launcher while working on the test.
>>>>>>>>
>>>>>>>> While working with the test library I realized I was missing a
>>>>>>>> crucial
>>>>>>>> feature (at least for my purposes) - waiting for a certain
>>>>>>>> message to
>>>>>>>> appear in the stdout/stderr of the launched process. Very often I
>>>>>>>> need
>>>>>>>> to wait for the target process to get to certain point before the
>>>>>>>> test
>>>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>>>> message in
>>>>>>>> stdout/stderr. Currently all the proc tools are designed to work in
>>>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>>>> analyzed after the target process died - and are not suitable for
>>>>>>>> this
>>>>>>>> kind of usage.
>>>>>>>>
>>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>>>
>>>>>>>>> -JB-
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -Chris.
>>>>>>>>>>
>>>>>>>>>>> David
>>>>>>>>>>> -----
>>>>>>>>>>>
>>>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>>>
>>>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>>>
>>>>>>>>>>>> In order to fix this the test is rewritten in Java - the
>>>>>>>>>>>> original
>>>>>>>>>>>> functionality and outputs should be 100% preserved. The
>>>>>>>>>>>> patch is
>>>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>>>> similarity
>>>>>>>>>>>> between the *.sh and *.java file so one needs to go through the
>>>>>>>>>>>> new
>>>>>>>>>>>> source in whole.
>>>>>>>>>>>>
>>>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>>>> permissions to
>>>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>
>>>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>>>> Webrev :
>>>>>>>>>>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>>>
>>>>>>>>>>>> -JB-
>>>>>>>>>>>>
>>>>>>>
>>>>>
>>>>
>>
From david.holmes at oracle.com Wed Oct 9 05:02:43 2013
From: david.holmes at oracle.com (David Holmes)
Date: Wed, 09 Oct 2013 22:02:43 +1000
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <52548E6D.80701@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
<52548E6D.80701@oracle.com>
Message-ID: <525545E3.3060504@oracle.com>
inline ...
On 9/10/2013 8:59 AM, Daniel D. Daugherty wrote:
> On 10/1/13 8:52 PM, David Holmes wrote:
>> - hotspot/make/Makefile
>>
>> + $(EXPORT_CLIENT_DIR)/%.dSYM: $(MINIMAL1_BUILD_DIR)/%.dSYM
>>
>> EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
>>
>> For fun you can try building minimal on OSX, but I don't know how far
>> you will get:
>>
>> --with-jvm-variants=client,server,minimal1
>>
>> I'll point out obvious issues with minimal VM support anyway.
>
> Since you pointed out in a later email that minimal1 isn't
> supported on MacOS X, I'm going to drop those changes. I'm
> going to leave the Client VM support since there are folks
> out in OpenJDK trying to get the Client VM working on MacOS X.
>
> It does look like someone added minimal1 support for other
> non-Linux platforms, but I'm not planning to clean that up.
Yes I did that when adding minimal support. Seemed better than leaving
someone to have to rediscover what needed to be implemented if/when
minimal support was expanded.
Someday I hope to remove all the duplicated EXPORT_* stuff and generate
it based on the requested JDK_VARIANT_* values. And do it in a platform
indpendent way - once! :)
>> Note that the whole jdk6_or_earlier logic is defunct as this will
>> never be used for jdk6 or earlier. But best to clean all that up at
>> the one time.
>
> Agreed that we (Oracle) currently don't have plans to drop HSX-25 into
> JDK6 or OpenJDK6, but I don't want to rule out future insanity.
I do! We need to cut ties with historical baggage.
>> - make/bsd/makefiles/universal.gmk
>>
>> I did not understand the additional logic here:
>>
>> 63 # Copy built non-universal binaries in place
>> 64 $(UNIVERSAL_COPY_LIST):
>> 65 BUILT_COPY_FILES="`find
>> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
>> 2>/dev/null`"; \
>> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
>> 67 for i in $${BUILT_COPY_FILES}; do \
>> 68 if [ -f $${i} ]; then \
>> 69 $(MKDIR) -p $(shell dirname $@); \
>> 70 $(CP) -R $${i} $@; \
>> 71 fi; \
>> 72 if [ -d $${i} ]; then \
>> 73 $(MKDIR) -p $@; \
>> 74 fi; \
>> 75 done; \
>> 76 fi
>>
>> until I realized that foo.dSYM is a directory not a file! Even so
>> don't you want to copy the contents of the directory across ?
>
> BUILT_COPY_FILES includes both files and directories so everything
> should get copied across. I've added some commments to the rule
> header and reorganized the logic a bit to hopefully be more clear.
Doesn't this assume that the directory will appear before the files
within it? Is that guaranteed?
Which leads me to ask why we have cp -R for copying files?
>> - jdk/makefiles/Tools.gmk
>>
>> Not sure about this one. Logically is seems correct but up to now this
>> has been defined for everything without it seeming to cause a problem.
>> So why do we need to change it and what impact will it have?
>
> It just seemed wrong to define something that should never be used
> on non-Solaris platforms. My control build of the entire forest
> didn't have an issue with this change so I'm planning to keep it.
Ok.
Thanks,
David
> Dan
>
>
>
>>
>> David
>> -----
>>
>> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
>>> Greetings,
>>>
>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>>> and ready for review:
>>>
>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>
>>> Here is the JDK8/HSX-25 webrev URL:
>>>
>>> OpenJDK:
>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>> Internal:
>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>
>>> This webrev includes changes for the follow repos:
>>>
>>> jdk8
>>> jdk8/hotspot
>>> jdk8/jdk
>>> jdk8/jdk/make/closed
>>>
>>> Once these changes are approved, I'm planning to push them to
>>> RT_Baseline. From there, they can follow the normal path to
>>> Main_Baseline and eventually JDK8.
>>>
>>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>>> the other repos are necessary to support importing the .diz files from
>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>> FDS related errors in the magic incantations for the new build. This is
>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>> from Solaris. In other words, this is Frankenstein's monster...
>>>
>>> Thanks to Staffan Larsen for providing an initial set of changes
>>> which I morphed into what you see here.
>>>
>>> Testing:
>>> - JPRT HSX build and test on all platforms; verification of .diz
>>> files in the MacOS X JPRT bundles
>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>> .diz files in the MacOS X JPRT bundles
>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>> repo build and test, but that no longer seems to work.
>>>
>>> As always, comments, questions and suggestions are welcome.
>>>
>>> Dan
>
From sundararajan.athijegannathan at oracle.com Wed Oct 9 06:08:35 2013
From: sundararajan.athijegannathan at oracle.com (sundararajan.athijegannathan at oracle.com)
Date: Wed, 09 Oct 2013 13:08:35 +0000
Subject: hg: jdk8/tl/nashorn: 3 new changesets
Message-ID: <20131009130838.EBB9962E8A@hg.openjdk.java.net>
Changeset: 8d29733ad609
Author: sundar
Date: 2013-10-09 10:47 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/8d29733ad609
8026112: Function("with(x ? 1e81 : (x2.constructor = 0.1)){}") throws AssertionError: double is not compatible with object
Reviewed-by: lagergren, hannesw
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
+ test/script/basic/JDK-8026112.js
Changeset: 1e03d7caa68b
Author: sundar
Date: 2013-10-09 13:26 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/1e03d7caa68b
8026125: Array.prototype.slice.call(Java.type("java.util.HashMap")) throws ClassCastException: jdk.internal.dynalink.beans.StaticClass cannot be cast to jdk.nashorn.internal.runtime.ScriptObject
Reviewed-by: hannesw, jlaskey
! src/jdk/nashorn/internal/objects/NativeArray.java
+ test/script/basic/JDK-8026125.js
Changeset: ec3094d9d5d5
Author: hannesw
Date: 2013-10-09 14:50 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/ec3094d9d5d5
8026008: Constant folding removes var statement
Reviewed-by: sundar, jlaskey
! src/jdk/nashorn/internal/codegen/FoldConstants.java
+ test/script/basic/JDK-8026008.js
+ test/script/basic/JDK-8026008.js.EXPECTED
From paul.sandoz at oracle.com Wed Oct 9 06:20:46 2013
From: paul.sandoz at oracle.com (paul.sandoz at oracle.com)
Date: Wed, 09 Oct 2013 13:20:46 +0000
Subject: hg: jdk8/tl/jdk: 8020061: Clarify reporting characteristics between
splits
Message-ID: <20131009132111.4767F62E8D@hg.openjdk.java.net>
Changeset: 1cd20806fd5c
Author: psandoz
Date: 2013-10-09 15:19 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1cd20806fd5c
8020061: Clarify reporting characteristics between splits
Reviewed-by: alanb, chegar
! src/share/classes/java/util/Spliterator.java
From mandy.chung at oracle.com Wed Oct 9 06:27:21 2013
From: mandy.chung at oracle.com (mandy.chung at oracle.com)
Date: Wed, 09 Oct 2013 13:27:21 +0000
Subject: hg: jdk8/tl/jdk: 8026027: Level.parse should return the custom Level
instance instead of the mirrored Level
Message-ID: <20131009132733.D27DC62E8E@hg.openjdk.java.net>
Changeset: cf6e39cfdf50
Author: mchung
Date: 2013-10-09 06:24 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cf6e39cfdf50
8026027: Level.parse should return the custom Level instance instead of the mirrored Level
Reviewed-by: dfuchs, chegar
! src/share/classes/java/util/logging/Level.java
+ test/java/util/logging/Level/CustomLevel.java
+ test/java/util/logging/Level/myresource.properties
From staffan.larsen at oracle.com Wed Oct 9 07:10:45 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Wed, 9 Oct 2013 16:10:45 +0200
Subject: jmx-dev RFR 6523160: RuntimeMXBean.getUptime() returns negative
values
In-Reply-To: <52553D63.5000508@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com> <52547D24.9060806@oracle.com>
<52553D63.5000508@oracle.com>
Message-ID: <8AF79393-C5A2-4458-AF72-2B90A85F11C3@oracle.com>
There is now an awful amount of different timestamps in the Management class. Can they be consolidated somehow? At least _begin_vm_creation_time and the new _begin_vm_creation_ns.
This discussion also implies that the "elapsed time" we print in the hs_err file is also wrong. It uses os::elapsedTime() which uses os::elapsed_counter().
And I guess the same thing for the VM.uptime Diagnostic Command (class VMUptimeDCmd) which also relies on os::elapsed_counter().
/Staffan
On 9 okt 2013, at 13:26, Jaroslav Bachorik wrote:
> On 8.10.2013 23:46, David Holmes wrote:
>> On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
>>> On 8.10.2013 09:34, David Holmes wrote:
>>>> Jaroslav,
>>>>
>>>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>>>> Hello,
>>>>>
>>>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>>>> System.currentTimeMillis() which makes it susceptible to changes of the
>>>>> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
>>>>> should not depend on the system time and should be calculated using a
>>>>> monotonic clock source.
>>>>>
>>>>> There is already the way to get the actual JVM uptime in ticks. It is
>>>>> accessible as Management::timestamp() and the ticks are convertible to
>>>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it
>>>>> very
>>>>> easy to switch to the monotonic clock based uptime.
>>>>
>>>> Maybe I'm missing something but TiumeStamp updates using
>>>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>>>> monotonic clock source.
>>>
>>> Hm, yes. I wasn't aware of this linux/bsd specific.
>>>
>>> Is there any reason why a non monotonic clock source is used for
>>> timestamping except of the historical one? os::javaTimeNanos() uses
>>> montonic clock when available - why can't be the same used for
>>> os::elapsed_counter() especially when a counter based on "gettimeofday"
>>> is not really a counter?
>>
>> It is all historical. These elapsed_counters and elapsed_timers make me
>> cringe. But changing it has a lot of potential consequences because of
>> the way these are used in logging etc. Certainly not something to be
>> contemplated at this stage of JDK 8.
>>
>> Perhaps a simpler fix here is to expose a startUpTimeNanos that can then
>> be used for the uptime.
>
> My attempt at this is at http://cr.openjdk.java.net/~jbachorik/6523160/webrev.01/hotspot
> I am using os::javaTimeNanos() to get the monotonic ticks where possible.
>
> The JDK part stays the same as for webrev.00
>
> -JB-
>
>>
>> David
>>
>>> -JB-
>>>
>>>>
>>>> David
>>>> -----
>>>>
>>>>
>>>>
>>>>> The patch consists of the hotspot and jdk parts.
>>>>>
>>>>> For the hotspot a new constant needs to be introduced in
>>>>> src/share/vm/services/jmm.h and the actual logic to obtain the
>>>>> uptime in
>>>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>>>
>>>>> For the jdk the changes comprise of adding the necessary JNI bridging
>>>>> methods in order to get the new uptime, introducing the same constant
>>>>> that is used in hotspot and changes to mapfile-vers files in order to
>>>>> properly build the native library.
>>>>>
>>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>>>
>>>>> Thanks,
>>>>>
>>>>> -JB-
>>>
>
From jaroslav.bachorik at oracle.com Wed Oct 9 07:19:48 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Wed, 09 Oct 2013 16:19:48 +0200
Subject: jmx-dev RFR 6523160: RuntimeMXBean.getUptime() returns negative
values
In-Reply-To: <8AF79393-C5A2-4458-AF72-2B90A85F11C3@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com> <52547D24.9060806@oracle.com>
<52553D63.5000508@oracle.com>
<8AF79393-C5A2-4458-AF72-2B90A85F11C3@oracle.com>
Message-ID: <52556604.3080900@oracle.com>
On 9.10.2013 16:10, Staffan Larsen wrote:
> There is now an awful amount of different timestamps in the Management class. Can they be consolidated somehow? At least _begin_vm_creation_time and the new _begin_vm_creation_ns.
>
> This discussion also implies that the "elapsed time" we print in the hs_err file is also wrong. It uses os::elapsedTime() which uses os::elapsed_counter().
>
> And I guess the same thing for the VM.uptime Diagnostic Command (class VMUptimeDCmd) which also relies on os::elapsed_counter().
Also the reported GC pauses duration might be wrong since it uses
Management::timestamp().
On the first sight the change looks rather trivial. But, honestly, I'm
not sure which other parts could for whatever reason break once the
time-of-day timestamp is replaced with a monotonic equivalent. One would
think that it shouldn't matter but one never knows ...
Staffan, do you think this kind of change is suitable for the current
phase of JDK release cycle? I think I could improve the patch in few
days and then it should probably be able to pass the review before ZBB.
But, it's only P3 ...
-JB-
>
> /Staffan
>
>
> On 9 okt 2013, at 13:26, Jaroslav Bachorik wrote:
>
>> On 8.10.2013 23:46, David Holmes wrote:
>>> On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
>>>> On 8.10.2013 09:34, David Holmes wrote:
>>>>> Jaroslav,
>>>>>
>>>>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>>>>> Hello,
>>>>>>
>>>>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>>>>> System.currentTimeMillis() which makes it susceptible to changes of the
>>>>>> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
>>>>>> should not depend on the system time and should be calculated using a
>>>>>> monotonic clock source.
>>>>>>
>>>>>> There is already the way to get the actual JVM uptime in ticks. It is
>>>>>> accessible as Management::timestamp() and the ticks are convertible to
>>>>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it
>>>>>> very
>>>>>> easy to switch to the monotonic clock based uptime.
>>>>>
>>>>> Maybe I'm missing something but TiumeStamp updates using
>>>>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>>>>> monotonic clock source.
>>>>
>>>> Hm, yes. I wasn't aware of this linux/bsd specific.
>>>>
>>>> Is there any reason why a non monotonic clock source is used for
>>>> timestamping except of the historical one? os::javaTimeNanos() uses
>>>> montonic clock when available - why can't be the same used for
>>>> os::elapsed_counter() especially when a counter based on "gettimeofday"
>>>> is not really a counter?
>>>
>>> It is all historical. These elapsed_counters and elapsed_timers make me
>>> cringe. But changing it has a lot of potential consequences because of
>>> the way these are used in logging etc. Certainly not something to be
>>> contemplated at this stage of JDK 8.
>>>
>>> Perhaps a simpler fix here is to expose a startUpTimeNanos that can then
>>> be used for the uptime.
>>
>> My attempt at this is at http://cr.openjdk.java.net/~jbachorik/6523160/webrev.01/hotspot
>> I am using os::javaTimeNanos() to get the monotonic ticks where possible.
>>
>> The JDK part stays the same as for webrev.00
>>
>> -JB-
>>
>>>
>>> David
>>>
>>>> -JB-
>>>>
>>>>>
>>>>> David
>>>>> -----
>>>>>
>>>>>
>>>>>
>>>>>> The patch consists of the hotspot and jdk parts.
>>>>>>
>>>>>> For the hotspot a new constant needs to be introduced in
>>>>>> src/share/vm/services/jmm.h and the actual logic to obtain the
>>>>>> uptime in
>>>>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>>>>
>>>>>> For the jdk the changes comprise of adding the necessary JNI bridging
>>>>>> methods in order to get the new uptime, introducing the same constant
>>>>>> that is used in hotspot and changes to mapfile-vers files in order to
>>>>>> properly build the native library.
>>>>>>
>>>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> -JB-
>>>>
>>
>
From daniel.daugherty at oracle.com Wed Oct 9 08:03:01 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Wed, 09 Oct 2013 09:03:01 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <525545E3.3060504@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
<52548E6D.80701@oracle.com> <525545E3.3060504@oracle.com>
Message-ID: <52557025.7060706@oracle.com>
Replies also inline...
On 10/9/13 6:02 AM, David Holmes wrote:
> inline ...
>
> On 9/10/2013 8:59 AM, Daniel D. Daugherty wrote:
>> On 10/1/13 8:52 PM, David Holmes wrote:
>>> - hotspot/make/Makefile
>>>
>>> + $(EXPORT_CLIENT_DIR)/%.dSYM: $(MINIMAL1_BUILD_DIR)/%.dSYM
>>>
>>> EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
>>>
>>> For fun you can try building minimal on OSX, but I don't know how far
>>> you will get:
>>>
>>> --with-jvm-variants=client,server,minimal1
>>>
>>> I'll point out obvious issues with minimal VM support anyway.
>>
>> Since you pointed out in a later email that minimal1 isn't
>> supported on MacOS X, I'm going to drop those changes. I'm
>> going to leave the Client VM support since there are folks
>> out in OpenJDK trying to get the Client VM working on MacOS X.
>>
>> It does look like someone added minimal1 support for other
>> non-Linux platforms, but I'm not planning to clean that up.
>
> Yes I did that when adding minimal support. Seemed better than leaving
> someone to have to rediscover what needed to be implemented if/when
> minimal support was expanded.
Thanks for the history. Are you still OK if I leave out the
FDS Minimal1 support?
> Someday I hope to remove all the duplicated EXPORT_* stuff and
> generate it based on the requested JDK_VARIANT_* values. And do it in
> a platform indpendent way - once! :)
Well it can be mostly platform independent, but there will be
minor differences in what is exported by the different platforms.
>
>>> Note that the whole jdk6_or_earlier logic is defunct as this will
>>> never be used for jdk6 or earlier. But best to clean all that up at
>>> the one time.
>>
>> Agreed that we (Oracle) currently don't have plans to drop HSX-25 into
>> JDK6 or OpenJDK6, but I don't want to rule out future insanity.
>
> I do! We need to cut ties with historical baggage.
Good sentiment, but not for this changeset. I'll file a bug to track
your idea of "best to clean all that up at one time".
>
>>> - make/bsd/makefiles/universal.gmk
>>>
>>> I did not understand the additional logic here:
>>>
>>> 63 # Copy built non-universal binaries in place
>>> 64 $(UNIVERSAL_COPY_LIST):
>>> 65 BUILT_COPY_FILES="`find
>>> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
>>> 2>/dev/null`"; \
>>> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
>>> 67 for i in $${BUILT_COPY_FILES}; do \
>>> 68 if [ -f $${i} ]; then \
>>> 69 $(MKDIR) -p $(shell dirname $@); \
>>> 70 $(CP) -R $${i} $@; \
>>> 71 fi; \
>>> 72 if [ -d $${i} ]; then \
>>> 73 $(MKDIR) -p $@; \
>>> 74 fi; \
>>> 75 done; \
>>> 76 fi
>>>
>>> until I realized that foo.dSYM is a directory not a file! Even so
>>> don't you want to copy the contents of the directory across ?
>>
>> BUILT_COPY_FILES includes both files and directories so everything
>> should get copied across. I've added some commments to the rule
>> header and reorganized the logic a bit to hopefully be more clear.
>
> Doesn't this assume that the directory will appear before the files
> within it? Is that guaranteed?
The way find works is that it lists the directory prior to listing
the files within the directory. However, even if find didn't, the
containing directory would be created via line 69 above. The one
non-obvious feature of lines 72-74 is that an empty directory named
in the BUILD_COPY_FILES list would get 'copied' to the destination.
Please check out the latest version when I get it out for review.
> Which leads me to ask why we have cp -R for copying files?
MacOS X strongly discourages use of 'cp -r' and recommends 'cp -R'
instead because 'cp -R' properly copies non-directory and non-file
file system objects, e.g., symlinks. So if BUILD_COPY_FILES happens
to contain a symlink, then the symlink is copied to the destination.
>
>>> - jdk/makefiles/Tools.gmk
>>>
>>> Not sure about this one. Logically is seems correct but up to now this
>>> has been defined for everything without it seeming to cause a problem.
>>> So why do we need to change it and what impact will it have?
>>
>> It just seemed wrong to define something that should never be used
>> on non-Solaris platforms. My control build of the entire forest
>> didn't have an issue with this change so I'm planning to keep it.
>
> Ok.
>
> Thanks,
> David
Again, thanks for the thorough reviews.
Dan
>
>> Dan
>>
>>
>>
>>>
>>> David
>>> -----
>>>
>>> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
>>>> Greetings,
>>>>
>>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X
>>>> done
>>>> and ready for review:
>>>>
>>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>>
>>>> Here is the JDK8/HSX-25 webrev URL:
>>>>
>>>> OpenJDK:
>>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>>> Internal:
>>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>>
>>>>
>>>> This webrev includes changes for the follow repos:
>>>>
>>>> jdk8
>>>> jdk8/hotspot
>>>> jdk8/jdk
>>>> jdk8/jdk/make/closed
>>>>
>>>> Once these changes are approved, I'm planning to push them to
>>>> RT_Baseline. From there, they can follow the normal path to
>>>> Main_Baseline and eventually JDK8.
>>>>
>>>> This work enables FDS on MacOS X for the 'hotspot' repo; the
>>>> changes in
>>>> the other repos are necessary to support importing the .diz files from
>>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>>> FDS related errors in the magic incantations for the new build.
>>>> This is
>>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>>> from Solaris. In other words, this is Frankenstein's monster...
>>>>
>>>> Thanks to Staffan Larsen for providing an initial set of changes
>>>> which I morphed into what you see here.
>>>>
>>>> Testing:
>>>> - JPRT HSX build and test on all platforms; verification of .diz
>>>> files in the MacOS X JPRT bundles
>>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>>> .diz files in the MacOS X JPRT bundles
>>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>>> repo build and test, but that no longer seems to work.
>>>>
>>>> As always, comments, questions and suggestions are welcome.
>>>>
>>>> Dan
>>
From roger.riggs at oracle.com Wed Oct 9 08:07:08 2013
From: roger.riggs at oracle.com (roger.riggs at oracle.com)
Date: Wed, 09 Oct 2013 15:07:08 +0000
Subject: hg: jdk8/tl/jdk: 2 new changesets
Message-ID: <20131009150735.2783B62E95@hg.openjdk.java.net>
Changeset: e3b70e601c1c
Author: rriggs
Date: 2013-10-09 11:02 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e3b70e601c1c
8024612: java/time/tck/java/time/format/TCKDateTimeFormatters.java failed
Summary: The test should be using the Locale.Category.FORMAT to verify the test data
Reviewed-by: lancea
! test/java/time/tck/java/time/format/TCKDateTimeFormatters.java
Changeset: 09e2a73aa1dc
Author: rriggs
Date: 2013-09-26 15:19 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/09e2a73aa1dc
8025718: Enhance error messages for parsing
Summary: Add values and types to exception messages
Reviewed-by: lancea
Contributed-by: scolebourne at joda.org
! src/share/classes/java/time/DayOfWeek.java
! src/share/classes/java/time/Instant.java
! src/share/classes/java/time/LocalDate.java
! src/share/classes/java/time/LocalDateTime.java
! src/share/classes/java/time/LocalTime.java
! src/share/classes/java/time/Month.java
! src/share/classes/java/time/MonthDay.java
! src/share/classes/java/time/OffsetDateTime.java
! src/share/classes/java/time/OffsetTime.java
! src/share/classes/java/time/Year.java
! src/share/classes/java/time/YearMonth.java
! src/share/classes/java/time/ZoneId.java
! src/share/classes/java/time/ZoneOffset.java
! src/share/classes/java/time/ZonedDateTime.java
! src/share/classes/java/time/format/Parsed.java
! test/java/time/test/java/time/format/TestDateTimeFormatter.java
From dmitry.samersoff at oracle.com Wed Oct 9 08:35:31 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Wed, 09 Oct 2013 19:35:31 +0400
Subject: RR(S): JDK-8005810: SA: Update Hotspot Serviceability Agent for Method
Parameter Reflection and Generic Type Signature Data
Message-ID: <525577C3.6020101@oracle.com>
Hi Everybody,
Please, review the changes for:
JDK-8005810: Update Hotspot Serviceability Agent for Method Parameter
Reflection and Generic Type Signature Data
The fix contributed by Eric McCorkle.
http://cr.openjdk.java.net/~dsamersoff/JDK-8005810/webrev.01/
https://bugs.openjdk.java.net/browse/JDK-8005810
-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.
From peter.allwin at oracle.com Wed Oct 9 08:56:55 2013
From: peter.allwin at oracle.com (Peter Allwin)
Date: Wed, 9 Oct 2013 17:56:55 +0200
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
In-Reply-To: <524EA984.4030509@oracle.com>
References:
<524EA984.4030509@oracle.com>
Message-ID: <1934FDE5-6289-4BBF-9A59-0B4BB054121E@oracle.com>
Hi Jaroslav,
The "ERROR:" prefix is hard-coded in error_messages.c and is not subject to localisation etc. so I think performing a case-sensitive compare seems reasonable - although if you feel strongly about it I can definitely change it.
Thanks for the review!
/peter
On Oct 4, 2013, at 1:41 PM, Jaroslav Bachorik wrote:
> Looks fine. Just a thought - wouldn't it make sense to check for the error message disregarding the case?
>
> -JB-
>
> On 4.10.2013 13:29, Staffan Larsen wrote:
>> Looks good!
>>
>> Thanks,
>> /Staffan
>>
>> On 4 okt 2013, at 13:13, Peter Allwin wrote:
>>
>>> Hello!
>>>
>>> Looking for reviews for this very simple fix to a JDK test, where warnings in stderr could cause the test to fail.
>>>
>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
>>> CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
>>>
>>>
>>> Thanks!
>>> /peter
>>
>
From jaroslav.bachorik at oracle.com Wed Oct 9 09:06:28 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Wed, 09 Oct 2013 18:06:28 +0200
Subject: RFR: 8014446: JT_JDK: Wrong detection of test result for test
com/sun/jdi/NoLaunchOptionTest.java
In-Reply-To: <1934FDE5-6289-4BBF-9A59-0B4BB054121E@oracle.com>
References:
<524EA984.4030509@oracle.com>
<1934FDE5-6289-4BBF-9A59-0B4BB054121E@oracle.com>
Message-ID: <52557F04.3020000@oracle.com>
Hi,
On 9.10.2013 17:56, Peter Allwin wrote:
> Hi Jaroslav,
>
> The "ERROR:" prefix is hard-coded in error_messages.c and is not subject to localisation etc. so I think performing a case-sensitive compare seems reasonable - although if you feel strongly about it I can definitely change it.
In that case I'm fine with the case-sensitive comparison.
-JB-
>
> Thanks for the review!
> /peter
>
> On Oct 4, 2013, at 1:41 PM, Jaroslav Bachorik wrote:
>
>> Looks fine. Just a thought - wouldn't it make sense to check for the error message disregarding the case?
>>
>> -JB-
>>
>> On 4.10.2013 13:29, Staffan Larsen wrote:
>>> Looks good!
>>>
>>> Thanks,
>>> /Staffan
>>>
>>> On 4 okt 2013, at 13:13, Peter Allwin wrote:
>>>
>>>> Hello!
>>>>
>>>> Looking for reviews for this very simple fix to a JDK test, where warnings in stderr could cause the test to fail.
>>>>
>>>> Bug: https://bugs.openjdk.java.net/browse/JDK-8014446
>>>> CR: http://cr.openjdk.java.net/~allwin/8014446/webrev.00/
>>>>
>>>>
>>>> Thanks!
>>>> /peter
>>>
>>
>
From daniel.daugherty at oracle.com Wed Oct 9 09:06:59 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Wed, 09 Oct 2013 10:06:59 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <52557025.7060706@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
<52548E6D.80701@oracle.com> <525545E3.3060504@oracle.com>
<52557025.7060706@oracle.com>
Message-ID: <52557F23.7080109@oracle.com>
On 10/9/13 9:03 AM, Daniel D. Daugherty wrote:
> Replies also inline...
>
>
> On 10/9/13 6:02 AM, David Holmes wrote:
>> inline ...
>>
>> On 9/10/2013 8:59 AM, Daniel D. Daugherty wrote:
>>> On 10/1/13 8:52 PM, David Holmes wrote:
>>
>>>> - make/bsd/makefiles/universal.gmk
>>>>
>>>> I did not understand the additional logic here:
>>>>
>>>> 63 # Copy built non-universal binaries in place
>>>> 64 $(UNIVERSAL_COPY_LIST):
>>>> 65 BUILT_COPY_FILES="`find
>>>> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
>>>> 2>/dev/null`"; \
>>>> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
>>>> 67 for i in $${BUILT_COPY_FILES}; do \
>>>> 68 if [ -f $${i} ]; then \
>>>> 69 $(MKDIR) -p $(shell dirname $@); \
>>>> 70 $(CP) -R $${i} $@; \
>>>> 71 fi; \
>>>> 72 if [ -d $${i} ]; then \
>>>> 73 $(MKDIR) -p $@; \
>>>> 74 fi; \
>>>> 75 done; \
>>>> 76 fi
>>>>
>>>> until I realized that foo.dSYM is a directory not a file! Even so
>>>> don't you want to copy the contents of the directory across ?
>>>
>>> BUILT_COPY_FILES includes both files and directories so everything
>>> should get copied across. I've added some commments to the rule
>>> header and reorganized the logic a bit to hopefully be more clear.
>>
>> Doesn't this assume that the directory will appear before the files
>> within it? Is that guaranteed?
>
> The way find works is that it lists the directory prior to listing
> the files within the directory. However, even if find didn't, the
> containing directory would be created via line 69 above. The one
> non-obvious feature of lines 72-74 is that an empty directory named
> in the BUILD_COPY_FILES list would get 'copied' to the destination.
>
> Please check out the latest version when I get it out for review.
It turns out that the above block was the reason for the flat hierarchy
reported by Staffan when:
ZIP_DEBUGINFO_FILES=0 a.k.a. '--disable-zip-debug-info'
is used. I've redone this block again in a much simpler fashion
and that seems to be working.
Dan
From henry.jen at oracle.com Wed Oct 9 10:00:42 2013
From: henry.jen at oracle.com (henry.jen at oracle.com)
Date: Wed, 09 Oct 2013 17:00:42 +0000
Subject: hg: jdk8/tl/jdk: 8023524: Mechanism to dump generated lambda classes
/ log lambda code generation
Message-ID: <20131009170105.2E54462E9D@hg.openjdk.java.net>
Changeset: c070001c4f60
Author: henryjen
Date: 2013-10-09 09:41 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c070001c4f60
8023524: Mechanism to dump generated lambda classes / log lambda code generation
Reviewed-by: plevart, mchung, forax, jjb
Contributed-by: brian.goetz at oracle.com, henry.jen at oracle.com
! src/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java
+ src/share/classes/java/lang/invoke/ProxyClassesDumper.java
+ test/java/lang/invoke/lambda/LogGeneratedClassesTest.java
From staffan.larsen at oracle.com Wed Oct 9 11:02:18 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Wed, 9 Oct 2013 20:02:18 +0200
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <52557F23.7080109@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
<52548E6D.80701@oracle.com> <525545E3.3060504@oracle.com>
<52557025.7060706@oracle.com> <52557F23.7080109@oracle.com>
Message-ID: <04CF60AF-0859-42FE-9883-641027ED6352@oracle.com>
On 9 okt 2013, at 18:06, Daniel D. Daugherty wrote:
>
> On 10/9/13 9:03 AM, Daniel D. Daugherty wrote:
>> Replies also inline...
>>
>>
>> On 10/9/13 6:02 AM, David Holmes wrote:
>>> inline ...
>>>
>>> On 9/10/2013 8:59 AM, Daniel D. Daugherty wrote:
>>>> On 10/1/13 8:52 PM, David Holmes wrote:
>>>
>>>>> - make/bsd/makefiles/universal.gmk
>>>>>
>>>>> I did not understand the additional logic here:
>>>>>
>>>>> 63 # Copy built non-universal binaries in place
>>>>> 64 $(UNIVERSAL_COPY_LIST):
>>>>> 65 BUILT_COPY_FILES="`find
>>>>> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
>>>>> 2>/dev/null`"; \
>>>>> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
>>>>> 67 for i in $${BUILT_COPY_FILES}; do \
>>>>> 68 if [ -f $${i} ]; then \
>>>>> 69 $(MKDIR) -p $(shell dirname $@); \
>>>>> 70 $(CP) -R $${i} $@; \
>>>>> 71 fi; \
>>>>> 72 if [ -d $${i} ]; then \
>>>>> 73 $(MKDIR) -p $@; \
>>>>> 74 fi; \
>>>>> 75 done; \
>>>>> 76 fi
>>>>>
>>>>> until I realized that foo.dSYM is a directory not a file! Even so
>>>>> don't you want to copy the contents of the directory across ?
>>>>
>>>> BUILT_COPY_FILES includes both files and directories so everything
>>>> should get copied across. I've added some commments to the rule
>>>> header and reorganized the logic a bit to hopefully be more clear.
>>>
>>> Doesn't this assume that the directory will appear before the files within it? Is that guaranteed?
>>
>> The way find works is that it lists the directory prior to listing
>> the files within the directory. However, even if find didn't, the
>> containing directory would be created via line 69 above. The one
>> non-obvious feature of lines 72-74 is that an empty directory named
>> in the BUILD_COPY_FILES list would get 'copied' to the destination.
>>
>> Please check out the latest version when I get it out for review.
>
> It turns out that the above block was the reason for the flat hierarchy
> reported by Staffan when:
>
> ZIP_DEBUGINFO_FILES=0 a.k.a. '--disable-zip-debug-info'
>
> is used. I've redone this block again in a much simpler fashion
> and that seems to be working.
Very good! I look forward to testing it.
/Staffan
From staffan.larsen at oracle.com Wed Oct 9 11:04:03 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Wed, 9 Oct 2013 20:04:03 +0200
Subject: RR(S): JDK-8005810: SA: Update Hotspot Serviceability Agent for
Method Parameter Reflection and Generic Type Signature Data
In-Reply-To: <525577C3.6020101@oracle.com>
References: <525577C3.6020101@oracle.com>
Message-ID: <4B22AD89-66CD-4CDE-9DA8-40934E04A31D@oracle.com>
Dmitry,
Are there any tests that exercise this functionality?
/Staffan
On 9 okt 2013, at 17:35, Dmitry Samersoff wrote:
> Hi Everybody,
>
> Please, review the changes for:
>
> JDK-8005810: Update Hotspot Serviceability Agent for Method Parameter
> Reflection and Generic Type Signature Data
>
> The fix contributed by Eric McCorkle.
>
> http://cr.openjdk.java.net/~dsamersoff/JDK-8005810/webrev.01/
>
> https://bugs.openjdk.java.net/browse/JDK-8005810
>
> -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.
From staffan.larsen at oracle.com Wed Oct 9 11:12:47 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Wed, 9 Oct 2013 20:12:47 +0200
Subject: jmx-dev RFR 6523160: RuntimeMXBean.getUptime() returns negative
values
In-Reply-To: <52556604.3080900@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com> <52547D24.9060806@oracle.com>
<52553D63.5000508@oracle.com>
<8AF79393-C5A2-4458-AF72-2B90A85F11C3@oracle.com>
<52556604.3080900@oracle.com>
Message-ID: <5AFB7AC3-43C0-4A48-B716-1434CD7DBA93@oracle.com>
On 9 okt 2013, at 16:19, Jaroslav Bachorik wrote:
> On 9.10.2013 16:10, Staffan Larsen wrote:
>> There is now an awful amount of different timestamps in the Management class. Can they be consolidated somehow? At least _begin_vm_creation_time and the new _begin_vm_creation_ns.
>>
>> This discussion also implies that the "elapsed time" we print in the hs_err file is also wrong. It uses os::elapsedTime() which uses os::elapsed_counter().
>>
>> And I guess the same thing for the VM.uptime Diagnostic Command (class VMUptimeDCmd) which also relies on os::elapsed_counter().
>
> Also the reported GC pauses duration might be wrong since it uses Management::timestamp().
>
> On the first sight the change looks rather trivial. But, honestly, I'm not sure which other parts could for whatever reason break once the time-of-day timestamp is replaced with a monotonic equivalent. One would think that it shouldn't matter but one never knows ...
>
> Staffan, do you think this kind of change is suitable for the current phase of JDK release cycle? I think I could improve the patch in few days and then it should probably be able to pass the review before ZBB. But, it's only P3 ...
I think it is a bit late in the release cycle to clean this up in the way it should be cleaned up. I think we should wait until the first 8 update release and do a more thorough job than we have time for right now.
/Staffan
>
> -JB-
>
>>
>> /Staffan
>>
>>
>> On 9 okt 2013, at 13:26, Jaroslav Bachorik wrote:
>>
>>> On 8.10.2013 23:46, David Holmes wrote:
>>>> On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
>>>>> On 8.10.2013 09:34, David Holmes wrote:
>>>>>> Jaroslav,
>>>>>>
>>>>>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>>>>>> Hello,
>>>>>>>
>>>>>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>>>>>> System.currentTimeMillis() which makes it susceptible to changes of the
>>>>>>> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
>>>>>>> should not depend on the system time and should be calculated using a
>>>>>>> monotonic clock source.
>>>>>>>
>>>>>>> There is already the way to get the actual JVM uptime in ticks. It is
>>>>>>> accessible as Management::timestamp() and the ticks are convertible to
>>>>>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it
>>>>>>> very
>>>>>>> easy to switch to the monotonic clock based uptime.
>>>>>>
>>>>>> Maybe I'm missing something but TiumeStamp updates using
>>>>>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>>>>>> monotonic clock source.
>>>>>
>>>>> Hm, yes. I wasn't aware of this linux/bsd specific.
>>>>>
>>>>> Is there any reason why a non monotonic clock source is used for
>>>>> timestamping except of the historical one? os::javaTimeNanos() uses
>>>>> montonic clock when available - why can't be the same used for
>>>>> os::elapsed_counter() especially when a counter based on "gettimeofday"
>>>>> is not really a counter?
>>>>
>>>> It is all historical. These elapsed_counters and elapsed_timers make me
>>>> cringe. But changing it has a lot of potential consequences because of
>>>> the way these are used in logging etc. Certainly not something to be
>>>> contemplated at this stage of JDK 8.
>>>>
>>>> Perhaps a simpler fix here is to expose a startUpTimeNanos that can then
>>>> be used for the uptime.
>>>
>>> My attempt at this is at http://cr.openjdk.java.net/~jbachorik/6523160/webrev.01/hotspot
>>> I am using os::javaTimeNanos() to get the monotonic ticks where possible.
>>>
>>> The JDK part stays the same as for webrev.00
>>>
>>> -JB-
>>>
>>>>
>>>> David
>>>>
>>>>> -JB-
>>>>>
>>>>>>
>>>>>> David
>>>>>> -----
>>>>>>
>>>>>>
>>>>>>
>>>>>>> The patch consists of the hotspot and jdk parts.
>>>>>>>
>>>>>>> For the hotspot a new constant needs to be introduced in
>>>>>>> src/share/vm/services/jmm.h and the actual logic to obtain the
>>>>>>> uptime in
>>>>>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>>>>>
>>>>>>> For the jdk the changes comprise of adding the necessary JNI bridging
>>>>>>> methods in order to get the new uptime, introducing the same constant
>>>>>>> that is used in hotspot and changes to mapfile-vers files in order to
>>>>>>> properly build the native library.
>>>>>>>
>>>>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> -JB-
>>>>>
>>>
>>
>
From roger.riggs at oracle.com Wed Oct 9 11:42:06 2013
From: roger.riggs at oracle.com (roger.riggs at oracle.com)
Date: Wed, 09 Oct 2013 18:42:06 +0000
Subject: hg: jdk8/tl/jdk: 8024076: Incorrect 2 -> 4 year parsing and
resolution in DateTimeFormatter
Message-ID: <20131009184222.ABF3E62EA7@hg.openjdk.java.net>
Changeset: d42fe440bda8
Author: rriggs
Date: 2013-10-09 13:34 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d42fe440bda8
8024076: Incorrect 2 -> 4 year parsing and resolution in DateTimeFormatter
Summary: Add appendValueReduced method based on a ChronoLocalDate to provide context for the value
Reviewed-by: sherman
Contributed-by: scolebourne at joda.org
! src/share/classes/java/time/format/DateTimeFormatterBuilder.java
! test/java/time/tck/java/time/format/TCKDateTimeFormatterBuilder.java
! test/java/time/test/java/time/format/TestDateTimeFormatterBuilder.java
! test/java/time/test/java/time/format/TestReducedParser.java
! test/java/time/test/java/time/format/TestReducedPrinter.java
From brian.burkhalter at oracle.com Wed Oct 9 11:50:05 2013
From: brian.burkhalter at oracle.com (brian.burkhalter at oracle.com)
Date: Wed, 09 Oct 2013 18:50:05 +0000
Subject: hg: jdk8/tl/jdk: 8016252: More defensive HashSet.readObject
Message-ID: <20131009185018.E91C762EA8@hg.openjdk.java.net>
Changeset: b86e6700266e
Author: bpb
Date: 2013-10-09 11:47 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b86e6700266e
8016252: More defensive HashSet.readObject
Summary: Add data validation checks in readObject().
Reviewed-by: alanb, mduigou, chegar
Contributed-by: Brian Burkhalter
! src/share/classes/java/util/HashSet.java
+ test/java/util/HashSet/Serialization.java
From staffan.larsen at oracle.com Wed Oct 9 11:53:52 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Wed, 9 Oct 2013 20:53:52 +0200
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <52552011.6020904@oracle.com>
References: <524D73C4.7060004@oracle.com> <5253A32D.40502@oracle.com>
<52541925.5030907@oracle.com> <525509CB.1050301@oracle.com>
<52551185.8070209@oracle.com> <52551BFB.5040309@oracle.com>
<52552011.6020904@oracle.com>
Message-ID:
I can absolutely see where Aleksey (and 99% of the Java users) is coming from. From a user perspective there is no difference between the launcher arguments and the JVM arguments. Unfortunately the implementation does make a difference between them and it's not easy to hide this difference.
A similar problem is that the actual main-class is not known by the JVM. We work around this with the sun.java.command property, but when a custom launcher is used that property is not set and so we lack information about this in the JVM (and in the management APIs). The typical example of this for me is running eclipse.
Perhaps we could extend the JNI invocation API to allow these things to be passed through? A problem is of course to define what a "launcher argument" is. For example, sometimes Java is launched from inside another application (web browser, anyone?) and then the arguments to that host process makes little sense to pass on.
Regards,
/Staffan
On 9 okt 2013, at 11:21, Aleksey Shipilev wrote:
> On 10/09/2013 01:03 PM, Mandy Chung wrote:
>>> Do you see any better option?
>>
>> I no longer work in this area and don't have any suggestion at the
>> moment. Although parsing of VM name is not ideal, I suggest it as a
>> workaround for now and give the serviceability team time to look into
>> this to address your request.
>
> Ok, I'll leave the ticket open meanwhile.
>
> Thanks,
> -Aleksey.
>
From valerie.peng at oracle.com Wed Oct 9 13:26:29 2013
From: valerie.peng at oracle.com (valerie.peng at oracle.com)
Date: Wed, 09 Oct 2013 20:26:29 +0000
Subject: hg: jdk8/tl/jdk: 5 new changesets
Message-ID: <20131009202801.65D1362EB0@hg.openjdk.java.net>
Changeset: 1597066b58ee
Author: valeriep
Date: 2013-10-08 11:07 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1597066b58ee
7196382: PKCS11 provider should support 2048-bit DH
Summary: Query and enforce range checking using the values from native PKCS11 library.
Reviewed-by: xuelei
! src/share/classes/com/sun/crypto/provider/DHParameterGenerator.java
! src/share/classes/sun/security/pkcs11/P11KeyPairGenerator.java
+ test/sun/security/pkcs11/KeyPairGenerator/TestDH2048.java
Changeset: 3da8be8d13bf
Author: valeriep
Date: 2013-10-08 11:17 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3da8be8d13bf
8012900: CICO ignores AAD in GCM mode
Summary: Change GCM decryption to not return result until tag verification passed
Reviewed-by: xuelei
! src/share/classes/com/sun/crypto/provider/CipherBlockChaining.java
! src/share/classes/com/sun/crypto/provider/CipherCore.java
! src/share/classes/com/sun/crypto/provider/CipherFeedback.java
! src/share/classes/com/sun/crypto/provider/CounterMode.java
! src/share/classes/com/sun/crypto/provider/ElectronicCodeBook.java
! src/share/classes/com/sun/crypto/provider/FeedbackCipher.java
! src/share/classes/com/sun/crypto/provider/GCTR.java
! src/share/classes/com/sun/crypto/provider/GaloisCounterMode.java
! src/share/classes/com/sun/crypto/provider/OutputFeedback.java
! src/share/classes/com/sun/crypto/provider/PCBC.java
! src/share/classes/javax/crypto/CipherSpi.java
+ test/com/sun/crypto/provider/Cipher/AES/TestCICOWithGCMAndAAD.java
Changeset: f4305254f92f
Author: valeriep
Date: 2013-10-08 11:35 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f4305254f92f
8014374: Cannot initialize "AES/GCM/NoPadding" on wrap/unseal on solaris with OracleUcrypto
Summary: Removed OracleUcrypto provider regression tests from OpenJDK
Reviewed-by: xuelei
- test/com/oracle/security/ucrypto/TestAES.java
- test/com/oracle/security/ucrypto/TestDigest.java
- test/com/oracle/security/ucrypto/TestRSA.java
- test/com/oracle/security/ucrypto/UcryptoTest.java
Changeset: e044b0151858
Author: valeriep
Date: 2013-10-08 14:41 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e044b0151858
8025967: addition of -Werror broke the old build
Summary: Fixed and suppressed compiler warnings on rawtypes
Reviewed-by: vinnie
! src/share/classes/com/sun/jndi/ldap/LdapCtxFactory.java
! src/share/classes/com/sun/jndi/ldap/LdapPoolManager.java
! src/share/classes/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnectionOldImpl.java
! src/share/classes/java/lang/instrument/Instrumentation.java
! src/share/classes/java/net/ContentHandler.java
! src/share/classes/javax/crypto/JceSecurityManager.java
! src/share/classes/sun/instrument/InstrumentationImpl.java
! src/share/classes/sun/net/www/content/image/gif.java
! src/share/classes/sun/net/www/content/image/jpeg.java
! src/share/classes/sun/net/www/content/image/png.java
! src/share/classes/sun/net/www/content/image/x_xbitmap.java
! src/share/classes/sun/net/www/content/image/x_xpixmap.java
! src/share/classes/sun/net/www/protocol/https/HttpsURLConnectionImpl.java
! src/share/classes/sun/reflect/misc/MethodUtil.java
! src/share/classes/sun/security/provider/AuthPolicyFile.java
! src/share/classes/sun/security/provider/SubjectCodeSource.java
! src/share/classes/sun/security/tools/jarsigner/Main.java
! src/share/classes/sun/security/tools/keytool/Main.java
! src/share/classes/sun/security/tools/policytool/PolicyTool.java
Changeset: 7a7b73a40bb1
Author: valeriep
Date: 2013-10-09 13:07 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7a7b73a40bb1
Merge
- src/share/classes/com/sun/jdi/connect/package.html
- src/share/classes/com/sun/jdi/connect/spi/package.html
- src/share/classes/com/sun/jdi/event/package.html
- src/share/classes/com/sun/jdi/package.html
- src/share/classes/com/sun/jdi/request/package.html
- src/share/classes/com/sun/management/package.html
- src/share/classes/com/sun/tools/attach/package.html
- src/share/classes/com/sun/tools/attach/spi/package.html
- src/share/classes/com/sun/tools/jconsole/package.html
From dmitry.samersoff at oracle.com Wed Oct 9 13:59:42 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Thu, 10 Oct 2013 00:59:42 +0400
Subject: RR(S): JDK-8005810: SA: Update Hotspot Serviceability Agent for
Method Parameter Reflection and Generic Type Signature Data
In-Reply-To: <4B22AD89-66CD-4CDE-9DA8-40934E04A31D@oracle.com>
References: <525577C3.6020101@oracle.com>
<4B22AD89-66CD-4CDE-9DA8-40934E04A31D@oracle.com>
Message-ID: <5255C3BE.2020601@oracle.com>
Staffan,
I don't have specific test, but I rebuild vm testbase with -parameters
and then run nsk.sajdi.
-Dmitry
On 2013-10-09 22:04, Staffan Larsen wrote:
> Dmitry,
>
> Are there any tests that exercise this functionality?
>
> /Staffan
>
> On 9 okt 2013, at 17:35, Dmitry Samersoff wrote:
>
>> Hi Everybody,
>>
>> Please, review the changes for:
>>
>> JDK-8005810: Update Hotspot Serviceability Agent for Method Parameter
>> Reflection and Generic Type Signature Data
>>
>> The fix contributed by Eric McCorkle.
>>
>> http://cr.openjdk.java.net/~dsamersoff/JDK-8005810/webrev.01/
>>
>> https://bugs.openjdk.java.net/browse/JDK-8005810
>>
>> -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.
>
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From yumin.qi at oracle.com Wed Oct 9 14:35:53 2013
From: yumin.qi at oracle.com (yumin.qi at oracle.com)
Date: Wed, 09 Oct 2013 14:35:53 -0700
Subject: RR(S): JDK-8005810: SA: Update Hotspot Serviceability Agent for
Method Parameter Reflection and Generic Type Signature Data
In-Reply-To: <5255C3BE.2020601@oracle.com>
References: <525577C3.6020101@oracle.com> <4B22AD89-66CD-4CDE-9DA8-40934E04A31D@oracle.com>
<5255C3BE.2020601@oracle.com>
Message-ID: <5255CC39.8050001@oracle.com>
I think in SA, the command 'vmstructsdump' will trigger your code?
Thanks
Yumin
On 10/9/2013 1:59 PM, Dmitry Samersoff wrote:
> Staffan,
>
> I don't have specific test, but I rebuild vm testbase with -parameters
> and then run nsk.sajdi.
>
> -Dmitry
>
> On 2013-10-09 22:04, Staffan Larsen wrote:
>> Dmitry,
>>
>> Are there any tests that exercise this functionality?
>>
>> /Staffan
>>
>> On 9 okt 2013, at 17:35, Dmitry Samersoff wrote:
>>
>>> Hi Everybody,
>>>
>>> Please, review the changes for:
>>>
>>> JDK-8005810: Update Hotspot Serviceability Agent for Method Parameter
>>> Reflection and Generic Type Signature Data
>>>
>>> The fix contributed by Eric McCorkle.
>>>
>>> http://cr.openjdk.java.net/~dsamersoff/JDK-8005810/webrev.01/
>>>
>>> https://bugs.openjdk.java.net/browse/JDK-8005810
>>>
>>> -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.
>
From daniel.daugherty at oracle.com Wed Oct 9 15:39:38 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Wed, 09 Oct 2013 16:39:38 -0600
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not handled
in ConstantPool::,compare_entry_to and copy_entry_to
In-Reply-To: <52544E78.9090103@oracle.com>
References: <52544E78.9090103@oracle.com>
Message-ID: <5255DB2A.5080209@oracle.com>
On 10/8/13 12:27 PM, Coleen Phillimore wrote:
> Summary: Add missing cases.
>
> I verified this with the test for
> https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to
> copy the test into with modifications the hotspot repository, still
> working on refactoring the test for the JDK repository for after this
> gets pushed.
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
src/share/vm/oops/constantPool.cpp
No comments.
Thumbs up.
Dan
> bug link https://bugs.openjdk.java.net/browse/JDK-8025185
>
> Thanks,
> Coleen
>
>
From karen.kinnear at oracle.com Wed Oct 9 16:26:52 2013
From: karen.kinnear at oracle.com (karen.kinnear at oracle.com)
Date: Wed, 09 Oct 2013 23:26:52 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8026185:
nsk/jvmit/GetMethodDeclaringClass/declcls001 failed
Message-ID: <20131009232700.3E4DB62EB5@hg.openjdk.java.net>
Changeset: d25557d03ec0
Author: acorn
Date: 2013-10-09 17:57 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/d25557d03ec0
8026185: nsk/jvmit/GetMethodDeclaringClass/declcls001 failed
Summary: Missed initialization. Thanks Coleen.
Reviewed-by: coleenp, minqi
! src/share/vm/oops/instanceKlass.cpp
From brian.burkhalter at oracle.com Wed Oct 9 17:29:26 2013
From: brian.burkhalter at oracle.com (brian.burkhalter at oracle.com)
Date: Thu, 10 Oct 2013 00:29:26 +0000
Subject: hg: jdk8/tl/jdk: 7189139: BigInteger's staticRandom field can be a
source of bottlenecks.
Message-ID: <20131010002949.8ACA162EB7@hg.openjdk.java.net>
Changeset: 673f8045311e
Author: bpb
Date: 2013-10-09 17:22 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/673f8045311e
7189139: BigInteger's staticRandom field can be a source of bottlenecks.
Summary: Use ThreadLocalRandom instead of SecureRandom.
Reviewed-by: shade, psandoz
Contributed-by: Brian Burkhalter
! src/share/classes/java/math/BigInteger.java
From mike.duigou at oracle.com Wed Oct 9 18:25:58 2013
From: mike.duigou at oracle.com (mike.duigou at oracle.com)
Date: Thu, 10 Oct 2013 01:25:58 +0000
Subject: hg: jdk8/tl/jdk: 8024709: TreeMap.DescendingKeyIterator 'remove'
confuses iterator position
Message-ID: <20131010012639.85AE162EB8@hg.openjdk.java.net>
Changeset: eab3c09745b6
Author: bchristi
Date: 2013-10-09 12:13 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/eab3c09745b6
8024709: TreeMap.DescendingKeyIterator 'remove' confuses iterator position
Summary: Override remove() method in DescendingKeyIterator
Reviewed-by: alanb, mduigou, psandoz
! src/share/classes/java/util/TreeMap.java
! test/java/util/Collection/MOAT.java
From joe.darcy at oracle.com Wed Oct 9 18:32:23 2013
From: joe.darcy at oracle.com (joe.darcy at oracle.com)
Date: Thu, 10 Oct 2013 01:32:23 +0000
Subject: hg: jdk8/tl/jdk: 8024354: Explicitly permit
DoubleStream.sum()/average() implementations to use higher
precision summation
Message-ID: <20131010013235.BE03562EBB@hg.openjdk.java.net>
Changeset: c13309f658e1
Author: darcy
Date: 2013-10-09 18:31 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c13309f658e1
8024354: Explicitly permit DoubleStream.sum()/average() implementations to use higher precision summation
Reviewed-by: mduigou, briangoetz
! src/share/classes/java/util/DoubleSummaryStatistics.java
! src/share/classes/java/util/stream/DoubleStream.java
From coleen.phillimore at oracle.com Wed Oct 9 19:04:45 2013
From: coleen.phillimore at oracle.com (Coleen Phillimore)
Date: Wed, 09 Oct 2013 22:04:45 -0400
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not handled
in ConstantPool::,compare_entry_to and copy_entry_to
In-Reply-To: <5255DB2A.5080209@oracle.com>
References: <52544E78.9090103@oracle.com> <5255DB2A.5080209@oracle.com>
Message-ID: <52560B3D.1090009@oracle.com>
Thanks Dan!
Coleen
On 10/9/2013 6:39 PM, Daniel D. Daugherty wrote:
> On 10/8/13 12:27 PM, Coleen Phillimore wrote:
>> Summary: Add missing cases.
>>
>> I verified this with the test for
>> https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to
>> copy the test into with modifications the hotspot repository, still
>> working on refactoring the test for the JDK repository for after this
>> gets pushed.
>>
>> open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
>
> src/share/vm/oops/constantPool.cpp
> No comments.
>
> Thumbs up.
>
> Dan
>
>
>> bug link https://bugs.openjdk.java.net/browse/JDK-8025185
>>
>> Thanks,
>> Coleen
>>
>>
>
From david.holmes at oracle.com Wed Oct 9 20:39:00 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 13:39:00 +1000
Subject: jmx-dev Codereview request: 8025207 Intermittent test failure:
javax/management/monitor/CounterMonitorThresholdTest.java
In-Reply-To: <525508DD.6070108@oracle.com>
References: 52415BE3.1030803@oracle.com <5254ABA9.6010405@oracle.com>
<525508DD.6070108@oracle.com>
Message-ID: <52562154.2050807@oracle.com>
I missed the earlier println.
Reviewed.
Thanks,
David
On 9/10/2013 5:42 PM, shanliang wrote:
> David Holmes wrote:
>> shanliang wrote:
>>> Daniel Fuchs wrote:
>>>> On 9/23/13 8:27 PM, shanliang wrote:
>>>>> Hi,
>>>>>
>>>>> Please review this test fix, if the test continues failing, then we
>>>>> need
>>>>> to investigate the Monitor implementation.
>>>>>
>>>>> webrev: http://cr.openjdk.java.net/~sjiang/JDK-8025207/00/
>>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8025207
>>>>>
>>>>> Thanks,
>>>>> Shanliang
>>>>>
>>>>
>>>> Hi Shanliang,
>>>>
>>>> There seems to an issue in the exit condition of the loop in the
>>>> new code.
>>>>
>>>> The old code had:
>>>>
>>>> 150 if (derivedGaugeValue.intValue() != derivedGauge[i])
>>>>
>>>> the new code has:
>>>>
>>>> 155 } while (derivedGaugeValue.intValue() != counter[i]);
>>> Good catch, I changed the code, even they are same today:
>>> Here is the new version:
>>> http://cr.openjdk.java.net/~sjiang/JDK-8025207/01/
>>
>> My concern here is that if the test times out and is killed by the
>> test harness, there is absolutely nothing to indicate where the test
>> got stuck. So I would suggest at least adding a println before
>> entering the loop and again after.
> I think today the test gives info about each test step:
> Line 139:
> System.out.println("\nStart monitoring...");
> tells the looping entry
>
> Line 146:
> System.out.println("\nCounter = " + mbean.getCounter());
> within the loop tells which counter value is being tested.
>
> Line 156:
> System.out.println("Threshold = " + thresholdValue);
> within the loop tells the test end of a count value.
>
> Line 168:
> System.out.println("\nStop monitoring...");
> tells the looping end.
>
> and the class Listener prints out notification info allowing to know
> where is testing too.
>
> Thanks,
> Shanliang
>>
>> David
>> -----
>
From david.holmes at oracle.com Wed Oct 9 20:44:52 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 13:44:52 +1000
Subject: jmx-dev RFR 6523160: RuntimeMXBean.getUptime() returns negative
values
In-Reply-To: <5AFB7AC3-43C0-4A48-B716-1434CD7DBA93@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com> <52547D24.9060806@oracle.com>
<52553D63.5000508@oracle.com>
<8AF79393-C5A2-4458-AF72-2B90A85F11C3@oracle.com>
<52556604.3080900@oracle.com>
<5AFB7AC3-43C0-4A48-B716-1434CD7DBA93@oracle.com>
Message-ID: <525622B4.5020606@oracle.com>
On 10/10/2013 4:12 AM, Staffan Larsen wrote:
>
> On 9 okt 2013, at 16:19, Jaroslav Bachorik wrote:
>
>> On 9.10.2013 16:10, Staffan Larsen wrote:
>>> There is now an awful amount of different timestamps in the Management class. Can they be consolidated somehow? At least _begin_vm_creation_time and the new _begin_vm_creation_ns.
>>>
>>> This discussion also implies that the "elapsed time" we print in the hs_err file is also wrong. It uses os::elapsedTime() which uses os::elapsed_counter().
>>>
>>> And I guess the same thing for the VM.uptime Diagnostic Command (class VMUptimeDCmd) which also relies on os::elapsed_counter().
>>
>> Also the reported GC pauses duration might be wrong since it uses Management::timestamp().
>>
>> On the first sight the change looks rather trivial. But, honestly, I'm not sure which other parts could for whatever reason break once the time-of-day timestamp is replaced with a monotonic equivalent. One would think that it shouldn't matter but one never knows ...
>>
>> Staffan, do you think this kind of change is suitable for the current phase of JDK release cycle? I think I could improve the patch in few days and then it should probably be able to pass the review before ZBB. But, it's only P3 ...
>
> I think it is a bit late in the release cycle to clean this up in the way it should be cleaned up. I think we should wait until the first 8 update release and do a more thorough job than we have time for right now.
I second that. The elapsed_counter/elpased_timer APIs and
implementations are a tangled mess. But part of the problem has been
that people want/expect monotonic time-of-day based timestamps (yes a
contradiction - though some people make sure TOD does not get modified
on their production systems). The use of timestamps in logging has to be
examined carefully - mainly GC logging. I recall a "simple" attempted
change in the past that resulted in trying to compare a nanoTime based
timestamp with the TOD. :(
David
-----
> /Staffan
>
>
>>
>> -JB-
>>
>>>
>>> /Staffan
>>>
>>>
>>> On 9 okt 2013, at 13:26, Jaroslav Bachorik wrote:
>>>
>>>> On 8.10.2013 23:46, David Holmes wrote:
>>>>> On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
>>>>>> On 8.10.2013 09:34, David Holmes wrote:
>>>>>>> Jaroslav,
>>>>>>>
>>>>>>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>>>>>>> System.currentTimeMillis() which makes it susceptible to changes of the
>>>>>>>> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
>>>>>>>> should not depend on the system time and should be calculated using a
>>>>>>>> monotonic clock source.
>>>>>>>>
>>>>>>>> There is already the way to get the actual JVM uptime in ticks. It is
>>>>>>>> accessible as Management::timestamp() and the ticks are convertible to
>>>>>>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it
>>>>>>>> very
>>>>>>>> easy to switch to the monotonic clock based uptime.
>>>>>>>
>>>>>>> Maybe I'm missing something but TiumeStamp updates using
>>>>>>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>>>>>>> monotonic clock source.
>>>>>>
>>>>>> Hm, yes. I wasn't aware of this linux/bsd specific.
>>>>>>
>>>>>> Is there any reason why a non monotonic clock source is used for
>>>>>> timestamping except of the historical one? os::javaTimeNanos() uses
>>>>>> montonic clock when available - why can't be the same used for
>>>>>> os::elapsed_counter() especially when a counter based on "gettimeofday"
>>>>>> is not really a counter?
>>>>>
>>>>> It is all historical. These elapsed_counters and elapsed_timers make me
>>>>> cringe. But changing it has a lot of potential consequences because of
>>>>> the way these are used in logging etc. Certainly not something to be
>>>>> contemplated at this stage of JDK 8.
>>>>>
>>>>> Perhaps a simpler fix here is to expose a startUpTimeNanos that can then
>>>>> be used for the uptime.
>>>>
>>>> My attempt at this is at http://cr.openjdk.java.net/~jbachorik/6523160/webrev.01/hotspot
>>>> I am using os::javaTimeNanos() to get the monotonic ticks where possible.
>>>>
>>>> The JDK part stays the same as for webrev.00
>>>>
>>>> -JB-
>>>>
>>>>>
>>>>> David
>>>>>
>>>>>> -JB-
>>>>>>
>>>>>>>
>>>>>>> David
>>>>>>> -----
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> The patch consists of the hotspot and jdk parts.
>>>>>>>>
>>>>>>>> For the hotspot a new constant needs to be introduced in
>>>>>>>> src/share/vm/services/jmm.h and the actual logic to obtain the
>>>>>>>> uptime in
>>>>>>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>>>>>>
>>>>>>>> For the jdk the changes comprise of adding the necessary JNI bridging
>>>>>>>> methods in order to get the new uptime, introducing the same constant
>>>>>>>> that is used in hotspot and changes to mapfile-vers files in order to
>>>>>>>> properly build the native library.
>>>>>>>>
>>>>>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> -JB-
>>>>>>
>>>>
>>>
>>
>
From david.holmes at oracle.com Wed Oct 9 21:03:16 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 14:03:16 +1000
Subject: RFR (S): 8025427 jstat tests fails on 32-bit platforms
In-Reply-To: <35223AD7-3203-4308-B6C7-7D2258FE31CB@oracle.com>
References: <7483E09E-5283-412F-BEA3-F7CC015A67DC@oracle.com>
<525423AF.8030008@oracle.com>
<35223AD7-3203-4308-B6C7-7D2258FE31CB@oracle.com>
Message-ID: <52562704.8020203@oracle.com>
On 9/10/2013 3:04 AM, Staffan Larsen wrote:
> Thanks Serguei!
>
> Still need an official Reviewer.
Reviewed!
Thanks for explaining the diff to the regex :) Hard to spot.
David
-----
> Thanks,
> /Staffan
>
> On 8 okt 2013, at 17:24, serguei.spitsyn at oracle.com wrote:
>
>> Looks good.
>>
>> Thanks,
>> Serguei
>>
>> On 10/8/13 5:06 AM, Staffan Larsen wrote:
>>> Pinging again: Please, pretty please? :)
>>>
>>> /Staffan
>>>
>>> On 1 okt 2013, at 20:46, Staffan Larsen wrote:
>>>
>>>> Any Reviewer who can take a look?
>>>>
>>>> Thanks,
>>>> /Staffan
>>>>
>>>> On 27 sep 2013, at 23:59, Staffan Larsen wrote:
>>>>
>>>>> This change makes jstat output '-' instead of '\ufffd' when the result of a calculation is NaN. '\ufffd' is typically not displayable in a terminal.
>>>>>
>>>>> This change also updates the tests to allow '-' as the output int the CCS (Compressed Class Space Space - Percent Used) column from -gcutil and -gccause. It can be hard to see from the diff but what I have done is change the regexp for that column from:
>>>>>
>>>>> [0-9]+\.[0-9]+
>>>>>
>>>>> to:
>>>>>
>>>>> ([0-9]+\.[0-9]+)|-
>>>>>
>>>>> Testing: Passes tests locally, currently running JPRT.
>>>>>
>>>>> webrev: http://cr.openjdk.java.net/~sla/8025427/webrev.00/
>>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8025427
>>>>>
>>>>> Thanks,
>>>>> /Staffan
>>
>
From john.r.rose at oracle.com Wed Oct 9 21:15:37 2013
From: john.r.rose at oracle.com (John Rose)
Date: Wed, 9 Oct 2013 21:15:37 -0700
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not
handled in ConstantPool::, compare_entry_to and copy_entry_to
In-Reply-To: <52560B3D.1090009@oracle.com>
References: <52544E78.9090103@oracle.com> <5255DB2A.5080209@oracle.com>
<52560B3D.1090009@oracle.com>
Message-ID:
Looks good.
Suggestion: Make normalize_error_tag be static, for namespace cleanliness. Even better, move it into constantTag, as (say) constantTag::non_error_value().
? John
On Oct 9, 2013, at 7:04 PM, Coleen Phillimore wrote:
>
> Thanks Dan!
> Coleen
>
> On 10/9/2013 6:39 PM, Daniel D. Daugherty wrote:
>> On 10/8/13 12:27 PM, Coleen Phillimore wrote:
>>> Summary: Add missing cases.
>>>
>>> I verified this with the test for https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to copy the test into with modifications the hotspot repository, still working on refactoring the test for the JDK repository for after this gets pushed.
>>>
>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
>>
>> src/share/vm/oops/constantPool.cpp
>> No comments.
>>
>> Thumbs up.
>>
>> Dan
>>
>>
>>> bug link https://bugs.openjdk.java.net/browse/JDK-8025185
>>>
>>> Thanks,
>>> Coleen
>>>
>>>
>>
>
From david.holmes at oracle.com Wed Oct 9 21:19:19 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 14:19:19 +1000
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To: <52551185.8070209@oracle.com>
References: <524D73C4.7060004@oracle.com> <5253A32D.40502@oracle.com>
<52541925.5030907@oracle.com> <525509CB.1050301@oracle.com>
<52551185.8070209@oracle.com>
Message-ID: <52562AC7.3020100@oracle.com>
On 9/10/2013 6:19 PM, Aleksey Shipilev wrote:
> Hi Mandy,
>
> On 10/09/2013 11:46 AM, Mandy Chung wrote:
>> Like David said, -client/-server and -d32/-d64 are launcher option but
>> not VM options. RuntimeMXBean.getInputArguments() returns the arguments
>> passed to the VM which is created via the JNI_CreateJavaVM API.
>
> Hm, this is the first time I hear about this contract, is it really
> specified somewhere? Or, is it the informal status quo? Because it feels
> remarkably as the implementation detail. I don't think users should be
> exposed to the distinction between launcher and VM anyway.
It is our launcher and the use of -client/-server/-d32/-d64 which is the
implementation detail! So if you want the launcher args (which you do
because you intend to execute the same launcher) then the launcher has
to make them available. To that end I think the best long term solution
is to have a well-defined property that the launcher can set (if it
chooses) to hold launcher arguments that the launcher wishes to show the
VM. A public variation of the sun.java.command property. The
implementation should be quite simple and the CCC request would not be
that involved.
It is definitely unfortunate that there is no easy way to determine
which VM you are running, in a manner that allows you to launch a
similar one. This impacts a lot of our testing as well - many tests will
launch the default VM (based on jvm.cfg and ergonomics) instead of the
VM intended to be tested!
David
-----
>> -client/-server is the java launcher option that determines which VM to
>> load and initialize and it's not an option passed to the JVM. In
>> addition, -client/-server is actually not a valid option to the hotspot
>> VM. Instead, you can find out if it's a server/client/minimal VM from
>> getVmName().
>
> Okay, let me state the intent cleaner. The tools I maintain (jmh and
> jcstress are notable examples) need to start exactly the same VM with
> exactly the same "java" options. How would you propose to do this?
>
> Recovering the command line by parsing getVmName() uses (unstable)
> stringly conventions to detect the running VM, and also pushes me to
> maintain the list of all possible VMs in the detection code.
>
> RuntimeMXBean.getInputArguments() omits some launcher options, but it is
> fixable to expose these options to the user, no stringly parsing is
> required on user side.
>
> Do you see any better option?
>
> -Aleksey.
>
From david.holmes at oracle.com Wed Oct 9 21:33:19 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 14:33:19 +1000
Subject: RFR 6523160: RuntimeMXBean.getUptime() returns negative values
In-Reply-To: <52553D63.5000508@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com> <52547D24.9060806@oracle.com>
<52553D63.5000508@oracle.com>
Message-ID: <52562E0F.7020108@oracle.com>
On 9/10/2013 9:26 PM, Jaroslav Bachorik wrote:
> On 8.10.2013 23:46, David Holmes wrote:
>> On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
>>> On 8.10.2013 09:34, David Holmes wrote:
>>>> Jaroslav,
>>>>
>>>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>>>> Hello,
>>>>>
>>>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>>>> System.currentTimeMillis() which makes it susceptible to changes of
>>>>> the
>>>>> OS time (eg. changing timezone, NTP synchronization etc.). The uptime
>>>>> should not depend on the system time and should be calculated using a
>>>>> monotonic clock source.
>>>>>
>>>>> There is already the way to get the actual JVM uptime in ticks. It is
>>>>> accessible as Management::timestamp() and the ticks are convertible to
>>>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus making it
>>>>> very
>>>>> easy to switch to the monotonic clock based uptime.
>>>>
>>>> Maybe I'm missing something but TiumeStamp updates using
>>>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>>>> monotonic clock source.
>>>
>>> Hm, yes. I wasn't aware of this linux/bsd specific.
>>>
>>> Is there any reason why a non monotonic clock source is used for
>>> timestamping except of the historical one? os::javaTimeNanos() uses
>>> montonic clock when available - why can't be the same used for
>>> os::elapsed_counter() especially when a counter based on "gettimeofday"
>>> is not really a counter?
>>
>> It is all historical. These elapsed_counters and elapsed_timers make me
>> cringe. But changing it has a lot of potential consequences because of
>> the way these are used in logging etc. Certainly not something to be
>> contemplated at this stage of JDK 8.
>>
>> Perhaps a simpler fix here is to expose a startUpTimeNanos that can then
>> be used for the uptime.
>
> My attempt at this is at
> http://cr.openjdk.java.net/~jbachorik/6523160/webrev.01/hotspot
> I am using os::javaTimeNanos() to get the monotonic ticks where possible.
Only nit with this is that you initialize _begin_vm_creation_ns very
early compared to the other timestamps. Plus I'm not even certain when
this global initializer will execute relative to the VM initialization
sequence! Best to move it into Management::init() to where
_begin_vm_creation_time is initialized.
David
-----
> The JDK part stays the same as for webrev.00
>
> -JB-
>
>>
>> David
>>
>>> -JB-
>>>
>>>>
>>>> David
>>>> -----
>>>>
>>>>
>>>>
>>>>> The patch consists of the hotspot and jdk parts.
>>>>>
>>>>> For the hotspot a new constant needs to be introduced in
>>>>> src/share/vm/services/jmm.h and the actual logic to obtain the
>>>>> uptime in
>>>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>>>
>>>>> For the jdk the changes comprise of adding the necessary JNI bridging
>>>>> methods in order to get the new uptime, introducing the same constant
>>>>> that is used in hotspot and changes to mapfile-vers files in order to
>>>>> properly build the native library.
>>>>>
>>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>>>
>>>>> Thanks,
>>>>>
>>>>> -JB-
>>>
>
From david.holmes at oracle.com Wed Oct 9 21:41:25 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 14:41:25 +1000
Subject: [ping][ping] Re: jmx-dev RFR: 8004926
sun/management/jmxremote/bootstrap/CustomLauncherTest.sh
oftenly times out
In-Reply-To: <52553EAD.4040506@oracle.com>
References: <52308ECC.1050304@oracle.com>
<523138CB.9040401@oracle.com> <52317782.1060300@oracle.com>
<523179C8.50606@oracle.com> <5231CCE4.7060902@oracle.com>
<5231DA1B.4070706@oracle.com> <5231DE69.7090309@oracle.com>
<523B0B30.4020003@oracle.com> <5252C1B6.2060904@oracle.com>
<52537F36.8020001@oracle.com> <5253ED95.20706@oracle.com>
<52552EBA.4060308@oracle.com> <52553EAD.4040506@oracle.com>
Message-ID: <52562FF5.5060304@oracle.com>
On 9/10/2013 9:31 PM, Jaroslav Bachorik wrote:
> On 9.10.2013 12:23, David Holmes wrote:
>> Jaroslav,
>>
>> Thanks for the details description of changes - much appreciated.
>>
>> There is a lot to digest in there. :)
>
> Yep, it started as a simple fix :/
>
>>
>> It isn't obvious to me why these tests require a full JDK?
>
> IDK, LocalManagementTest.sh was listed as one requiring full JDK. Its
> requirements are the same as the ones of CustomLauncherTest.sh (now
> *.java) so it seemed logical to list it there too.
Ah! Now I see it - it uses tools.jar which implies a full JDK.
>>
>> I don't quite follow the libjvm lookup logic - I would expect that you
>> would always want to test the libjvm that is currently running - though
>> it is hard to determine that.
>
> I'm afraid I can't be of much assistance here - I just took what was in
> the *.sh version and converted it to *.java.
Okay. I expect this will need revisiting at some point.
Thanks,
David
-----
> -JB-
>
>>
>> Thanks,
>> David
>>
>> On 8/10/2013 9:33 PM, Jaroslav Bachorik wrote:
>>> On 8.10.2013 05:42, David Holmes wrote:
>>>> Jaroslav,
>>>>
>>>> Can you summarise the changes please? With the conversion to Java and
>>>> the infrastructure additions I can't tell what is actually fixing the
>>>> original timeout issue :)
>>>
>>> The timeout was most caused by using the same file for communication
>>> between java processes in more test cases. When those test cases were
>>> run in parallel the file got rewritten silently and some of the tests
>>> could end up trying to connect to incorrect port in the target
>>> application. I was able to reproduce the timeout by interleaving the
>>> test runs for CustomLauncherTest.sh and LocalManagementTest.sh and
>>> adding an artificial delay to CusteomLauncherTest.sh to allow
>>> LocalManagementTest.sh to change the port in the file.
>>>
>>> While it could be fixed by using a different file for each test case I
>>> took the liberty of converting the shell tests to java tests. This
>>> allows me to remove the communication file and, in the end, make the
>>> tests more robust.
>>>
>>> CustomLauncherTest.java and LocalManagementTest.java are the tests
>>> converted from shell to java. I decided to convert
>>> LocalManagementTest.sh as well because it has the same problems as the
>>> CustomLauncherTest.sh.
>>>
>>> The changes in the testlibrary are about introducing new methods
>>> allowing the tests easily start a process and wait for a certain text
>>> appearing in its stdout/stderr. Using these methods the caller can wait
>>> till the callee is fully initialized and eg. ready to accept
>>> connections.
>>>
>>> The changes in launchers make the launchers actually executable + I am
>>> adding a linux-amd64 launcher (I needed that one to work on the changes
>>> locally and thought it might be nice to have one more platform covered
>>> by the test).
>>>
>>> I've update the webrev to include changes to LocalManagementTest and
>>> TEST.groups (both of those tests require JDK) -
>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.05
>>>
>>> -JB-
>>>
>>>>
>>>> Thanks,
>>>> David
>>>>
>>>> On 8/10/2013 12:14 AM, Jaroslav Bachorik wrote:
>>>>> On 19.9.2013 16:33, Jaroslav Bachorik wrote:
>>>>>> The updated webrev:
>>>>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.03
>>>>>>
>>>>>> I've moved some of the functionality to the testlibrary.
>>>>>>
>>>>>> -JB -
>>>>>>
>>>>>> On 12.9.2013 17:31, Jaroslav Bachorik wrote:
>>>>>>> On 09/12/2013 05:13 PM, Dmitry Samersoff wrote:
>>>>>>>> Jaroslav,
>>>>>>>>
>>>>>>>> CustomLauncherTest.java:
>>>>>>>>
>>>>>>>> 102: this check could be moved to switch at ll. 108
>>>>>>>> otherwise test fails on "sunos" and "linux" because PLATFORM
>>>>>>>> remains
>>>>>>>> unset.
>>>>>>> Good idea. Thanks.
>>>>>>>
>>>>>>>> 129: I would prefer don't have pattern like this one ever in shell
>>>>>>>> script. Could you prepare a list of VM's to check and just loop
>>>>>>>> over
>>>>>>>> it?
>>>>>>>> It makes test better readable. Also I think nowdays we can always
>>>>>>>> use
>>>>>>>> server VM.
>>>>>>> I tried to mirror the original shell test as closely as possible. It
>>>>>>> would be nice if we could rely on the "server" vm only. Definitely
>>>>>>> more
>>>>>>> readable.
>>>>>>>
>>>>>>> -JB-
>>>>>>>
>>>>>>>> -Dmitry
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2013-09-12 18:17, Jaroslav Bachorik wrote:
>>>>>>>>> On 09/12/2013 10:22 AM, Jaroslav Bachorik wrote:
>>>>>>>>>> On 09/12/2013 10:12 AM, Chris Hegarty wrote:
>>>>>>>>>>> On 09/12/2013 04:45 AM, David Holmes wrote:
>>>>>>>>>>>> Hi Jaroslav,
>>>>>>>>>>>>
>>>>>>>>>>>> You need a copyright notice in the new file.
>>>>>>>>>>>>
>>>>>>>>>>>> As written this test can only run on a full JDK - so please add
>>>>>>>>>>>> it to
>>>>>>>>>>>> the :needs_jdk group in TEST.groups. (Does jcmd really needs to
>>>>>>>>>>>> come
>>>>>>>>>>>> from the test-jdk? And use the VMOPTS passed to the test?)
>>>>>>>>>>>>
>>>>>>>>>>>> Is there a reason this test can't run on OSX? I know it would
>>>>>>>>>>>> need
>>>>>>>>>>>> further modification but was wondering if there is something
>>>>>>>>>>>> inherent in
>>>>>>>>>>>> the test that makes it inapplicable to OSX.
>>>>>>>>>>>>
>>>>>>>>>>>> I think the test would be a lot simpler if the jdk tests had
>>>>>>>>>>>> the
>>>>>>>>>>>> hotspot
>>>>>>>>>>>> test library's process tools available. :(
>>>>>>>>>>> We have some, is there an obvious gap?
>>>>>>>>>>>
>>>>>>>>>>> http://hg.openjdk.java.net/jdk8/tl/jdk/file/e407df8093dc/test/lib/testlibrary/jdk/testlibrary/
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> Hm, thanks for the info. I should have used this library instead.
>>>>>>>>>>
>>>>>>>>>> Please, stand by for the updated webrev.
>>>>>>>>> I was able to get rid off the JCMD. Using the testlibrary the
>>>>>>>>> target
>>>>>>>>> application can recognize its own PID and print it to its stdout.
>>>>>>>>> The
>>>>>>>>> main application then just reads the stdout to parse the PID. No
>>>>>>>>> need
>>>>>>>>> for JCMD any more.
>>>>>>>>>
>>>>>>>>> I could not find a way to remove the dependency on "test.jdk"
>>>>>>>>> system
>>>>>>>>> property. According to the jtreg web documentation
>>>>>>>>> (http://openjdk.java.net/jtreg/vmoptions.html#cmdLineOpts) a
>>>>>>>>> "test.java"
>>>>>>>>> system property should be available but in fact is not. But it
>>>>>>>>> seems
>>>>>>>>> that the testlibrary uses "test.jdk" system property too.
>>>>>>>>>
>>>>>>>>> The test does not run on OSX because nobody built the launcher
>>>>>>>>> binary :)
>>>>>>>>> I think it is a kind of DIY so I took the liberty of adding a
>>>>>>>>> linux-amd64 launcher while working on the test.
>>>>>>>>>
>>>>>>>>> While working with the test library I realized I was missing a
>>>>>>>>> crucial
>>>>>>>>> feature (at least for my purposes) - waiting for a certain
>>>>>>>>> message to
>>>>>>>>> appear in the stdout/stderr of the launched process. Very often I
>>>>>>>>> need
>>>>>>>>> to wait for the target process to get to certain point before the
>>>>>>>>> test
>>>>>>>>> can be allowed to continue - and the point is indicated by a
>>>>>>>>> message in
>>>>>>>>> stdout/stderr. Currently all the proc tools are designed to
>>>>>>>>> work in
>>>>>>>>> "batch" mode - the whole stdout/stderr is captured in strings and
>>>>>>>>> analyzed after the target process died - and are not suitable for
>>>>>>>>> this
>>>>>>>>> kind of usage.
>>>>>>>>>
>>>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/8004926/webrev.01
>>>>>>>>>
>>>>>>>>>> -JB-
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -Chris.
>>>>>>>>>>>
>>>>>>>>>>>> David
>>>>>>>>>>>> -----
>>>>>>>>>>>>
>>>>>>>>>>>> On 12/09/2013 1:39 AM, Jaroslav Bachorik wrote:
>>>>>>>>>>>>> Please, review the patch for an intermittently failing test.
>>>>>>>>>>>>>
>>>>>>>>>>>>> The test is a shell test, using files for the interprocess
>>>>>>>>>>>>> synchronization. This leads to intermittent failures.
>>>>>>>>>>>>>
>>>>>>>>>>>>> In order to fix this the test is rewritten in Java - the
>>>>>>>>>>>>> original
>>>>>>>>>>>>> functionality and outputs should be 100% preserved. The
>>>>>>>>>>>>> patch is
>>>>>>>>>>>>> unfortunately a bit difficult to follow since there is no
>>>>>>>>>>>>> similarity
>>>>>>>>>>>>> between the *.sh and *.java file so one needs to go through
>>>>>>>>>>>>> the
>>>>>>>>>>>>> new
>>>>>>>>>>>>> source in whole.
>>>>>>>>>>>>>
>>>>>>>>>>>>> The changes in "launcher" files are all about adding
>>>>>>>>>>>>> permissions to
>>>>>>>>>>>>> execute (0755) and as such the webrev shows no differences.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Issue : JDK-8004926
>>>>>>>>>>>>> Webrev :
>>>>>>>>>>>>> http://cr.openjdk.java.net/~jbachorik/8004926/webrev.00
>>>>>>>>>>>>>
>>>>>>>>>>>>> -JB-
>>>>>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>
>>>
>
From ioi.lam at oracle.com Wed Oct 9 22:30:19 2013
From: ioi.lam at oracle.com (Ioi Lam)
Date: Wed, 09 Oct 2013 22:30:19 -0700
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not handled
in ConstantPool::,compare_entry_to and copy_entry_to
In-Reply-To: <52560B3D.1090009@oracle.com>
References: <52544E78.9090103@oracle.com> <5255DB2A.5080209@oracle.com>
<52560B3D.1090009@oracle.com>
Message-ID: <52563B6B.4050003@oracle.com>
Coleen,
I would suggest adding these sanity checks:
1063 } break;
1064
case JVM_CONSTANT_UnresolvedClassInError:
case JVM_CONSTANT_MethodHandleInError:
case JVM_CONSTANT_MethodTypeInError:
assert(0, "should have been eliminated by normalize_error_tag");
// fall through
1065 // Invalid is used as the tag for the second constant pool entry
1066 // occupied by JVM_CONSTANT_Double or JVM_CONSTANT_Long. It should
1067 // not be seen by itself.
1068 case JVM_CONSTANT_Invalid: // fall through
1069
1070 default:
1071 ShouldNotReachHere();
1072 break;
1073 }
Thanks
- Ioi
On 10/09/2013 07:04 PM, Coleen Phillimore wrote:
>
> Thanks Dan!
> Coleen
>
> On 10/9/2013 6:39 PM, Daniel D. Daugherty wrote:
>> On 10/8/13 12:27 PM, Coleen Phillimore wrote:
>>> Summary: Add missing cases.
>>>
>>> I verified this with the test for
>>> https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to
>>> copy the test into with modifications the hotspot repository, still
>>> working on refactoring the test for the JDK repository for after
>>> this gets pushed.
>>>
>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
>>
>> src/share/vm/oops/constantPool.cpp
>> No comments.
>>
>> Thumbs up.
>>
>> Dan
>>
>>
>>> bug link https://bugs.openjdk.java.net/browse/JDK-8025185
>>>
>>> Thanks,
>>> Coleen
>>>
>>>
>>
>
From coleen.phillimore at oracle.com Wed Oct 9 23:26:32 2013
From: coleen.phillimore at oracle.com (coleen.phillimore at oracle.com)
Date: Thu, 10 Oct 2013 06:26:32 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131010062639.0FC2262EC0@hg.openjdk.java.net>
Changeset: b4a4fdc1f464
Author: coleenp
Date: 2013-10-09 21:45 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/b4a4fdc1f464
8025185: MethodHandleInError and MethodTypeInError not handled in ConstantPool::compare_entry_to and copy_entry_to
Summary: Add missing cases.
Reviewed-by: sspitsyn, dcubed
! src/share/vm/oops/constantPool.cpp
Changeset: e831448418ac
Author: coleenp
Date: 2013-10-09 22:01 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/e831448418ac
Merge
From shanliang.jiang at oracle.com Wed Oct 9 23:49:33 2013
From: shanliang.jiang at oracle.com (shanliang.jiang at oracle.com)
Date: Thu, 10 Oct 2013 06:49:33 +0000
Subject: hg: jdk8/tl/jdk: 8025206: Intermittent test failure:
javax/management/monitor/NullAttributeValueTest.java
Message-ID: <20131010064945.52B3A62EC3@hg.openjdk.java.net>
Changeset: e8097e1e18a7
Author: sjiang
Date: 2013-10-10 08:49 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e8097e1e18a7
8025206: Intermittent test failure: javax/management/monitor/NullAttributeValueTest.java
Reviewed-by: dholmes, dfuchs, jbachorik
! test/javax/management/monitor/NullAttributeValueTest.java
From shanliang.jiang at oracle.com Wed Oct 9 23:38:38 2013
From: shanliang.jiang at oracle.com (shanliang.jiang at oracle.com)
Date: Thu, 10 Oct 2013 06:38:38 +0000
Subject: hg: jdk8/tl/jdk: 8025207: Intermittent test failure:
javax/management/monitor/CounterMonitorThresholdTest.java
Message-ID: <20131010063900.29E1C62EC1@hg.openjdk.java.net>
Changeset: e901a618dcff
Author: sjiang
Date: 2013-10-10 08:37 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e901a618dcff
8025207: Intermittent test failure: javax/management/monitor/CounterMonitorThresholdTest.java
Reviewed-by: dfuchs, dholmes
! test/javax/management/monitor/CounterMonitorThresholdTest.java
From shanliang.jiang at oracle.com Thu Oct 10 00:04:02 2013
From: shanliang.jiang at oracle.com (shanliang.jiang at oracle.com)
Date: Thu, 10 Oct 2013 07:04:02 +0000
Subject: hg: jdk8/tl/jdk: 8025205: Intermittent test failure:
javax/management/remote/mandatory/connection/BrokenConnectionTest.java
Message-ID: <20131010070414.34A2A62EC4@hg.openjdk.java.net>
Changeset: a30f6fd581b3
Author: sjiang
Date: 2013-10-10 09:01 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a30f6fd581b3
8025205: Intermittent test failure: javax/management/remote/mandatory/connection/BrokenConnectionTest.java
Reviewed-by: dholmes, dfuchs, jbachorik
! test/javax/management/remote/mandatory/connection/BrokenConnectionTest.java
From staffan.larsen at oracle.com Thu Oct 10 00:38:46 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Thu, 10 Oct 2013 07:38:46 +0000
Subject: hg: jdk8/tl/jdk: 8025427: jstat tests fails on 32-bit platforms
Message-ID: <20131010073859.3EABA62EC9@hg.openjdk.java.net>
Changeset: 6aa637dde16e
Author: sla
Date: 2013-10-10 09:38 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6aa637dde16e
8025427: jstat tests fails on 32-bit platforms
Reviewed-by: ehelin, dsamersoff, dholmes, sspitsyn
! src/share/classes/sun/tools/jstat/RowClosure.java
! test/ProblemList.txt
! test/sun/tools/jstat/gcCauseOutput1.awk
! test/sun/tools/jstat/lineCounts1.awk
! test/sun/tools/jstat/lineCounts2.awk
! test/sun/tools/jstat/lineCounts3.awk
! test/sun/tools/jstat/lineCounts4.awk
! test/sun/tools/jstat/timeStamp1.awk
! test/sun/tools/jstatd/jstatGcutilOutput1.awk
From mandy.chung at oracle.com Thu Oct 10 00:45:02 2013
From: mandy.chung at oracle.com (Mandy Chung)
Date: Thu, 10 Oct 2013 00:45:02 -0700
Subject: RFR (S) JDK-8025700: RuntimeMXBean.getInputArguments() should
include -server/-client/-d32/-d64
In-Reply-To:
References: <524D73C4.7060004@oracle.com> <5253A32D.40502@oracle.com>
<52541925.5030907@oracle.com> <525509CB.1050301@oracle.com>
<52551185.8070209@oracle.com> <52551BFB.5040309@oracle.com>
<52552011.6020904@oracle.com>
Message-ID: <52565AFE.1000209@oracle.com>
On 10/9/2013 11:53 AM, Staffan Larsen wrote:
> I can absolutely see where Aleksey (and 99% of the Java users) is coming from. From a user perspective there is no difference between the launcher arguments and the JVM arguments. Unfortunately the implementation does make a difference between them and it's not easy to hide this difference.
>
> A similar problem is that the actual main-class is not known by the JVM. We work around this with the sun.java.command property, but when a custom launcher is used that property is not set and so we lack information about this in the JVM (and in the management APIs). The typical example of this for me is running eclipse.
I also think that this is a good enhancement to obtain the information
required to relaunch the VM besides JVM arguments as well as the entry
point. BTW main-class is one kind of entry point and it would be useful
to monitoring the entry point for use by other agents.
> Perhaps we could extend the JNI invocation API to allow these things to be passed through?
That's probably the appropriate API to take additional non-VM
information to pass through.
> A problem is of course to define what a "launcher argument" is. For example, sometimes Java is launched from inside another application (web browser, anyone?) and then the arguments to that host process makes little sense to pass on.
Maybe just not to define what the value to the VM is - simply some
String passed from the one who creates the VM and publish that via a
supported API.
Mandy
> Regards,
> /Staffan
>
> On 9 okt 2013, at 11:21, Aleksey Shipilev wrote:
>
>> On 10/09/2013 01:03 PM, Mandy Chung wrote:
>>>> Do you see any better option?
>>> I no longer work in this area and don't have any suggestion at the
>>> moment. Although parsing of VM name is not ideal, I suggest it as a
>>> workaround for now and give the serviceability team time to look into
>>> this to address your request.
>> Ok, I'll leave the ticket open meanwhile.
>>
>> Thanks,
>> -Aleksey.
>>
From weijun.wang at oracle.com Thu Oct 10 00:26:37 2013
From: weijun.wang at oracle.com (weijun.wang at oracle.com)
Date: Thu, 10 Oct 2013 07:26:37 +0000
Subject: hg: jdk8/tl/jdk: 8026235: keytool NSS test should use 64 bit lib on
Solaris
Message-ID: <20131010072652.AE4E062EC5@hg.openjdk.java.net>
Changeset: 74b4d20769fd
Author: weijun
Date: 2013-10-10 15:24 +0800
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/74b4d20769fd
8026235: keytool NSS test should use 64 bit lib on Solaris
Reviewed-by: vinnie
! test/sun/security/tools/keytool/autotest.sh
From staffan.larsen at oracle.com Thu Oct 10 01:02:39 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Thu, 10 Oct 2013 10:02:39 +0200
Subject: RR(S): JDK-8005810: SA: Update Hotspot Serviceability Agent for
Method Parameter Reflection and Generic Type Signature Data
In-Reply-To: <5255C3BE.2020601@oracle.com>
References: <525577C3.6020101@oracle.com>
<4B22AD89-66CD-4CDE-9DA8-40934E04A31D@oracle.com>
<5255C3BE.2020601@oracle.com>
Message-ID:
Ok. I would have preferred an explicit test, but this seems to cover it.
Reviewed!
/Staffan
On 9 okt 2013, at 22:59, Dmitry Samersoff wrote:
> Staffan,
>
> I don't have specific test, but I rebuild vm testbase with -parameters
> and then run nsk.sajdi.
>
> -Dmitry
>
> On 2013-10-09 22:04, Staffan Larsen wrote:
>> Dmitry,
>>
>> Are there any tests that exercise this functionality?
>>
>> /Staffan
>>
>> On 9 okt 2013, at 17:35, Dmitry Samersoff wrote:
>>
>>> Hi Everybody,
>>>
>>> Please, review the changes for:
>>>
>>> JDK-8005810: Update Hotspot Serviceability Agent for Method Parameter
>>> Reflection and Generic Type Signature Data
>>>
>>> The fix contributed by Eric McCorkle.
>>>
>>> http://cr.openjdk.java.net/~dsamersoff/JDK-8005810/webrev.01/
>>>
>>> https://bugs.openjdk.java.net/browse/JDK-8005810
>>>
>>> -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.
>>
>
>
> --
> Dmitry Samersoff
> Oracle Java development team, Saint Petersburg, Russia
> * I would love to change the world, but they won't give me the sources.
From staffan.larsen at oracle.com Thu Oct 10 01:43:56 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Thu, 10 Oct 2013 08:43:56 +0000
Subject: hg: jdk8/tl/jdk: 8014446: JT_JDK: Wrong detection of test result for
test com/sun/jdi/NoLaunchOptionTest.java
Message-ID: <20131010084446.2952162ED0@hg.openjdk.java.net>
Changeset: 998560cccefc
Author: allwin
Date: 2013-10-10 10:14 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/998560cccefc
8014446: JT_JDK: Wrong detection of test result for test com/sun/jdi/NoLaunchOptionTest.java
Reviewed-by: sla, mgronlun, dholmes, jbachorik, chegar
! test/com/sun/jdi/NoLaunchOptionTest.java
From alan.bateman at oracle.com Thu Oct 10 02:01:24 2013
From: alan.bateman at oracle.com (alan.bateman at oracle.com)
Date: Thu, 10 Oct 2013 09:01:24 +0000
Subject: hg: jdk8/tl/jdk: 7011859:
java/util/concurrent/Semaphore/RacingReleases.java failing
Message-ID: <20131010090153.05EAF62ED4@hg.openjdk.java.net>
Changeset: 99b7bbe0474f
Author: dl
Date: 2013-10-10 09:57 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/99b7bbe0474f
7011859: java/util/concurrent/Semaphore/RacingReleases.java failing
Reviewed-by: alanb, dholmes
! src/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java
! src/share/classes/java/util/concurrent/locks/AbstractQueuedSynchronizer.java
From david.holmes at oracle.com Thu Oct 10 01:59:24 2013
From: david.holmes at oracle.com (david.holmes at oracle.com)
Date: Thu, 10 Oct 2013 08:59:24 +0000
Subject: hg: jdk8/tl/jdk: 8026232: Move libnpt from profile compact1 to
compact3
Message-ID: <20131010085955.5711062ED3@hg.openjdk.java.net>
Changeset: 254173b48dcb
Author: dholmes
Date: 2013-10-10 04:57 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/254173b48dcb
8026232: Move libnpt from profile compact1 to compact3
Reviewed-by: mchung, alanb
! makefiles/profile-includes.txt
From david.holmes at oracle.com Thu Oct 10 02:09:20 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 19:09:20 +1000
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <52557025.7060706@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
<52548E6D.80701@oracle.com> <525545E3.3060504@oracle.com>
<52557025.7060706@oracle.com>
Message-ID: <52566EC0.4090405@oracle.com>
I'm fine with not adding untestable minimal VM support.
Thanks,
David
On 10/10/2013 1:03 AM, Daniel D. Daugherty wrote:
> Replies also inline...
>
>
> On 10/9/13 6:02 AM, David Holmes wrote:
>> inline ...
>>
>> On 9/10/2013 8:59 AM, Daniel D. Daugherty wrote:
>>> On 10/1/13 8:52 PM, David Holmes wrote:
>>>> - hotspot/make/Makefile
>>>>
>>>> + $(EXPORT_CLIENT_DIR)/%.dSYM: $(MINIMAL1_BUILD_DIR)/%.dSYM
>>>>
>>>> EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
>>>>
>>>> For fun you can try building minimal on OSX, but I don't know how far
>>>> you will get:
>>>>
>>>> --with-jvm-variants=client,server,minimal1
>>>>
>>>> I'll point out obvious issues with minimal VM support anyway.
>>>
>>> Since you pointed out in a later email that minimal1 isn't
>>> supported on MacOS X, I'm going to drop those changes. I'm
>>> going to leave the Client VM support since there are folks
>>> out in OpenJDK trying to get the Client VM working on MacOS X.
>>>
>>> It does look like someone added minimal1 support for other
>>> non-Linux platforms, but I'm not planning to clean that up.
>>
>> Yes I did that when adding minimal support. Seemed better than leaving
>> someone to have to rediscover what needed to be implemented if/when
>> minimal support was expanded.
>
> Thanks for the history. Are you still OK if I leave out the
> FDS Minimal1 support?
>
>
>> Someday I hope to remove all the duplicated EXPORT_* stuff and
>> generate it based on the requested JDK_VARIANT_* values. And do it in
>> a platform indpendent way - once! :)
>
> Well it can be mostly platform independent, but there will be
> minor differences in what is exported by the different platforms.
>
>
>>
>>>> Note that the whole jdk6_or_earlier logic is defunct as this will
>>>> never be used for jdk6 or earlier. But best to clean all that up at
>>>> the one time.
>>>
>>> Agreed that we (Oracle) currently don't have plans to drop HSX-25 into
>>> JDK6 or OpenJDK6, but I don't want to rule out future insanity.
>>
>> I do! We need to cut ties with historical baggage.
>
> Good sentiment, but not for this changeset. I'll file a bug to track
> your idea of "best to clean all that up at one time".
>
>
>>
>>>> - make/bsd/makefiles/universal.gmk
>>>>
>>>> I did not understand the additional logic here:
>>>>
>>>> 63 # Copy built non-universal binaries in place
>>>> 64 $(UNIVERSAL_COPY_LIST):
>>>> 65 BUILT_COPY_FILES="`find
>>>> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@)
>>>> 2>/dev/null`"; \
>>>> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
>>>> 67 for i in $${BUILT_COPY_FILES}; do \
>>>> 68 if [ -f $${i} ]; then \
>>>> 69 $(MKDIR) -p $(shell dirname $@); \
>>>> 70 $(CP) -R $${i} $@; \
>>>> 71 fi; \
>>>> 72 if [ -d $${i} ]; then \
>>>> 73 $(MKDIR) -p $@; \
>>>> 74 fi; \
>>>> 75 done; \
>>>> 76 fi
>>>>
>>>> until I realized that foo.dSYM is a directory not a file! Even so
>>>> don't you want to copy the contents of the directory across ?
>>>
>>> BUILT_COPY_FILES includes both files and directories so everything
>>> should get copied across. I've added some commments to the rule
>>> header and reorganized the logic a bit to hopefully be more clear.
>>
>> Doesn't this assume that the directory will appear before the files
>> within it? Is that guaranteed?
>
> The way find works is that it lists the directory prior to listing
> the files within the directory. However, even if find didn't, the
> containing directory would be created via line 69 above. The one
> non-obvious feature of lines 72-74 is that an empty directory named
> in the BUILD_COPY_FILES list would get 'copied' to the destination.
>
> Please check out the latest version when I get it out for review.
>
>
>> Which leads me to ask why we have cp -R for copying files?
>
> MacOS X strongly discourages use of 'cp -r' and recommends 'cp -R'
> instead because 'cp -R' properly copies non-directory and non-file
> file system objects, e.g., symlinks. So if BUILD_COPY_FILES happens
> to contain a symlink, then the symlink is copied to the destination.
>
>
>>
>>>> - jdk/makefiles/Tools.gmk
>>>>
>>>> Not sure about this one. Logically is seems correct but up to now this
>>>> has been defined for everything without it seeming to cause a problem.
>>>> So why do we need to change it and what impact will it have?
>>>
>>> It just seemed wrong to define something that should never be used
>>> on non-Solaris platforms. My control build of the entire forest
>>> didn't have an issue with this change so I'm planning to keep it.
>>
>> Ok.
>>
>> Thanks,
>> David
>
> Again, thanks for the thorough reviews.
>
> Dan
>
>
>>
>>> Dan
>>>
>>>
>>>
>>>>
>>>> David
>>>> -----
>>>>
>>>> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
>>>>> Greetings,
>>>>>
>>>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X
>>>>> done
>>>>> and ready for review:
>>>>>
>>>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>>>
>>>>> Here is the JDK8/HSX-25 webrev URL:
>>>>>
>>>>> OpenJDK:
>>>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>>>> Internal:
>>>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>>>
>>>>>
>>>>> This webrev includes changes for the follow repos:
>>>>>
>>>>> jdk8
>>>>> jdk8/hotspot
>>>>> jdk8/jdk
>>>>> jdk8/jdk/make/closed
>>>>>
>>>>> Once these changes are approved, I'm planning to push them to
>>>>> RT_Baseline. From there, they can follow the normal path to
>>>>> Main_Baseline and eventually JDK8.
>>>>>
>>>>> This work enables FDS on MacOS X for the 'hotspot' repo; the
>>>>> changes in
>>>>> the other repos are necessary to support importing the .diz files from
>>>>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>>>>> FDS related errors in the magic incantations for the new build.
>>>>> This is
>>>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>>>>> from Solaris. In other words, this is Frankenstein's monster...
>>>>>
>>>>> Thanks to Staffan Larsen for providing an initial set of changes
>>>>> which I morphed into what you see here.
>>>>>
>>>>> Testing:
>>>>> - JPRT HSX build and test on all platforms; verification of .diz
>>>>> files in the MacOS X JPRT bundles
>>>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>>>> .diz files in the MacOS X JPRT bundles
>>>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>>>> repo build and test, but that no longer seems to work.
>>>>>
>>>>> As always, comments, questions and suggestions are welcome.
>>>>>
>>>>> Dan
>>>
>
From fredrik.arvidsson at oracle.com Thu Oct 10 03:24:08 2013
From: fredrik.arvidsson at oracle.com (Fredrik Arvidsson)
Date: Thu, 10 Oct 2013 12:24:08 +0200
Subject: RFR (XS) 8024425: VM_HeapDumper doesn't put anonymous classes in
the heap dump
Message-ID: <52568048.5050109@oracle.com>
Hi
Please help me to review the changes below:
Jira case: https://bugs.openjdk.java.net/browse/JDK-8024425
Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.00/
About this change.
I switched from using the SystemDictionary to use ClassLoaderDataGraph
instead since the SystemDictionary lack information about the
'anonymous' classes related to this bug.
Previously failed Aurora tests have been run using UTE and verified to
PASS. The heap dump file have been successfully opened and parsed using
jhat and eclipse MAT.
Cheers
/Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/99a48e73/attachment.html
From fredrik.arvidsson at oracle.com Thu Oct 10 03:42:05 2013
From: fredrik.arvidsson at oracle.com (Fredrik Arvidsson)
Date: Thu, 10 Oct 2013 12:42:05 +0200
Subject: RFR (S) 8025638: jmap returns 0 instead of 1 when it fails.
Message-ID: <5256847D.6060103@oracle.com>
Hi
Please help me to review the changes below:
Jira case: https://bugs.openjdk.java.net/browse/JDK-8025638
Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
About this change.
A previous change (https://bugs.openjdk.java.net/browse/JDK-8010278) in
the Tool.java class caused any tool deriving from this base class return
the wrong value to the caller when failing.
Changes were made to the Tool.java class and to the derived tool
implementation classes to handle errors/exceptions during execution and
ensure that the tool returns 1 to the caller if it fails, and 0 if it
succeeds.
Previously failed Aurora tests have been run using UTE and verified to PASS.
Cheers
/Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/d60a0c05/attachment.html
From jaroslav.bachorik at oracle.com Thu Oct 10 04:02:24 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Thu, 10 Oct 2013 13:02:24 +0200
Subject: jmx-dev RFR 6523160: RuntimeMXBean.getUptime() returns negative
values
In-Reply-To: <525622B4.5020606@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com> <52547D24.9060806@oracle.com>
<52553D63.5000508@oracle.com>
<8AF79393-C5A2-4458-AF72-2B90A85F11C3@oracle.com>
<52556604.3080900@oracle.com>
<5AFB7AC3-43C0-4A48-B716-1434CD7DBA93@oracle.com>
<525622B4.5020606@oracle.com>
Message-ID: <52568940.4000704@oracle.com>
On 10.10.2013 05:44, David Holmes wrote:
> On 10/10/2013 4:12 AM, Staffan Larsen wrote:
>>
>> On 9 okt 2013, at 16:19, Jaroslav Bachorik
>> wrote:
>>
>>> On 9.10.2013 16:10, Staffan Larsen wrote:
>>>> There is now an awful amount of different timestamps in the
>>>> Management class. Can they be consolidated somehow? At least
>>>> _begin_vm_creation_time and the new _begin_vm_creation_ns.
>>>>
>>>> This discussion also implies that the "elapsed time" we print in the
>>>> hs_err file is also wrong. It uses os::elapsedTime() which uses
>>>> os::elapsed_counter().
>>>>
>>>> And I guess the same thing for the VM.uptime Diagnostic Command
>>>> (class VMUptimeDCmd) which also relies on os::elapsed_counter().
>>>
>>> Also the reported GC pauses duration might be wrong since it uses
>>> Management::timestamp().
>>>
>>> On the first sight the change looks rather trivial. But, honestly,
>>> I'm not sure which other parts could for whatever reason break once
>>> the time-of-day timestamp is replaced with a monotonic equivalent.
>>> One would think that it shouldn't matter but one never knows ...
>>>
>>> Staffan, do you think this kind of change is suitable for the current
>>> phase of JDK release cycle? I think I could improve the patch in few
>>> days and then it should probably be able to pass the review before
>>> ZBB. But, it's only P3 ...
>>
>> I think it is a bit late in the release cycle to clean this up in the
>> way it should be cleaned up. I think we should wait until the first 8
>> update release and do a more thorough job than we have time for right
>> now.
>
> I second that. The elapsed_counter/elpased_timer APIs and
> implementations are a tangled mess. But part of the problem has been
> that people want/expect monotonic time-of-day based timestamps (yes a
> contradiction - though some people make sure TOD does not get modified
> on their production systems). The use of timestamps in logging has to be
> examined carefully - mainly GC logging. I recall a "simple" attempted
> change in the past that resulted in trying to compare a nanoTime based
> timestamp with the TOD. :(
Actually, if I'm reading the sources right for Solaris and Win the
monotonic clock source is used to provide elapsed_counter() value. It
falls back to TOD when the monotonic clock source is not available.
For Linux/BSD the TOD is used directly.
This makes me wonder if changing the linux/bsd implementation to follow
the same logic would be really that disruptive.
-JB-
>
> David
> -----
>
>> /Staffan
>>
>>
>>>
>>> -JB-
>>>
>>>>
>>>> /Staffan
>>>>
>>>>
>>>> On 9 okt 2013, at 13:26, Jaroslav Bachorik
>>>> wrote:
>>>>
>>>>> On 8.10.2013 23:46, David Holmes wrote:
>>>>>> On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
>>>>>>> On 8.10.2013 09:34, David Holmes wrote:
>>>>>>>> Jaroslav,
>>>>>>>>
>>>>>>>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>>>>>>>> System.currentTimeMillis() which makes it susceptible to
>>>>>>>>> changes of the
>>>>>>>>> OS time (eg. changing timezone, NTP synchronization etc.). The
>>>>>>>>> uptime
>>>>>>>>> should not depend on the system time and should be calculated
>>>>>>>>> using a
>>>>>>>>> monotonic clock source.
>>>>>>>>>
>>>>>>>>> There is already the way to get the actual JVM uptime in ticks.
>>>>>>>>> It is
>>>>>>>>> accessible as Management::timestamp() and the ticks are
>>>>>>>>> convertible to
>>>>>>>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus
>>>>>>>>> making it
>>>>>>>>> very
>>>>>>>>> easy to switch to the monotonic clock based uptime.
>>>>>>>>
>>>>>>>> Maybe I'm missing something but TiumeStamp updates using
>>>>>>>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>>>>>>>> monotonic clock source.
>>>>>>>
>>>>>>> Hm, yes. I wasn't aware of this linux/bsd specific.
>>>>>>>
>>>>>>> Is there any reason why a non monotonic clock source is used for
>>>>>>> timestamping except of the historical one? os::javaTimeNanos() uses
>>>>>>> montonic clock when available - why can't be the same used for
>>>>>>> os::elapsed_counter() especially when a counter based on
>>>>>>> "gettimeofday"
>>>>>>> is not really a counter?
>>>>>>
>>>>>> It is all historical. These elapsed_counters and elapsed_timers
>>>>>> make me
>>>>>> cringe. But changing it has a lot of potential consequences
>>>>>> because of
>>>>>> the way these are used in logging etc. Certainly not something to be
>>>>>> contemplated at this stage of JDK 8.
>>>>>>
>>>>>> Perhaps a simpler fix here is to expose a startUpTimeNanos that
>>>>>> can then
>>>>>> be used for the uptime.
>>>>>
>>>>> My attempt at this is at
>>>>> http://cr.openjdk.java.net/~jbachorik/6523160/webrev.01/hotspot
>>>>> I am using os::javaTimeNanos() to get the monotonic ticks where
>>>>> possible.
>>>>>
>>>>> The JDK part stays the same as for webrev.00
>>>>>
>>>>> -JB-
>>>>>
>>>>>>
>>>>>> David
>>>>>>
>>>>>>> -JB-
>>>>>>>
>>>>>>>>
>>>>>>>> David
>>>>>>>> -----
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> The patch consists of the hotspot and jdk parts.
>>>>>>>>>
>>>>>>>>> For the hotspot a new constant needs to be introduced in
>>>>>>>>> src/share/vm/services/jmm.h and the actual logic to obtain the
>>>>>>>>> uptime in
>>>>>>>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>>>>>>>
>>>>>>>>> For the jdk the changes comprise of adding the necessary JNI
>>>>>>>>> bridging
>>>>>>>>> methods in order to get the new uptime, introducing the same
>>>>>>>>> constant
>>>>>>>>> that is used in hotspot and changes to mapfile-vers files in
>>>>>>>>> order to
>>>>>>>>> properly build the native library.
>>>>>>>>>
>>>>>>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> -JB-
>>>>>>>
>>>>>
>>>>
>>>
>>
From staffan.larsen at oracle.com Thu Oct 10 04:15:49 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Thu, 10 Oct 2013 13:15:49 +0200
Subject: jmx-dev RFR 6523160: RuntimeMXBean.getUptime() returns negative
values
In-Reply-To: <52568940.4000704@oracle.com>
References: <524BDD9E.1050100@oracle.com> <5253B596.1000206@oracle.com>
<5253FC54.4010407@oracle.com> <52547D24.9060806@oracle.com>
<52553D63.5000508@oracle.com>
<8AF79393-C5A2-4458-AF72-2B90A85F11C3@oracle.com>
<52556604.3080900@oracle.com>
<5AFB7AC3-43C0-4A48-B716-1434CD7DBA93@oracle.com>
<525622B4.5020606@oracle.com> <52568940.4000704@oracle.com>
Message-ID: <23435103-156B-434F-994C-B6F913EE0364@oracle.com>
On 10 okt 2013, at 13:02, Jaroslav Bachorik wrote:
> On 10.10.2013 05:44, David Holmes wrote:
>> On 10/10/2013 4:12 AM, Staffan Larsen wrote:
>>>
>>> On 9 okt 2013, at 16:19, Jaroslav Bachorik
>>> wrote:
>>>
>>>> On 9.10.2013 16:10, Staffan Larsen wrote:
>>>>> There is now an awful amount of different timestamps in the
>>>>> Management class. Can they be consolidated somehow? At least
>>>>> _begin_vm_creation_time and the new _begin_vm_creation_ns.
>>>>>
>>>>> This discussion also implies that the "elapsed time" we print in the
>>>>> hs_err file is also wrong. It uses os::elapsedTime() which uses
>>>>> os::elapsed_counter().
>>>>>
>>>>> And I guess the same thing for the VM.uptime Diagnostic Command
>>>>> (class VMUptimeDCmd) which also relies on os::elapsed_counter().
>>>>
>>>> Also the reported GC pauses duration might be wrong since it uses
>>>> Management::timestamp().
>>>>
>>>> On the first sight the change looks rather trivial. But, honestly,
>>>> I'm not sure which other parts could for whatever reason break once
>>>> the time-of-day timestamp is replaced with a monotonic equivalent.
>>>> One would think that it shouldn't matter but one never knows ...
>>>>
>>>> Staffan, do you think this kind of change is suitable for the current
>>>> phase of JDK release cycle? I think I could improve the patch in few
>>>> days and then it should probably be able to pass the review before
>>>> ZBB. But, it's only P3 ...
>>>
>>> I think it is a bit late in the release cycle to clean this up in the
>>> way it should be cleaned up. I think we should wait until the first 8
>>> update release and do a more thorough job than we have time for right
>>> now.
>>
>> I second that. The elapsed_counter/elpased_timer APIs and
>> implementations are a tangled mess. But part of the problem has been
>> that people want/expect monotonic time-of-day based timestamps (yes a
>> contradiction - though some people make sure TOD does not get modified
>> on their production systems). The use of timestamps in logging has to be
>> examined carefully - mainly GC logging. I recall a "simple" attempted
>> change in the past that resulted in trying to compare a nanoTime based
>> timestamp with the TOD. :(
>
> Actually, if I'm reading the sources right for Solaris and Win the monotonic clock source is used to provide elapsed_counter() value. It falls back to TOD when the monotonic clock source is not available.
> For Linux/BSD the TOD is used directly.
>
> This makes me wonder if changing the linux/bsd implementation to follow the same logic would be really that disruptive.
Good point. I would like a world where elapsed_counter is monotonic (where possible). Still a bit scary this late in the release, but an interesting experiment.
/Staffan
>
> -JB-
>>
>> David
>> -----
>>
>>> /Staffan
>>>
>>>
>>>>
>>>> -JB-
>>>>
>>>>>
>>>>> /Staffan
>>>>>
>>>>>
>>>>> On 9 okt 2013, at 13:26, Jaroslav Bachorik
>>>>> wrote:
>>>>>
>>>>>> On 8.10.2013 23:46, David Holmes wrote:
>>>>>>> On 8/10/2013 10:36 PM, Jaroslav Bachorik wrote:
>>>>>>>> On 8.10.2013 09:34, David Holmes wrote:
>>>>>>>>> Jaroslav,
>>>>>>>>>
>>>>>>>>> On 2/10/2013 6:47 PM, Jaroslav Bachorik wrote:
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> currently the JVM uptime reported by the RuntimeMXBean is based on
>>>>>>>>>> System.currentTimeMillis() which makes it susceptible to
>>>>>>>>>> changes of the
>>>>>>>>>> OS time (eg. changing timezone, NTP synchronization etc.). The
>>>>>>>>>> uptime
>>>>>>>>>> should not depend on the system time and should be calculated
>>>>>>>>>> using a
>>>>>>>>>> monotonic clock source.
>>>>>>>>>>
>>>>>>>>>> There is already the way to get the actual JVM uptime in ticks.
>>>>>>>>>> It is
>>>>>>>>>> accessible as Management::timestamp() and the ticks are
>>>>>>>>>> convertible to
>>>>>>>>>> milliseconds using Management::ticks_to_ms(ts_ticks) thus
>>>>>>>>>> making it
>>>>>>>>>> very
>>>>>>>>>> easy to switch to the monotonic clock based uptime.
>>>>>>>>>
>>>>>>>>> Maybe I'm missing something but TiumeStamp updates using
>>>>>>>>> os::elapsed_counter() which on Linux uses gettimeofday so is not a
>>>>>>>>> monotonic clock source.
>>>>>>>>
>>>>>>>> Hm, yes. I wasn't aware of this linux/bsd specific.
>>>>>>>>
>>>>>>>> Is there any reason why a non monotonic clock source is used for
>>>>>>>> timestamping except of the historical one? os::javaTimeNanos() uses
>>>>>>>> montonic clock when available - why can't be the same used for
>>>>>>>> os::elapsed_counter() especially when a counter based on
>>>>>>>> "gettimeofday"
>>>>>>>> is not really a counter?
>>>>>>>
>>>>>>> It is all historical. These elapsed_counters and elapsed_timers
>>>>>>> make me
>>>>>>> cringe. But changing it has a lot of potential consequences
>>>>>>> because of
>>>>>>> the way these are used in logging etc. Certainly not something to be
>>>>>>> contemplated at this stage of JDK 8.
>>>>>>>
>>>>>>> Perhaps a simpler fix here is to expose a startUpTimeNanos that
>>>>>>> can then
>>>>>>> be used for the uptime.
>>>>>>
>>>>>> My attempt at this is at
>>>>>> http://cr.openjdk.java.net/~jbachorik/6523160/webrev.01/hotspot
>>>>>> I am using os::javaTimeNanos() to get the monotonic ticks where
>>>>>> possible.
>>>>>>
>>>>>> The JDK part stays the same as for webrev.00
>>>>>>
>>>>>> -JB-
>>>>>>
>>>>>>>
>>>>>>> David
>>>>>>>
>>>>>>>> -JB-
>>>>>>>>
>>>>>>>>>
>>>>>>>>> David
>>>>>>>>> -----
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> The patch consists of the hotspot and jdk parts.
>>>>>>>>>>
>>>>>>>>>> For the hotspot a new constant needs to be introduced in
>>>>>>>>>> src/share/vm/services/jmm.h and the actual logic to obtain the
>>>>>>>>>> uptime in
>>>>>>>>>> milliseconds is added in src/share/vm/services/management.cpp.
>>>>>>>>>>
>>>>>>>>>> For the jdk the changes comprise of adding the necessary JNI
>>>>>>>>>> bridging
>>>>>>>>>> methods in order to get the new uptime, introducing the same
>>>>>>>>>> constant
>>>>>>>>>> that is used in hotspot and changes to mapfile-vers files in
>>>>>>>>>> order to
>>>>>>>>>> properly build the native library.
>>>>>>>>>>
>>>>>>>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-6523160
>>>>>>>>>> Webrev: http://cr.openjdk.java.net/~jbachorik/6523160/webrev.00
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> -JB-
>>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>
From staffan.larsen at oracle.com Thu Oct 10 04:36:04 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Thu, 10 Oct 2013 13:36:04 +0200
Subject: RFR (XS) 8024425: VM_HeapDumper doesn't put anonymous classes in
the heap dump
In-Reply-To: <52568048.5050109@oracle.com>
References: <52568048.5050109@oracle.com>
Message-ID: <455C88F2-D232-4458-B2B9-160B613AEAF9@oracle.com>
instanceKlass.cpp:2318 - should use jio_snprintf() instead of sprintf()
I'm also wondering if this method should be re-written to use jio_snprintf() as the method for concatenating the strings?
/Staffan
On 10 okt 2013, at 12:24, Fredrik Arvidsson wrote:
> Hi
>
> Please help me to review the changes below:
>
> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024425
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.00/
>
> About this change.
> I switched from using the SystemDictionary to use ClassLoaderDataGraph instead since the SystemDictionary lack information about the 'anonymous' classes related to this bug.
>
> Previously failed Aurora tests have been run using UTE and verified to PASS. The heap dump file have been successfully opened and parsed using jhat and eclipse MAT.
>
> Cheers
> /Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/aa9e420f/attachment.html
From staffan.larsen at oracle.com Thu Oct 10 04:38:09 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Thu, 10 Oct 2013 13:38:09 +0200
Subject: RFR (S) 8025638: jmap returns 0 instead of 1 when it fails.
In-Reply-To: <5256847D.6060103@oracle.com>
References: <5256847D.6060103@oracle.com>
Message-ID: <918A0955-6236-4916-BD54-F344EC9AADEA@oracle.com>
Clicking on the link in this email takes me to the wrong webrev. The correct URL is in the text: http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
/Staffan
On 10 okt 2013, at 12:42, Fredrik Arvidsson wrote:
> Hi
>
> Please help me to review the changes below:
>
> Jira case: https://bugs.openjdk.java.net/browse/JDK-8025638
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>
> About this change.
> A previous change (https://bugs.openjdk.java.net/browse/JDK-8010278) in the Tool.java class caused any tool deriving from this base class return the wrong value to the caller when failing.
> Changes were made to the Tool.java class and to the derived tool implementation classes to handle errors/exceptions during execution and ensure that the tool returns 1 to the caller if it fails, and 0 if it succeeds.
>
> Previously failed Aurora tests have been run using UTE and verified to PASS.
>
> Cheers
> /Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/9567ee01/attachment.html
From michael.x.mcmahon at oracle.com Thu Oct 10 04:38:41 2013
From: michael.x.mcmahon at oracle.com (michael.x.mcmahon at oracle.com)
Date: Thu, 10 Oct 2013 11:38:41 +0000
Subject: hg: jdk8/tl/jdk: 7076487: (sctp) SCTP API classes does not exist in
JDK for Mac
Message-ID: <20131010113908.54B3C62EEB@hg.openjdk.java.net>
Changeset: 8294c49d23b3
Author: michaelm
Date: 2013-10-10 12:36 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8294c49d23b3
7076487: (sctp) SCTP API classes does not exist in JDK for Mac
Reviewed-by: alanb, chegar
! makefiles/CompileJavaClasses.gmk
! makefiles/CreateJars.gmk
+ src/macosx/classes/sun/nio/ch/sctp/SctpChannelImpl.java
+ src/macosx/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java
+ src/macosx/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java
From staffan.larsen at oracle.com Thu Oct 10 04:49:12 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Thu, 10 Oct 2013 13:49:12 +0200
Subject: RFR (S) 8025638: jmap returns 0 instead of 1 when it fails.
In-Reply-To: <918A0955-6236-4916-BD54-F344EC9AADEA@oracle.com>
References: <5256847D.6060103@oracle.com>
<918A0955-6236-4916-BD54-F344EC9AADEA@oracle.com>
Message-ID: <423EB291-3E36-41F7-86F6-6362D0B49839@oracle.com>
Thanks for doing this!
Tool.java:116 - shouldn't the default return value be 1? In case start() throws an exception for some reason.
Tool.java: I find the start(String[] args), start(), startInternal() methods confusing in naming and usage. Not directly related to your change of course, just a comment on the code.
/Staffan
On 10 okt 2013, at 13:38, Staffan Larsen wrote:
> Clicking on the link in this email takes me to the wrong webrev. The correct URL is in the text: http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>
> /Staffan
>
> On 10 okt 2013, at 12:42, Fredrik Arvidsson wrote:
>
>> Hi
>>
>> Please help me to review the changes below:
>>
>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8025638
>> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>>
>> About this change.
>> A previous change (https://bugs.openjdk.java.net/browse/JDK-8010278) in the Tool.java class caused any tool deriving from this base class return the wrong value to the caller when failing.
>> Changes were made to the Tool.java class and to the derived tool implementation classes to handle errors/exceptions during execution and ensure that the tool returns 1 to the caller if it fails, and 0 if it succeeds.
>>
>> Previously failed Aurora tests have been run using UTE and verified to PASS.
>>
>> Cheers
>> /Fredrik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/e39bc652/attachment.html
From sundararajan.athijegannathan at oracle.com Thu Oct 10 05:07:16 2013
From: sundararajan.athijegannathan at oracle.com (sundararajan.athijegannathan at oracle.com)
Date: Thu, 10 Oct 2013 12:07:16 +0000
Subject: hg: jdk8/tl/nashorn: 3 new changesets
Message-ID: <20131010120727.9160A62EEC@hg.openjdk.java.net>
Changeset: 03a68e7ca1d5
Author: lagergren
Date: 2013-10-09 17:53 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/03a68e7ca1d5
8026137: Fix Issues with Binary Evaluation Order
Reviewed-by: hannesw, jlaskey
Contributed-by: marcus.lagergren at oracle.com, attila.szegedi at oracle.com
! src/jdk/nashorn/internal/codegen/Attr.java
! src/jdk/nashorn/internal/codegen/BranchOptimizer.java
! src/jdk/nashorn/internal/codegen/CodeGenerator.java
! src/jdk/nashorn/internal/codegen/CompileUnit.java
! src/jdk/nashorn/internal/codegen/Compiler.java
! src/jdk/nashorn/internal/codegen/FinalizeTypes.java
! src/jdk/nashorn/internal/codegen/MethodEmitter.java
! src/jdk/nashorn/internal/codegen/WeighNodes.java
! src/jdk/nashorn/internal/codegen/types/BooleanType.java
! src/jdk/nashorn/internal/codegen/types/ObjectType.java
! src/jdk/nashorn/internal/codegen/types/Type.java
! src/jdk/nashorn/internal/ir/AccessNode.java
! src/jdk/nashorn/internal/ir/BaseNode.java
! src/jdk/nashorn/internal/ir/CallNode.java
! src/jdk/nashorn/internal/ir/IdentNode.java
! src/jdk/nashorn/internal/ir/IndexNode.java
! src/jdk/nashorn/internal/ir/LiteralNode.java
! src/jdk/nashorn/internal/ir/RuntimeNode.java
- src/jdk/nashorn/internal/ir/TypeOverride.java
! src/jdk/nashorn/internal/ir/UnaryNode.java
! src/jdk/nashorn/internal/ir/visitor/NodeOperatorVisitor.java
! src/jdk/nashorn/internal/parser/TokenType.java
! src/jdk/nashorn/internal/runtime/Context.java
! src/jdk/nashorn/internal/runtime/JSType.java
! src/jdk/nashorn/internal/runtime/arrays/JavaArrayIterator.java
! src/jdk/nashorn/internal/runtime/arrays/ReverseJavaArrayIterator.java
! src/jdk/nashorn/internal/runtime/linker/JSObjectLinker.java
+ test/script/basic/JDK-8026137.js
+ test/script/basic/JDK-8026137.js.EXPECTED
Changeset: 7cc5ff16380f
Author: sundar
Date: 2013-10-10 11:48 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/7cc5ff16380f
8026167: Class cache/reuse of 'eval' scripts results in ClassCastException in some cases.
Reviewed-by: lagergren, jlaskey
! src/jdk/nashorn/internal/codegen/CompilationPhase.java
! src/jdk/nashorn/internal/codegen/Lower.java
! src/jdk/nashorn/internal/runtime/CodeInstaller.java
! src/jdk/nashorn/internal/runtime/Context.java
! test/script/assert.js
! test/script/basic/JDK-8019508.js
! test/script/basic/JDK-8019508.js.EXPECTED
! test/script/basic/JDK-8019553.js
! test/script/basic/JDK-8019553.js.EXPECTED
! test/script/basic/JDK-8019791.js
! test/script/basic/JDK-8019791.js.EXPECTED
! test/script/basic/JDK-8019805.js
! test/script/basic/JDK-8019805.js.EXPECTED
+ test/script/basic/JDK-8026167.js
! test/script/basic/NASHORN-100.js
! test/script/basic/NASHORN-100.js.EXPECTED
! test/script/basic/NASHORN-293.js
! test/script/basic/NASHORN-293.js.EXPECTED
! test/script/basic/NASHORN-40.js
! test/script/basic/NASHORN-40.js.EXPECTED
! test/script/basic/NASHORN-51.js
! test/script/basic/NASHORN-51.js.EXPECTED
! test/script/basic/NASHORN-98.js
! test/script/basic/NASHORN-98.js.EXPECTED
! test/script/basic/eval.js
! test/script/basic/eval.js.EXPECTED
Changeset: e60bbcf2f6b6
Author: sundar
Date: 2013-10-10 13:17 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/e60bbcf2f6b6
8026248: importClass has to be a varargs function
Reviewed-by: jlaskey, hannesw
! src/jdk/nashorn/internal/runtime/resources/mozilla_compat.js
+ test/script/basic/JDK-8026248.js
+ test/script/basic/JDK-8026248.js.EXPECTED
From david.holmes at oracle.com Thu Oct 10 05:15:53 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 22:15:53 +1000
Subject: RFR (XS) 8024425: VM_HeapDumper doesn't put anonymous classes
in the heap dump
In-Reply-To: <52568048.5050109@oracle.com>
References: <52568048.5050109@oracle.com>
Message-ID: <52569A79.5020405@oracle.com>
Fredrik,
On 10/10/2013 8:24 PM, Fredrik Arvidsson wrote:
> Hi
>
> Please help me to review the changes below:
>
> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024425
>
> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.00/
>
Please make sure what you have in your html email is consistent. Your
visible text refers to a different bug id to the actual link - and the
links are different to the subject. Can you please re-send this email
with corrected links and subject - thanks.
Style issues:
- ensure spaces are after keywords ie if(x) should be if (x)
- two-space indent not four
David
-----
> About this change.
> I switched from using the SystemDictionary to use ClassLoaderDataGraph
> instead since the SystemDictionary lack information about the
> 'anonymous' classes related to this bug.
>
> Previously failed Aurora tests have been run using UTE and verified to
> PASS. The heap dump file have been successfully opened and parsed using
> jhat and eclipse MAT.
>
> Cheers
> /Fredrik
From david.holmes at oracle.com Thu Oct 10 05:17:07 2013
From: david.holmes at oracle.com (David Holmes)
Date: Thu, 10 Oct 2013 22:17:07 +1000
Subject: Codereview request: 8025204 Intermittent test failure:
javax/management/remote/mandatory/connection/IdleTimeoutTest.java
In-Reply-To: <52550C22.2080201@oracle.com>
References: <5254B136.5070705@oracle.com> <52550C22.2080201@oracle.com>
Message-ID: <52569AC3.6020300@oracle.com>
Ship it!
Thanks,
David
On 9/10/2013 5:56 PM, shanliang wrote:
> David Holmes wrote:
>> ! // no deadline here, let's wait till either the
>> connId is removed
>> ! // or the test timeout (jprt kills the test)!
>> ! // see 8025204
>>
>> The comment loses context if you don't know what the code previously
>> did. I suggest using the simpler form you used in other tests eg:
>>
>> // pass or timed out by test harness - see XXXX
>>
>> Note it isn't JPRT that normally kills these but the jtreg harness.
>>
>> Style nit:
>>
>> } while(ids
>>
>> space needed after 'while'
>>
>> } while (ids
> Here is the new version integrated your comments:
>
> web: http://cr.openjdk.java.net/~sjiang/8025204jdk/01/
> bug: https://bugs.openjdk.java.net/browse/JDK-8025204
>
> Thanks,
> Shanliang
>>
>> David
>> -----
>
From joel.franck at oracle.com Thu Oct 10 01:56:35 2013
From: joel.franck at oracle.com (joel.franck at oracle.com)
Date: Thu, 10 Oct 2013 08:56:35 +0000
Subject: hg: jdk8/tl/langtools: 8021237: clean up JavacAnnotatedConstruct
Message-ID: <20131010085713.4CF4062ED1@hg.openjdk.java.net>
Changeset: 1e7ad879f15e
Author: alundblad
Date: 2013-10-10 08:51 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/1e7ad879f15e
8021237: clean up JavacAnnotatedConstruct
Summary: Refactored the static helper methods in JavacAnnoConstructs into ordinary methods and put them in a common superclass (AnnoConstruct) of Symbol and Type.
Reviewed-by: jjg, vromero, jfranck
+ src/share/classes/com/sun/tools/javac/code/AnnoConstruct.java
! src/share/classes/com/sun/tools/javac/code/Symbol.java
! src/share/classes/com/sun/tools/javac/code/Type.java
- src/share/classes/com/sun/tools/javac/model/JavacAnnoConstructs.java
From fredrik.arvidsson at oracle.com Thu Oct 10 05:28:20 2013
From: fredrik.arvidsson at oracle.com (Fredrik Arvidsson)
Date: Thu, 10 Oct 2013 14:28:20 +0200
Subject: RFR (XS) 8024425: VM_HeapDumper doesn't put anonymous classes in
the heap dump - Corrected links
In-Reply-To: <52568048.5050109@oracle.com>
References: <52568048.5050109@oracle.com>
Message-ID: <52569D64.6030709@oracle.com>
Hi again...
Please forgive me for messing up the links in the previous mail. This
should be ok I hope.
Please help me to review the changes below:
Jira case: https://bugs.openjdk.java.net/browse/JDK-8024425
Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.00/
About this change.
I switched from using the SystemDictionary to use ClassLoaderDataGraph
instead since the SystemDictionary lack information about the
'anonymous' classes related to this bug.
Previously failed Aurora tests have been run using UTE and verified to
PASS. The heap dump file have been successfully opened and parsed using
jhat and eclipse MAT.
Cheers
/Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/3f92b34e/attachment.html
From fredrik.arvidsson at oracle.com Thu Oct 10 05:31:17 2013
From: fredrik.arvidsson at oracle.com (Fredrik Arvidsson)
Date: Thu, 10 Oct 2013 14:31:17 +0200
Subject: RFR (S) 8025638: jmap returns 0 instead of 1 when it fails.
In-Reply-To: <918A0955-6236-4916-BD54-F344EC9AADEA@oracle.com>
References: <5256847D.6060103@oracle.com>
<918A0955-6236-4916-BD54-F344EC9AADEA@oracle.com>
Message-ID: <52569E15.90204@oracle.com>
Ooh, how embarrassing.
Thanks Staffan for adding the correct link.
/F
On 2013-10-10 13:38, Staffan Larsen wrote:
> Clicking on the link in this email takes me to the wrong webrev. The
> correct URL is in the text:
> http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>
>
> /Staffan
>
> On 10 okt 2013, at 12:42, Fredrik Arvidsson
> >
> wrote:
>
>> Hi
>>
>> Please help me to review the changes below:
>>
>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8025638
>>
>> Webrev:
>> http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>>
>>
>> About this change.
>> A previous change (https://bugs.openjdk.java.net/browse/JDK-8010278)
>> in the Tool.java class caused any tool deriving from this base class
>> return the wrong value to the caller when failing.
>> Changes were made to the Tool.java class and to the derived tool
>> implementation classes to handle errors/exceptions during execution
>> and ensure that the tool returns 1 to the caller if it fails, and 0
>> if it succeeds.
>>
>> Previously failed Aurora tests have been run using UTE and verified
>> to PASS.
>>
>> Cheers
>> /Fredrik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/aaa06c68/attachment.html
From fredrik.arvidsson at oracle.com Thu Oct 10 05:57:15 2013
From: fredrik.arvidsson at oracle.com (Fredrik Arvidsson)
Date: Thu, 10 Oct 2013 14:57:15 +0200
Subject: RFR (S) 8025638: jmap returns 0 instead of 1 when it fails.
In-Reply-To: <423EB291-3E36-41F7-86F6-6362D0B49839@oracle.com>
References: <5256847D.6060103@oracle.com>
<918A0955-6236-4916-BD54-F344EC9AADEA@oracle.com>
<423EB291-3E36-41F7-86F6-6362D0B49839@oracle.com>
Message-ID: <5256A42B.3080700@oracle.com>
Thanks for reviewing.
Regarding default value of returnstatus. If start() throws an unhandled
exception, would not the Java runtime return 1 for us?
The try {} clause does not catch anything, it just calls stop() on finally.
/F
On 2013-10-10 13:49, Staffan Larsen wrote:
> Thanks for doing this!
>
> Tool.java:116 - shouldn't the default return value be 1? In case
> start() throws an exception for some reason.
>
> Tool.java: I find the start(String[] args), start(), startInternal()
> methods confusing in naming and usage. Not directly related to your
> change of course, just a comment on the code.
>
> /Staffan
>
>
> On 10 okt 2013, at 13:38, Staffan Larsen > wrote:
>
>> Clicking on the link in this email takes me to the wrong webrev. The
>> correct URL is in the text:
>> http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>>
>>
>> /Staffan
>>
>> On 10 okt 2013, at 12:42, Fredrik Arvidsson
>> >
>> wrote:
>>
>>> Hi
>>>
>>> Please help me to review the changes below:
>>>
>>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8025638
>>>
>>> Webrev:
>>> http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>>>
>>>
>>> About this change.
>>> A previous change (https://bugs.openjdk.java.net/browse/JDK-8010278)
>>> in the Tool.java class caused any tool deriving from this base class
>>> return the wrong value to the caller when failing.
>>> Changes were made to the Tool.java class and to the derived tool
>>> implementation classes to handle errors/exceptions during execution
>>> and ensure that the tool returns 1 to the caller if it fails, and 0
>>> if it succeeds.
>>>
>>> Previously failed Aurora tests have been run using UTE and verified
>>> to PASS.
>>>
>>> Cheers
>>> /Fredrik
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/c9eac8d5/attachment.html
From staffan.larsen at oracle.com Thu Oct 10 06:00:32 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Thu, 10 Oct 2013 15:00:32 +0200
Subject: RFR (S) 8025638: jmap returns 0 instead of 1 when it fails.
In-Reply-To: <5256A42B.3080700@oracle.com>
References: <5256847D.6060103@oracle.com>
<918A0955-6236-4916-BD54-F344EC9AADEA@oracle.com>
<423EB291-3E36-41F7-86F6-6362D0B49839@oracle.com>
<5256A42B.3080700@oracle.com>
Message-ID:
Yes, you are right. Still, a default value of 1 would make the code more obvious.
Reviewed.
/Staffan
On 10 okt 2013, at 14:57, Fredrik Arvidsson wrote:
> Thanks for reviewing.
>
> Regarding default value of returnstatus. If start() throws an unhandled exception, would not the Java runtime return 1 for us?
> The try {} clause does not catch anything, it just calls stop() on finally.
>
> /F
>
> On 2013-10-10 13:49, Staffan Larsen wrote:
>> Thanks for doing this!
>>
>> Tool.java:116 - shouldn't the default return value be 1? In case start() throws an exception for some reason.
>>
>> Tool.java: I find the start(String[] args), start(), startInternal() methods confusing in naming and usage. Not directly related to your change of course, just a comment on the code.
>>
>> /Staffan
>>
>>
>> On 10 okt 2013, at 13:38, Staffan Larsen wrote:
>>
>>> Clicking on the link in this email takes me to the wrong webrev. The correct URL is in the text: http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>>>
>>> /Staffan
>>>
>>> On 10 okt 2013, at 12:42, Fredrik Arvidsson wrote:
>>>
>>>> Hi
>>>>
>>>> Please help me to review the changes below:
>>>>
>>>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8025638
>>>> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>>>>
>>>> About this change.
>>>> A previous change (https://bugs.openjdk.java.net/browse/JDK-8010278) in the Tool.java class caused any tool deriving from this base class return the wrong value to the caller when failing.
>>>> Changes were made to the Tool.java class and to the derived tool implementation classes to handle errors/exceptions during execution and ensure that the tool returns 1 to the caller if it fails, and 0 if it succeeds.
>>>>
>>>> Previously failed Aurora tests have been run using UTE and verified to PASS.
>>>>
>>>> Cheers
>>>> /Fredrik
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/5de4e6f2/attachment-0001.html
From daniel.daugherty at oracle.com Thu Oct 10 06:03:06 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Thu, 10 Oct 2013 07:03:06 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <52566EC0.4090405@oracle.com>
References: <523D144E.4000002@oracle.com> <524B8A78.9040807@oracle.com>
<52548E6D.80701@oracle.com> <525545E3.3060504@oracle.com>
<52557025.7060706@oracle.com> <52566EC0.4090405@oracle.com>
Message-ID: <5256A58A.3030507@oracle.com>
Thanks for confirmation.
Dan
On 10/10/13 3:09 AM, David Holmes wrote:
> I'm fine with not adding untestable minimal VM support.
>
> Thanks,
> David
>
> On 10/10/2013 1:03 AM, Daniel D. Daugherty wrote:
>> Replies also inline...
>>
>>
>> On 10/9/13 6:02 AM, David Holmes wrote:
>>> inline ...
>>>
>>> On 9/10/2013 8:59 AM, Daniel D. Daugherty wrote:
>>>> On 10/1/13 8:52 PM, David Holmes wrote:
>>>>> - hotspot/make/Makefile
>>>>>
>>>>> + $(EXPORT_CLIENT_DIR)/%.dSYM: $(MINIMAL1_BUILD_DIR)/%.dSYM
>>>>>
>>>>> EXPORT_CLIENT_DIR should be EXPORT_MINIMAL_DIR.
>>>>>
>>>>> For fun you can try building minimal on OSX, but I don't know how far
>>>>> you will get:
>>>>>
>>>>> --with-jvm-variants=client,server,minimal1
>>>>>
>>>>> I'll point out obvious issues with minimal VM support anyway.
>>>>
>>>> Since you pointed out in a later email that minimal1 isn't
>>>> supported on MacOS X, I'm going to drop those changes. I'm
>>>> going to leave the Client VM support since there are folks
>>>> out in OpenJDK trying to get the Client VM working on MacOS X.
>>>>
>>>> It does look like someone added minimal1 support for other
>>>> non-Linux platforms, but I'm not planning to clean that up.
>>>
>>> Yes I did that when adding minimal support. Seemed better than leaving
>>> someone to have to rediscover what needed to be implemented if/when
>>> minimal support was expanded.
>>
>> Thanks for the history. Are you still OK if I leave out the
>> FDS Minimal1 support?
>>
>>
>>> Someday I hope to remove all the duplicated EXPORT_* stuff and
>>> generate it based on the requested JDK_VARIANT_* values. And do it in
>>> a platform indpendent way - once! :)
>>
>> Well it can be mostly platform independent, but there will be
>> minor differences in what is exported by the different platforms.
>>
>>
>>>
>>>>> Note that the whole jdk6_or_earlier logic is defunct as this will
>>>>> never be used for jdk6 or earlier. But best to clean all that up at
>>>>> the one time.
>>>>
>>>> Agreed that we (Oracle) currently don't have plans to drop HSX-25 into
>>>> JDK6 or OpenJDK6, but I don't want to rule out future insanity.
>>>
>>> I do! We need to cut ties with historical baggage.
>>
>> Good sentiment, but not for this changeset. I'll file a bug to track
>> your idea of "best to clean all that up at one time".
>>
>>
>>>
>>>>> - make/bsd/makefiles/universal.gmk
>>>>>
>>>>> I did not understand the additional logic here:
>>>>>
>>>>> 63 # Copy built non-universal binaries in place
>>>>> 64 $(UNIVERSAL_COPY_LIST):
>>>>> 65 BUILT_COPY_FILES="`find
>>>>> $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst
>>>>> $(EXPORT_JRE_LIB_DIR)/,,$@)
>>>>> 2>/dev/null`"; \
>>>>> 66 if [ -n "$${BUILT_COPY_FILES}" ]; then \
>>>>> 67 for i in $${BUILT_COPY_FILES}; do \
>>>>> 68 if [ -f $${i} ]; then \
>>>>> 69 $(MKDIR) -p $(shell dirname $@); \
>>>>> 70 $(CP) -R $${i} $@; \
>>>>> 71 fi; \
>>>>> 72 if [ -d $${i} ]; then \
>>>>> 73 $(MKDIR) -p $@; \
>>>>> 74 fi; \
>>>>> 75 done; \
>>>>> 76 fi
>>>>>
>>>>> until I realized that foo.dSYM is a directory not a file! Even so
>>>>> don't you want to copy the contents of the directory across ?
>>>>
>>>> BUILT_COPY_FILES includes both files and directories so everything
>>>> should get copied across. I've added some commments to the rule
>>>> header and reorganized the logic a bit to hopefully be more clear.
>>>
>>> Doesn't this assume that the directory will appear before the files
>>> within it? Is that guaranteed?
>>
>> The way find works is that it lists the directory prior to listing
>> the files within the directory. However, even if find didn't, the
>> containing directory would be created via line 69 above. The one
>> non-obvious feature of lines 72-74 is that an empty directory named
>> in the BUILD_COPY_FILES list would get 'copied' to the destination.
>>
>> Please check out the latest version when I get it out for review.
>>
>>
>>> Which leads me to ask why we have cp -R for copying files?
>>
>> MacOS X strongly discourages use of 'cp -r' and recommends 'cp -R'
>> instead because 'cp -R' properly copies non-directory and non-file
>> file system objects, e.g., symlinks. So if BUILD_COPY_FILES happens
>> to contain a symlink, then the symlink is copied to the destination.
>>
>>
>>>
>>>>> - jdk/makefiles/Tools.gmk
>>>>>
>>>>> Not sure about this one. Logically is seems correct but up to now
>>>>> this
>>>>> has been defined for everything without it seeming to cause a
>>>>> problem.
>>>>> So why do we need to change it and what impact will it have?
>>>>
>>>> It just seemed wrong to define something that should never be used
>>>> on non-Solaris platforms. My control build of the entire forest
>>>> didn't have an issue with this change so I'm planning to keep it.
>>>
>>> Ok.
>>>
>>> Thanks,
>>> David
>>
>> Again, thanks for the thorough reviews.
>>
>> Dan
>>
>>
>>>
>>>> Dan
>>>>
>>>>
>>>>
>>>>>
>>>>> David
>>>>> -----
>>>>>
>>>>> On 21/09/2013 1:36 PM, Daniel D. Daugherty wrote:
>>>>>> Greetings,
>>>>>>
>>>>>> I have the initial support for Full Debug Symbols (FDS) on MacOS X
>>>>>> done
>>>>>> and ready for review:
>>>>>>
>>>>>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>>>>>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>>>>>
>>>>>> Here is the JDK8/HSX-25 webrev URL:
>>>>>>
>>>>>> OpenJDK:
>>>>>> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>>>>>> Internal:
>>>>>> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>>>>>
>>>>>>
>>>>>>
>>>>>> This webrev includes changes for the follow repos:
>>>>>>
>>>>>> jdk8
>>>>>> jdk8/hotspot
>>>>>> jdk8/jdk
>>>>>> jdk8/jdk/make/closed
>>>>>>
>>>>>> Once these changes are approved, I'm planning to push them to
>>>>>> RT_Baseline. From there, they can follow the normal path to
>>>>>> Main_Baseline and eventually JDK8.
>>>>>>
>>>>>> This work enables FDS on MacOS X for the 'hotspot' repo; the
>>>>>> changes in
>>>>>> the other repos are necessary to support importing the .diz files
>>>>>> from
>>>>>> the MacOS X 'hotspot' build into the forest build. I also fixed a
>>>>>> few
>>>>>> FDS related errors in the magic incantations for the new build.
>>>>>> This is
>>>>>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes
>>>>>> ported
>>>>>> from Solaris. In other words, this is Frankenstein's monster...
>>>>>>
>>>>>> Thanks to Staffan Larsen for providing an initial set of changes
>>>>>> which I morphed into what you see here.
>>>>>>
>>>>>> Testing:
>>>>>> - JPRT HSX build and test on all platforms; verification of .diz
>>>>>> files in the MacOS X JPRT bundles
>>>>>> - JPRT JDK8 forest build and test on all platforms; verification of
>>>>>> .diz files in the MacOS X JPRT bundles
>>>>>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>>>>>> repo build and test, but that no longer seems to work.
>>>>>>
>>>>>> As always, comments, questions and suggestions are welcome.
>>>>>>
>>>>>> Dan
>>>>
>>
From coleen.phillimore at oracle.com Thu Oct 10 07:28:07 2013
From: coleen.phillimore at oracle.com (Coleen Phillimore)
Date: Thu, 10 Oct 2013 10:28:07 -0400
Subject: RFR 8025185: MethodHandleInError and MethodTypeInError not handled
in ConstantPool::,compare_entry_to and copy_entry_to
In-Reply-To:
References: <52544E78.9090103@oracle.com> <5255DB2A.5080209@oracle.com>
<52560B3D.1090009@oracle.com>
Message-ID: <5256B977.6000602@oracle.com>
Thanks John, I didn't realize that I forgot static keyword on the
normalize function and I like the suggestion to move it to constantTag
even better. Unfortunately, I've already checked it in. I'll make this
cleanup with my next (related) bug fix.
Thanks,
Coleen
On 10/10/2013 12:15 AM, John Rose wrote:
> Looks good.
>
> Suggestion: Make normalize_error_tag be static, for namespace cleanliness. Even better, move it into constantTag, as (say) constantTag::non_error_value().
>
> ? John
>
> On Oct 9, 2013, at 7:04 PM, Coleen Phillimore wrote:
>
>> Thanks Dan!
>> Coleen
>>
>> On 10/9/2013 6:39 PM, Daniel D. Daugherty wrote:
>>> On 10/8/13 12:27 PM, Coleen Phillimore wrote:
>>>> Summary: Add missing cases.
>>>>
>>>> I verified this with the test for https://bugs.openjdk.java.net/browse/JDK-8022701 but don't want to copy the test into with modifications the hotspot repository, still working on refactoring the test for the JDK repository for after this gets pushed.
>>>>
>>>> open webrev at http://cr.openjdk.java.net/~coleenp/8025185/
>>> src/share/vm/oops/constantPool.cpp
>>> No comments.
>>>
>>> Thumbs up.
>>>
>>> Dan
>>>
>>>
>>>> bug link https://bugs.openjdk.java.net/browse/JDK-8025185
>>>>
>>>> Thanks,
>>>> Coleen
>>>>
>>>>
From kevin.walls at oracle.com Thu Oct 10 07:49:00 2013
From: kevin.walls at oracle.com (Kevin Walls)
Date: Thu, 10 Oct 2013 15:49:00 +0100
Subject: RFR (S) 8025638: jmap returns 0 instead of 1 when it fails.
In-Reply-To: <423EB291-3E36-41F7-86F6-6362D0B49839@oracle.com>
References: <5256847D.6060103@oracle.com> <918A0955-6236-4916-BD54-F344EC9AADEA@oracle.com>
<423EB291-3E36-41F7-86F6-6362D0B49839@oracle.com>
Message-ID: <5256BE5C.4070406@oracle.com>
Hi,
Yes the removal of System.exit didn't take the error value into
account. 8010278 removed the System.exit so these Tool classes were
usable by other tools. I suppose we can use it in main() as if we're
there we should be running as a standalone app.
The execute method seems like a nice simplification for the Tools. An
external app that wants to call one of the Tools can't use it, as it may
call System.exit (and you don't want to make execute return an int as
then every Tool class has to have more logic in its main() ).
nits in Tool.java
115 { should be on the same line as execute definition begins.
120 } finally { on one line
I don't think stop() should become private, an existing app that used
"public void start()" would expect to call a public stop().
There are a few other files that might want looking at to get them
returning an error code: CLHSDB and HSDB (CommandProcessor looks OK, it
only had System.exit(0) removed.) That could be a separate bug...
Thanks!
Kevin
On 10/10/13 12:49, Staffan Larsen wrote:
> Thanks for doing this!
>
> Tool.java:116 - shouldn't the default return value be 1? In case
> start() throws an exception for some reason.
>
> Tool.java: I find the start(String[] args), start(), startInternal()
> methods confusing in naming and usage. Not directly related to your
> change of course, just a comment on the code.
>
> /Staffan
>
>
> On 10 okt 2013, at 13:38, Staffan Larsen > wrote:
>
>> Clicking on the link in this email takes me to the wrong webrev. The
>> correct URL is in the text:
>> http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>>
>>
>> /Staffan
>>
>> On 10 okt 2013, at 12:42, Fredrik Arvidsson
>> >
>> wrote:
>>
>>> Hi
>>>
>>> Please help me to review the changes below:
>>>
>>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8025638
>>>
>>> Webrev:
>>> http://cr.openjdk.java.net/~allwin/farvidss/8025638/webrev.00/
>>>
>>>
>>> About this change.
>>> A previous change (https://bugs.openjdk.java.net/browse/JDK-8010278)
>>> in the Tool.java class caused any tool deriving from this base class
>>> return the wrong value to the caller when failing.
>>> Changes were made to the Tool.java class and to the derived tool
>>> implementation classes to handle errors/exceptions during execution
>>> and ensure that the tool returns 1 to the caller if it fails, and 0
>>> if it succeeds.
>>>
>>> Previously failed Aurora tests have been run using UTE and verified
>>> to PASS.
>>>
>>> Cheers
>>> /Fredrik
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131010/6e6a0c65/attachment.html
From fredrik.arvidsson at oracle.com Thu Oct 10 07:58:23 2013
From: fredrik.arvidsson at oracle.com (Fredrik Arvidsson)
Date: Thu, 10 Oct 2013 16:58:23 +0200
Subject: RFR (XXS) 8026199:
serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java
Compilation failed
Message-ID: <5256C08F.4000908@oracle.com>
Hi
Jira: https://bugs.openjdk.java.net/browse/JDK-8026199
Webrev : http://cr.openjdk.java.net/~allwin/farvidss/8026199/webrev.00/
About this fix:
This fixes a compilation error in a JTReg test. This issue was a result
of some more or less concurrent changes in the same files in the Java
testlibrary code.
Cheers
/Fredrik
From staffan.larsen at oracle.com Thu Oct 10 09:01:07 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Thu, 10 Oct 2013 09:01:07 -0700 (PDT)
Subject: RFR (XXS) 8026199:
serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java Compilation
failed
Message-ID: <396e6fcf-6dc7-4ee6-ba20-31ce734d345b@default>
Looks good to me.
Thanks,
/Staffan
----- Original Message -----
From: fredrik.arvidsson at oracle.com
To: serviceability-dev at openjdk.java.net
Sent: Thursday, October 10, 2013 4:58:58 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: RFR (XXS) 8026199: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java Compilation failed
Hi
Jira: https://bugs.openjdk.java.net/browse/JDK-8026199
Webrev : http://cr.openjdk.java.net/~allwin/farvidss/8026199/webrev.00/
About this fix:
This fixes a compilation error in a JTReg test. This issue was a result
of some more or less concurrent changes in the same files in the Java
testlibrary code.
Cheers
/Fredrik
From jaroslav.bachorik at oracle.com Thu Oct 10 09:05:05 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Thu, 10 Oct 2013 18:05:05 +0200
Subject: RFR (XXS) 8026199:
serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java
Compilation failed
In-Reply-To: <5256C08F.4000908@oracle.com>
References: <5256C08F.4000908@oracle.com>
Message-ID: <5256D031.8020701@oracle.com>
Looks good.
-JB-
On 10.10.2013 16:58, Fredrik Arvidsson wrote:
> Hi
>
> Jira: https://bugs.openjdk.java.net/browse/JDK-8026199
> Webrev : http://cr.openjdk.java.net/~allwin/farvidss/8026199/webrev.00/
>
>
> About this fix:
> This fixes a compilation error in a JTReg test. This issue was a result
> of some more or less concurrent changes in the same files in the Java
> testlibrary code.
>
> Cheers
> /Fredrik
>
>
From shanliang.jiang at oracle.com Thu Oct 10 08:48:09 2013
From: shanliang.jiang at oracle.com (shanliang.jiang at oracle.com)
Date: Thu, 10 Oct 2013 15:48:09 +0000
Subject: hg: jdk8/tl/jdk: 8025204: Intermittent test failure:
javax/management/remote/mandatory/connection/IdleTimeoutTest.java
Message-ID: <20131010154859.B08D062F01@hg.openjdk.java.net>
Changeset: cab80088c671
Author: sjiang
Date: 2013-10-10 17:47 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cab80088c671
8025204: Intermittent test failure: javax/management/remote/mandatory/connection/IdleTimeoutTest.java
Reviewed-by: dholmes, jbachorik
! test/javax/management/remote/mandatory/connection/IdleTimeoutTest.java
From joel.franck at oracle.com Thu Oct 10 09:19:01 2013
From: joel.franck at oracle.com (joel.franck at oracle.com)
Date: Thu, 10 Oct 2013 16:19:01 +0000
Subject: hg: jdk8/tl/jdk: 7044282: (reflect) Class.forName and
Array.newInstance are inconsistent regarding multidimensional arrays
Message-ID: <20131010161931.9663E62F04@hg.openjdk.java.net>
Changeset: f25d9d8811ca
Author: jfranck
Date: 2013-10-10 18:11 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f25d9d8811ca
7044282: (reflect) Class.forName and Array.newInstance are inconsistent regarding multidimensional arrays
Reviewed-by: darcy, psandoz
! src/share/classes/java/lang/reflect/Array.java
+ test/java/lang/Class/forName/arrayClass/Class1.java
+ test/java/lang/Class/forName/arrayClass/Class2.java
+ test/java/lang/Class/forName/arrayClass/Class3.java
+ test/java/lang/Class/forName/arrayClass/Class4.java
+ test/java/lang/Class/forName/arrayClass/ExceedMaxDim.java
! test/java/lang/reflect/Array/ExceedMaxDim.java
From bhavesh.x.patel at oracle.com Thu Oct 10 10:52:29 2013
From: bhavesh.x.patel at oracle.com (bhavesh.x.patel at oracle.com)
Date: Thu, 10 Oct 2013 17:52:29 +0000
Subject: hg: jdk8/tl/langtools: 8025633: Fix javadoc to generate valid anchor
names
Message-ID: <20131010175322.BB19962F20@hg.openjdk.java.net>
Changeset: 933ba3f81a87
Author: bpatel
Date: 2013-10-10 10:51 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/933ba3f81a87
8025633: Fix javadoc to generate valid anchor names
Reviewed-by: jjg
! src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeFieldWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java
! src/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java
+ src/share/classes/com/sun/tools/doclets/formats/html/SectionName.java
! src/share/classes/com/sun/tools/doclets/formats/html/SingleIndexWriter.java
! src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java
! src/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocletConstants.java
! test/com/sun/javadoc/AccessSkipNav/AccessSkipNav.java
+ test/com/sun/javadoc/testAnchorNames/TestAnchorNames.java
+ test/com/sun/javadoc/testAnchorNames/pkg1/DeprMemClass.java
+ test/com/sun/javadoc/testAnchorNames/pkg1/RegClass.java
! test/com/sun/javadoc/testAnnotationOptional/TestAnnotationOptional.java
! test/com/sun/javadoc/testAnnotationTypes/TestAnnotationTypes.java
! test/com/sun/javadoc/testClassCrossReferences/TestClassCrossReferences.java
! test/com/sun/javadoc/testExternalOverridenMethod/TestExternalOverridenMethod.java
! test/com/sun/javadoc/testHref/TestHref.java
! test/com/sun/javadoc/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java
! test/com/sun/javadoc/testInterface/TestInterface.java
! test/com/sun/javadoc/testJavaFX/TestJavaFX.java
! test/com/sun/javadoc/testLinkTaglet/TestLinkTaglet.java
! test/com/sun/javadoc/testMemberInheritence/TestMemberInheritence.java
! test/com/sun/javadoc/testMemberSummary/TestMemberSummary.java
! test/com/sun/javadoc/testNavigation/TestNavigation.java
! test/com/sun/javadoc/testNestedGenerics/TestNestedGenerics.java
! test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java
! test/com/sun/javadoc/testOverridenMethods/TestOverridenMethodDocCopy.java
! test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPackageFlag.java
! test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java
! test/com/sun/javadoc/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java
! test/com/sun/javadoc/testTaglets/TestTaglets.java
! test/com/sun/javadoc/testTypeAnnotations/TestTypeAnnotations.java
! test/com/sun/javadoc/testTypeParams/TestTypeParameters.java
! test/com/sun/javadoc/testWarnings/TestWarnings.java
From eric.mccorkle at oracle.com Thu Oct 10 10:56:29 2013
From: eric.mccorkle at oracle.com (eric.mccorkle at oracle.com)
Date: Thu, 10 Oct 2013 17:56:29 +0000
Subject: hg: jdk8/tl/langtools: 8019461: Clean up javac diagnostics; ...
Message-ID: <20131010175642.9149F62F23@hg.openjdk.java.net>
Changeset: 6dcf94e32a3a
Author: emc
Date: 2013-10-10 13:55 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/6dcf94e32a3a
8019461: Clean up javac diagnostics
7196553: Review error messages for repeating annotations
Summary: Changes to the diagnostic messages to improve clarity and JLS coherence
Reviewed-by: jjg
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! src/share/classes/com/sun/tools/javac/comp/Check.java
! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
! src/share/classes/com/sun/tools/javac/resources/compiler.properties
- test/tools/javac/diags/examples/DuplicateAnnotation.java
+ test/tools/javac/diags/examples/InterfaceOrArrayExpected.java
+ test/tools/javac/diags/examples/RepeatableAnnotationsNotSupported.java
From john.coomes at oracle.com Thu Oct 10 11:19:19 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 10 Oct 2013 18:19:19 +0000
Subject: hg: hsx/hotspot-rt: 5 new changesets
Message-ID: <20131010181920.3020462F32@hg.openjdk.java.net>
Changeset: feb4f2d97042
Author: ihse
Date: 2013-10-03 11:26 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/feb4f2d97042
8008944: Correct typos
Reviewed-by: tbell, erikj
! NewMakefile.gmk
! common/autoconf/generated-configure.sh
! common/autoconf/jdk-options.m4
! common/makefiles/JavaCompilation.gmk
Changeset: d23177734b28
Author: thurka
Date: 2013-10-07 13:11 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/d23177734b28
8025920: webrev.ksh does not provide any details about changes in zip files
Summary: Add support for diffs for zip files
Reviewed-by: ksrini, chegar
! make/scripts/webrev.ksh
Changeset: 9b102ab97693
Author: erikj
Date: 2013-10-07 18:19 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/9b102ab97693
8005924: Make it possible to set both --with-user-release-suffix and --with-build-number
Reviewed-by: ihse, tbell
! common/autoconf/generated-configure.sh
! common/autoconf/jdk-options.m4
! common/autoconf/spec.gmk.in
Changeset: d086227bfc45
Author: katleman
Date: 2013-10-08 13:09 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/d086227bfc45
Merge
Changeset: 82a36c5c4eaf
Author: cl
Date: 2013-10-10 10:08 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/82a36c5c4eaf
Added tag jdk8-b111 for changeset d086227bfc45
! .hgtags
From john.coomes at oracle.com Thu Oct 10 11:19:50 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 10 Oct 2013 18:19:50 +0000
Subject: hg: hsx/hotspot-rt/corba: Added tag jdk8-b111 for changeset
85c1c94e7235
Message-ID: <20131010181954.B290262F33@hg.openjdk.java.net>
Changeset: d7e478820c56
Author: cl
Date: 2013-10-10 10:08 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/corba/rev/d7e478820c56
Added tag jdk8-b111 for changeset 85c1c94e7235
! .hgtags
From john.coomes at oracle.com Thu Oct 10 11:20:24 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 10 Oct 2013 18:20:24 +0000
Subject: hg: hsx/hotspot-rt/jaxp: Added tag jdk8-b111 for changeset
17ee0d3e97fd
Message-ID: <20131010182039.1A7B162F34@hg.openjdk.java.net>
Changeset: a4622ff1462b
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jaxp/rev/a4622ff1462b
Added tag jdk8-b111 for changeset 17ee0d3e97fd
! .hgtags
From john.coomes at oracle.com Thu Oct 10 11:21:12 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 10 Oct 2013 18:21:12 +0000
Subject: hg: hsx/hotspot-rt/jaxws: Added tag jdk8-b111 for changeset
32edc7a2c866
Message-ID: <20131010182121.26F4C62F36@hg.openjdk.java.net>
Changeset: fc94ce4b899e
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jaxws/rev/fc94ce4b899e
Added tag jdk8-b111 for changeset 32edc7a2c866
! .hgtags
From john.coomes at oracle.com Thu Oct 10 11:21:55 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 10 Oct 2013 18:21:55 +0000
Subject: hg: hsx/hotspot-rt/jdk: 4 new changesets
Message-ID: <20131010182420.4BFBC62F37@hg.openjdk.java.net>
Changeset: 88597d465e48
Author: ihse
Date: 2013-10-01 15:13 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/88597d465e48
8016024: Remove solaris path from FillCacheFind
Reviewed-by: erikj
! makefiles/Tools.gmk
Changeset: 760af86b3f3f
Author: erikj
Date: 2013-10-03 11:27 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/760af86b3f3f
8024522: java.time packages missing from src.zip
Reviewed-by: tbell
! makefiles/CreateJars.gmk
Changeset: 719befd87c7b
Author: katleman
Date: 2013-10-08 13:10 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/719befd87c7b
Merge
Changeset: 7af04d2d2139
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/7af04d2d2139
Added tag jdk8-b111 for changeset 719befd87c7b
! .hgtags
From john.coomes at oracle.com Thu Oct 10 11:25:59 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 10 Oct 2013 18:25:59 +0000
Subject: hg: hsx/hotspot-rt/langtools: Added tag jdk8-b111 for changeset
af6244ba81b6
Message-ID: <20131010182631.AEB6362F38@hg.openjdk.java.net>
Changeset: a0e8fd2464d6
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/a0e8fd2464d6
Added tag jdk8-b111 for changeset af6244ba81b6
! .hgtags
From john.coomes at oracle.com Thu Oct 10 11:27:32 2013
From: john.coomes at oracle.com (john.coomes at oracle.com)
Date: Thu, 10 Oct 2013 18:27:32 +0000
Subject: hg: hsx/hotspot-rt/nashorn: Added tag jdk8-b111 for changeset
75fd3486e584
Message-ID: <20131010182736.DA39862F39@hg.openjdk.java.net>
Changeset: fc2b6885e60e
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/nashorn/rev/fc2b6885e60e
Added tag jdk8-b111 for changeset 75fd3486e584
! .hgtags
From dmitry.samersoff at oracle.com Thu Oct 10 11:33:34 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Thu, 10 Oct 2013 22:33:34 +0400
Subject: RR(S): JDK-8004213 jdp packet need pid, broadcast interval and rmi
server hostname fields.
Message-ID: <5256F2FE.4090202@oracle.com>
Hi Everyone,
This fix covers
JDK JDK-8004213 JDP packets should contain PID
JDK-8004215 JDP packets should contain the configured broadcast interval
JDK-8007071 JDP does not work well with java.rmi.server.hostname overrides.
and add three extra fields to JDP packet: PID, rmi server name,
broadcast interval.
PID gathering code mostly borrowed from hotspot testlibrary.
http://cr.openjdk.java.net/~dsamersoff/JDK-8004213/webrev.01/
-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.
From eric.mccorkle at oracle.com Thu Oct 10 15:56:46 2013
From: eric.mccorkle at oracle.com (eric.mccorkle at oracle.com)
Date: Thu, 10 Oct 2013 22:56:46 +0000
Subject: hg: jdk8/tl/jdk: 8026011:
java.lang.reflect.MalformedParametersException introduces
doclint warnings
Message-ID: <20131010225701.3187A62F46@hg.openjdk.java.net>
Changeset: 4abfcbac1cb6
Author: emc
Date: 2013-10-10 18:56 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4abfcbac1cb6
8026011: java.lang.reflect.MalformedParametersException introduces doclint warnings
Summary: Add javadoc comments to members of MalformedParametersException
Reviewed-by: darcy
! src/share/classes/java/lang/reflect/MalformedParametersException.java
From eric.mccorkle at oracle.com Thu Oct 10 17:12:41 2013
From: eric.mccorkle at oracle.com (eric.mccorkle at oracle.com)
Date: Fri, 11 Oct 2013 00:12:41 +0000
Subject: hg: jdk8/tl/langtools: 8008762: Type annotation on inner class in
anonymous class show up as regular type annotations; ...
Message-ID: <20131011001244.DCEAB62F49@hg.openjdk.java.net>
Changeset: b1b4a6dcc282
Author: emc
Date: 2013-10-10 20:12 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/b1b4a6dcc282
8008762: Type annotation on inner class in anonymous class show up as regular type annotations
8015257: type annotation with TYPE_USE and FIELD attributed differently if repeated.
8013409: test failures for type annotations
Summary: Fixes to address some problems in type annotations
Reviewed-by: jfranck, jjg
! src/share/classes/com/sun/tools/javac/code/Attribute.java
! src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
! src/share/classes/com/sun/tools/javac/jvm/Gen.java
+ test/tools/javac/annotations/typeAnnotations/classfile/TestAnonInnerClasses.java
+ test/tools/javac/annotations/typeAnnotations/classfile/testanoninner.template
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.java
! test/tools/javac/annotations/typeAnnotations/failures/CantAnnotateStaticClass.out
! test/tools/javac/annotations/typeAnnotations/newlocations/MultiCatch.java
! test/tools/javac/annotations/typeAnnotations/referenceinfos/MultiCatch.java
From jonathan.gibbons at oracle.com Thu Oct 10 17:14:53 2013
From: jonathan.gibbons at oracle.com (jonathan.gibbons at oracle.com)
Date: Fri, 11 Oct 2013 00:14:53 +0000
Subject: hg: jdk8/tl/langtools: 8026294: 8025633 breaks
langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
Message-ID: <20131011001456.7B35062F4A@hg.openjdk.java.net>
Changeset: f068d235c4f7
Author: jjg
Date: 2013-10-10 17:13 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/f068d235c4f7
8026294: 8025633 breaks langtools/test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
Reviewed-by: darcy
! test/com/sun/javadoc/testRepeatedAnnotations/TestRepeatedAnnotations.java
From huizhe.wang at oracle.com Thu Oct 10 17:01:50 2013
From: huizhe.wang at oracle.com (huizhe.wang at oracle.com)
Date: Fri, 11 Oct 2013 00:01:50 +0000
Subject: hg: jdk8/tl/jaxp: 8003262: reverse translation required changes in
xalan resource bundles
Message-ID: <20131011000152.91BCF62F47@hg.openjdk.java.net>
Changeset: b76629725522
Author: joehw
Date: 2013-10-10 17:01 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/b76629725522
8003262: reverse translation required changes in xalan resource bundles
Reviewed-by: lancea, dfuchs
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_de.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_es.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_fr.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_it.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_ja.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_ko.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_pt_BR.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_sv.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_zh_CN.java
! src/com/sun/org/apache/xalan/internal/res/XSLTErrorResources_zh_TW.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_ca.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_cs.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_de.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_es.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_fr.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_it.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_ja.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_ko.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_pt_BR.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_sk.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_sv.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_zh_CN.java
! src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/ErrorMessages_zh_TW.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ca.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_cs.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_de.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_es.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_fr.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_it.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ja.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_ko.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_pt_BR.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sk.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_sv.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_CN.java
! src/com/sun/org/apache/xalan/internal/xsltc/runtime/ErrorMessages_zh_TW.java
From lana.steuck at oracle.com Thu Oct 10 21:33:10 2013
From: lana.steuck at oracle.com (lana.steuck at oracle.com)
Date: Fri, 11 Oct 2013 04:33:10 +0000
Subject: hg: jdk8/tl/jaxp: 5 new changesets
Message-ID: <20131011043340.3400362F56@hg.openjdk.java.net>
Changeset: 17ee0d3e97fd
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/17ee0d3e97fd
Added tag jdk8-b110 for changeset 4c84c5b447b0
! .hgtags
Changeset: 2107c9baa457
Author: lana
Date: 2013-10-10 10:03 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/2107c9baa457
Merge
Changeset: cff4e3bf530a
Author: lana
Date: 2013-10-10 20:57 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/cff4e3bf530a
Merge
Changeset: a4622ff1462b
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/a4622ff1462b
Added tag jdk8-b111 for changeset 17ee0d3e97fd
! .hgtags
Changeset: 46ccc5fbc523
Author: lana
Date: 2013-10-10 21:22 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/46ccc5fbc523
Merge
From lana.steuck at oracle.com Thu Oct 10 21:33:03 2013
From: lana.steuck at oracle.com (lana.steuck at oracle.com)
Date: Fri, 11 Oct 2013 04:33:03 +0000
Subject: hg: jdk8/tl/corba: 2 new changesets
Message-ID: <20131011043309.5879962F53@hg.openjdk.java.net>
Changeset: 85c1c94e7235
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/corba/rev/85c1c94e7235
Added tag jdk8-b110 for changeset 3d2b7ce93c5c
! .hgtags
Changeset: d7e478820c56
Author: cl
Date: 2013-10-10 10:08 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/corba/rev/d7e478820c56
Added tag jdk8-b111 for changeset 85c1c94e7235
! .hgtags
From lana.steuck at oracle.com Thu Oct 10 21:33:12 2013
From: lana.steuck at oracle.com (lana.steuck at oracle.com)
Date: Fri, 11 Oct 2013 04:33:12 +0000
Subject: hg: jdk8/tl/nashorn: 4 new changesets
Message-ID: <20131011043325.F1F5C62F54@hg.openjdk.java.net>
Changeset: d49a8c2173f5
Author: lana
Date: 2013-09-26 17:23 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/d49a8c2173f5
Merge
Changeset: 75fd3486e584
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/75fd3486e584
Added tag jdk8-b110 for changeset d49a8c2173f5
! .hgtags
Changeset: fc2b6885e60e
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/fc2b6885e60e
Added tag jdk8-b111 for changeset 75fd3486e584
! .hgtags
Changeset: f6263ae511c2
Author: lana
Date: 2013-10-10 13:41 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/f6263ae511c2
Merge
From lana.steuck at oracle.com Thu Oct 10 21:33:00 2013
From: lana.steuck at oracle.com (lana.steuck at oracle.com)
Date: Fri, 11 Oct 2013 04:33:00 +0000
Subject: hg: jdk8/tl: 12 new changesets
Message-ID: <20131011043303.7C9E462F52@hg.openjdk.java.net>
Changeset: 5ec3c4948863
Author: ksrini
Date: 2013-09-27 16:27 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/5ec3c4948863
8023495: [infra] create 64-bit solaris bits with symlinks
Reviewed-by: ihse, tbell, erikj
! common/makefiles/Jprt.gmk
! common/makefiles/Main.gmk
Changeset: 72c2495c86c9
Author: katleman
Date: 2013-10-01 12:43 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/72c2495c86c9
Merge
Changeset: 0f704e36bc5d
Author: ihse
Date: 2013-10-01 10:58 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/rev/0f704e36bc5d
8006661: Use LC_ALL=C instead of LANG=C compare.sh
Reviewed-by: tbell
! common/bin/compare.sh
Changeset: 4faa09c7fe55
Author: erikj
Date: 2013-10-02 15:08 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/rev/4faa09c7fe55
Merge
Changeset: 669e3e3d4459
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/669e3e3d4459
Added tag jdk8-b110 for changeset 4faa09c7fe55
! .hgtags
Changeset: feb4f2d97042
Author: ihse
Date: 2013-10-03 11:26 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/rev/feb4f2d97042
8008944: Correct typos
Reviewed-by: tbell, erikj
! NewMakefile.gmk
! common/autoconf/generated-configure.sh
! common/autoconf/jdk-options.m4
! common/makefiles/JavaCompilation.gmk
Changeset: d23177734b28
Author: thurka
Date: 2013-10-07 13:11 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/rev/d23177734b28
8025920: webrev.ksh does not provide any details about changes in zip files
Summary: Add support for diffs for zip files
Reviewed-by: ksrini, chegar
! make/scripts/webrev.ksh
Changeset: 9b102ab97693
Author: erikj
Date: 2013-10-07 18:19 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/rev/9b102ab97693
8005924: Make it possible to set both --with-user-release-suffix and --with-build-number
Reviewed-by: ihse, tbell
! common/autoconf/generated-configure.sh
! common/autoconf/jdk-options.m4
! common/autoconf/spec.gmk.in
Changeset: d086227bfc45
Author: katleman
Date: 2013-10-08 13:09 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/d086227bfc45
Merge
Changeset: 4d23143c676a
Author: lana
Date: 2013-10-10 08:49 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/4d23143c676a
Merge
Changeset: 82a36c5c4eaf
Author: cl
Date: 2013-10-10 10:08 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/82a36c5c4eaf
Added tag jdk8-b111 for changeset d086227bfc45
! .hgtags
Changeset: fd3b32cc4b6e
Author: lana
Date: 2013-10-10 21:22 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/fd3b32cc4b6e
Merge
From lana.steuck at oracle.com Thu Oct 10 21:33:07 2013
From: lana.steuck at oracle.com (lana.steuck at oracle.com)
Date: Fri, 11 Oct 2013 04:33:07 +0000
Subject: hg: jdk8/tl/jaxws: 4 new changesets
Message-ID: <20131011043336.B9FD962F55@hg.openjdk.java.net>
Changeset: 32edc7a2c866
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxws/rev/32edc7a2c866
Added tag jdk8-b110 for changeset cc682329886b
! .hgtags
Changeset: da77e343f458
Author: lana
Date: 2013-10-10 10:03 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxws/rev/da77e343f458
Merge
Changeset: fc94ce4b899e
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxws/rev/fc94ce4b899e
Added tag jdk8-b111 for changeset 32edc7a2c866
! .hgtags
Changeset: 66a12ce67d3a
Author: lana
Date: 2013-10-10 21:22 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jaxws/rev/66a12ce67d3a
Merge
From lana.steuck at oracle.com Thu Oct 10 21:33:32 2013
From: lana.steuck at oracle.com (lana.steuck at oracle.com)
Date: Fri, 11 Oct 2013 04:33:32 +0000
Subject: hg: jdk8/tl/langtools: 5 new changesets
Message-ID: <20131011043353.0A54662F57@hg.openjdk.java.net>
Changeset: 41541097533a
Author: lana
Date: 2013-09-26 17:23 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/41541097533a
Merge
Changeset: af6244ba81b6
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/af6244ba81b6
Added tag jdk8-b110 for changeset 41541097533a
! .hgtags
Changeset: a0e8fd2464d6
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/a0e8fd2464d6
Added tag jdk8-b111 for changeset af6244ba81b6
! .hgtags
Changeset: 8f293c710369
Author: lana
Date: 2013-10-10 13:41 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/8f293c710369
Merge
Changeset: bf33f4f81b40
Author: lana
Date: 2013-10-10 20:57 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/bf33f4f81b40
Merge
- test/tools/javac/diags/examples/DuplicateAnnotation.java
From lana.steuck at oracle.com Thu Oct 10 21:34:22 2013
From: lana.steuck at oracle.com (lana.steuck at oracle.com)
Date: Fri, 11 Oct 2013 04:34:22 +0000
Subject: hg: jdk8/tl/hotspot: 82 new changesets
Message-ID: <20131011043729.093EC62F58@hg.openjdk.java.net>
Changeset: 8a6a85321d3a
Author: amurillo
Date: 2013-09-20 11:17 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/8a6a85321d3a
8025127: new hotspot build - hs25-b52
Reviewed-by: jcoomes
! make/hotspot_version
Changeset: 63147986a428
Author: dcubed
Date: 2013-09-18 07:02 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/63147986a428
8019835: Strings interned in different threads equal but does not ==
Summary: Add -XX:+VerifyStringTableAtExit option and code to verify StringTable invariants.
Reviewed-by: rdurbin, sspitsyn, coleenp
! src/share/vm/classfile/javaClasses.cpp
! src/share/vm/classfile/javaClasses.hpp
! src/share/vm/classfile/symbolTable.cpp
! src/share/vm/classfile/symbolTable.hpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/runtime/java.cpp
Changeset: dfae98867ee8
Author: dholmes
Date: 2013-09-18 20:08 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/dfae98867ee8
8024826: (s) : Remove alt-rt.jar, used by +AggressiveOps
Reviewed-by: alanb, chegar, dholmes, ksrini
Contributed-by: Mike Duigou
! src/share/vm/runtime/arguments.cpp
Changeset: c1d7040a1183
Author: sgabdura
Date: 2013-09-18 16:48 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/c1d7040a1183
8022836: JVM crashes in JVMTIENVBASE::GET_CURRENT_CONTENDED_MONITOR and GET_OWNED_MONITOR
Summary: Check that the _java_thread parameter is valid when it is possible that the JavaThread has exited after the initial checks were made in generated/jvmtifiles/jvmtiEnter.cpp: jvmti_GetCurrentContendedMonitor()
Reviewed-by: dcubed, dsamersoff
! src/share/vm/prims/jvmtiEnvBase.hpp
Changeset: 8c84f04ff977
Author: kevinw
Date: 2013-09-18 19:50 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/8c84f04ff977
Merge
Changeset: 6eb908998b32
Author: kevinw
Date: 2013-09-19 08:47 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/6eb908998b32
Merge
Changeset: 9ed97b511b26
Author: hseigel
Date: 2013-09-19 11:04 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/9ed97b511b26
8024517: runtime/CDSCompressedKPtrs/XShareAuto.java failed with RuntimeException
Summary: Make sure CDS is off by default when running server compiler.
Reviewed-by: dholmes, coleenp
! src/share/vm/runtime/arguments.cpp
! test/runtime/CDSCompressedKPtrs/XShareAuto.java
Changeset: 4f9a42c33738
Author: coleenp
Date: 2013-09-20 09:30 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/4f9a42c33738
8022887: Assertion hit while using class and redefining it with RedefineClasses simultaneously
Summary: Need to refetch each method from InstanceKlass after all safepoints. Removed leaky PreviousVersionInfo code.
Reviewed-by: dcubed, sspitsyn
! src/share/vm/memory/metaspaceShared.cpp
! src/share/vm/oops/instanceKlass.cpp
! src/share/vm/oops/instanceKlass.hpp
! src/share/vm/prims/jvm.cpp
! src/share/vm/prims/jvmtiImpl.cpp
! src/share/vm/prims/jvmtiRedefineClasses.cpp
! src/share/vm/runtime/handles.hpp
! src/share/vm/runtime/handles.inline.hpp
Changeset: f201713502e0
Author: coleenp
Date: 2013-09-20 09:44 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/f201713502e0
Merge
Changeset: 1b03bed31241
Author: allwin
Date: 2013-09-17 17:16 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/1b03bed31241
7196151: ParserTest SEGv on solaris
Reviewed-by: sla, coleenp, ctornqvi, dsamersoff
! src/share/vm/services/diagnosticArgument.cpp
Changeset: e5a25e4ae509
Author: mgerdin
Date: 2013-09-20 10:34 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/e5a25e4ae509
Merge
Changeset: 7c29904fdfa2
Author: coleenp
Date: 2013-09-20 18:34 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/7c29904fdfa2
8014956: nashorn/api/javaaccess/MethodAccessTest.java test fails on sparc-solaris 64
Summary: reference_map[] array had uninitialized junk that was causing a bogus bootstrap method to be found.
Reviewed-by: hseigel, dcubed, sspitsyn
! src/share/vm/oops/constantPool.cpp
! src/share/vm/oops/constantPool.hpp
Changeset: df03413ad1a9
Author: coleenp
Date: 2013-09-21 01:45 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/df03413ad1a9
Merge
Changeset: 0f37d1badced
Author: dcubed
Date: 2013-09-20 12:58 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/0f37d1badced
Merge
! src/share/vm/oops/instanceKlass.cpp
! src/share/vm/oops/instanceKlass.hpp
! src/share/vm/prims/jvm.cpp
! src/share/vm/prims/jvmtiRedefineClasses.cpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
Changeset: a7609ec351d6
Author: dcubed
Date: 2013-09-20 18:19 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/a7609ec351d6
Merge
! src/share/vm/oops/constantPool.cpp
! src/share/vm/oops/constantPool.hpp
- test/gc/metaspace/ClassMetaspaceSizeInJmapHeap.java
Changeset: 8ddc26f62476
Author: sla
Date: 2013-09-22 06:31 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/8ddc26f62476
6989981: jstack causes "fatal error: ExceptionMark destructor expects no pending exceptions"
Reviewed-by: sla, dsamersoff
Contributed-by: Yasumasa Suenaga
! src/share/vm/services/attachListener.cpp
Changeset: 1f42d3ec1759
Author: dsamersoff
Date: 2013-09-22 18:49 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/1f42d3ec1759
7133122: SA throws sun.jvm.hotspot.debugger.UnmappedAddressException when it should not
Summary: replace PT_LOAD segment with library segment when necessary
Reviewed-by: dholmes, sla
! agent/src/os/linux/ps_core.c
Changeset: ae2edb3df7fb
Author: dsamersoff
Date: 2013-09-22 18:07 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/ae2edb3df7fb
Merge
Changeset: 084b21cd0228
Author: iklam
Date: 2013-09-23 08:56 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/084b21cd0228
8025088: Missing cases for JVM_CONSTANT_MethodHandleInError cause crash if debugger steps into error-tagged method handle
Summary: Need to refetch each method from InstanceKlass after all safepoints. Removed leaky PreviousVersionInfo code.
Reviewed-by: coleenp, sspitsyn
! src/share/vm/oops/constantPool.cpp
! src/share/vm/oops/constantPool.hpp
Changeset: e8a0010ba69e
Author: zgu
Date: 2013-09-25 13:03 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/e8a0010ba69e
Merge
Changeset: 891687731b59
Author: anoll
Date: 2013-09-24 15:56 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/891687731b59
7009641: Don't fail VM when CodeCache is full
Summary: Allocation in the code cache returns NULL instead of failing the entire VM
Reviewed-by: kvn, iveresov
! src/cpu/sparc/vm/vtableStubs_sparc.cpp
! src/cpu/x86/vm/vtableStubs_x86_32.cpp
! src/cpu/x86/vm/vtableStubs_x86_64.cpp
! src/share/vm/code/compiledIC.cpp
! src/share/vm/code/compiledIC.hpp
! src/share/vm/code/vtableStubs.cpp
! src/share/vm/runtime/sharedRuntime.cpp
Changeset: 1b64d46620a3
Author: kvn
Date: 2013-09-24 16:08 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/1b64d46620a3
8022585: VM crashes when ran with -XX:+PrintInlining
Summary: use adr_at() to access inline info structures in growableArray. Add ability to specify print inlining per method.
Reviewed-by: twisti
! src/share/vm/c1/c1_GraphBuilder.cpp
! src/share/vm/opto/bytecodeInfo.cpp
! src/share/vm/opto/callGenerator.hpp
! src/share/vm/opto/compile.cpp
! src/share/vm/opto/compile.hpp
! src/share/vm/opto/doCall.cpp
! src/share/vm/opto/library_call.cpp
+ test/compiler/print/PrintInlining.java
Changeset: f637d4dc21bb
Author: adlertz
Date: 2013-09-26 08:48 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/f637d4dc21bb
Merge
Changeset: 586fa1919a89
Author: bpittore
Date: 2013-09-20 15:06 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/586fa1919a89
8014911: Should use SUPPORTS_NATIVE_CX8 define to help C/C++ compiler elide blocks of code
Summary: If SUPPORTS_NATIVE_CX8 true then supports_cx8() function hard coded to return 'true'
Reviewed-by: kvn, twisti, dholmes
! src/share/vm/runtime/vm_version.hpp
Changeset: 504d8f519adf
Author: jiangli
Date: 2013-09-20 20:19 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/504d8f519adf
Merge
Changeset: d682c6e24fe3
Author: bdelsart
Date: 2013-09-26 01:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/d682c6e24fe3
Merge
Changeset: 60a2d625db36
Author: bdelsart
Date: 2013-09-26 04:00 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/60a2d625db36
Merge
Changeset: 2c022e432e10
Author: stefank
Date: 2013-09-20 10:53 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/2c022e432e10
8024974: Incorrect use of GC_locker::is_active()
Summary: SymbolTable and StringTable can make calls to GC_locker::is_active() outside a safepoint. This isn't safe because the GC_locker active state (lock count) is only updated at a safepoint and only remains valid as long as _needs_gc is true. However, outside a safepoint_needs_gc can change to false at any time, which makes it impossible to do a correct call to is_active() in that context. In this case these calls can just be removed since the input argument to basic_add() should never be on the heap and so there's no need to check the GC_locker state. This change also adjusts the assert() in is_active() to makes sure all calls to this function are always done under a safepoint.
Reviewed-by: brutisso, dcubed
Contributed-by: per.liden at oracle.com
! src/share/vm/classfile/symbolTable.cpp
! src/share/vm/memory/gcLocker.cpp
! src/share/vm/memory/gcLocker.hpp
Changeset: 9361de86a50f
Author: stefank
Date: 2013-09-20 11:00 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/9361de86a50f
8025059: Metspace::should_expand mixes bytes and words in check against MaxMetaspaceSize
Reviewed-by: coleenp, brutisso, mgerdin, jmasa
! src/share/vm/memory/metaspace.cpp
Changeset: b960c9df4f11
Author: stefank
Date: 2013-09-21 10:09 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/b960c9df4f11
8025096: Move the ChunkManager instances out of the VirtualSpaceLists
Reviewed-by: coleenp, mgerdin, jmasa
! src/share/vm/memory/metaspace.cpp
! src/share/vm/memory/metaspace.hpp
Changeset: 10cc3b624f8f
Author: tschatzl
Date: 2013-09-24 10:14 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/10cc3b624f8f
Merge
- test/runtime/6878713/Test6878713.sh
- test/runtime/6878713/testcase.jar
- test/runtime/7020373/Test7020373.sh
- test/runtime/7020373/testcase.jar
Changeset: a19bea467577
Author: tschatzl
Date: 2013-09-25 13:25 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/a19bea467577
7163191: G1: introduce a "heap spanning table" abstraction
Summary: Add G1BiasedArray that is an array where each element represents a fixed-sized subdivision of the heap. Use this abstraction to refactor the HeapRegionSeq class.
Reviewed-by: brutisso
! make/excludeSrc.make
+ src/share/vm/gc_implementation/g1/g1BiasedArray.cpp
+ src/share/vm/gc_implementation/g1/g1BiasedArray.hpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/heapRegionSeq.cpp
! src/share/vm/gc_implementation/g1/heapRegionSeq.hpp
! src/share/vm/gc_implementation/g1/heapRegionSeq.inline.hpp
! src/share/vm/gc_implementation/g1/vmStructs_g1.hpp
! src/share/vm/prims/jni.cpp
Changeset: 03f493ce3a71
Author: brutisso
Date: 2013-09-25 17:23 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/03f493ce3a71
8025228: assert(new_entry->reserved_words() == vs_word_size) fails in nightly
Reviewed-by: mgerdin, tschatzl, jmasa
! src/share/vm/memory/metaspace.cpp
! src/share/vm/prims/jni.cpp
Changeset: 461159cd7a91
Author: tschatzl
Date: 2013-09-26 12:18 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/461159cd7a91
Merge
! src/share/vm/classfile/symbolTable.cpp
Changeset: 3da9fad1391e
Author: tschatzl
Date: 2013-09-26 06:34 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/3da9fad1391e
Merge
Changeset: 58043478c26d
Author: amurillo
Date: 2013-09-26 13:33 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/58043478c26d
Merge
Changeset: 6209b0ed51c0
Author: amurillo
Date: 2013-09-26 13:33 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/6209b0ed51c0
Added tag hs25-b52 for changeset 58043478c26d
! .hgtags
Changeset: ebfa5793d349
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/ebfa5793d349
Added tag jdk8-b110 for changeset 6209b0ed51c0
! .hgtags
Changeset: 24250c363d7f
Author: amurillo
Date: 2013-09-26 13:41 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/24250c363d7f
8025536: new hotspot build - hs25-b53
Reviewed-by: jcoomes
! make/hotspot_version
Changeset: 899ecf76b570
Author: dsimms
Date: 2013-09-25 13:58 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/899ecf76b570
8023956: Provide a work-around to broken Linux 32 bit "Exec Shield" using CS for NX emulation (crashing with SI_KERNEL)
Summary: Execute some code at a high virtual address value, and keep mapped
Reviewed-by: coleenp, zgu
! src/os/linux/vm/os_linux.cpp
! src/os_cpu/linux_x86/vm/os_linux_x86.cpp
! src/os_cpu/linux_x86/vm/os_linux_x86.hpp
Changeset: 5b1191bf0b4b
Author: ctornqvi
Date: 2013-09-25 17:47 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/5b1191bf0b4b
8024677: [TESTBUG] Move tests for classes in /testlibrary
Summary: Moved the tests to /testlibrary_tests and updated TEST.groups
Reviewed-by: dholmes, sla
! test/TEST.groups
- test/testlibrary/AssertsTest.java
- test/testlibrary/OutputAnalyzerReportingTest.java
- test/testlibrary/OutputAnalyzerTest.java
+ test/testlibrary_tests/AssertsTest.java
+ test/testlibrary_tests/OutputAnalyzerReportingTest.java
+ test/testlibrary_tests/OutputAnalyzerTest.java
Changeset: c1fbf21c7397
Author: ctornqvi
Date: 2013-09-25 17:47 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/c1fbf21c7397
8024492: [TESTBUG] Test library class Platform.java needs to include methods for missing OS's and architectures
Summary: Added methods for 32bit, arm, ppc, x64 and x86
Reviewed-by: zgu, hseigel, mseledtsov
! test/testlibrary/com/oracle/java/testlibrary/Platform.java
Changeset: 190899198332
Author: hseigel
Date: 2013-09-26 10:25 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/190899198332
7195622: CheckUnhandledOops has limited usefulness now
Summary: Enable CHECK_UNHANDLED_OOPS in fastdebug builds across all supported platforms.
Reviewed-by: coleenp, hseigel, dholmes, stefank, twisti, ihse, rdurbin
Contributed-by: lois.foltan at oracle.com
! make/bsd/makefiles/fastdebug.make
! make/linux/makefiles/fastdebug.make
! make/windows/makefiles/fastdebug.make
! src/cpu/sparc/vm/frame_sparc.cpp
! src/cpu/sparc/vm/nativeInst_sparc.cpp
! src/cpu/x86/vm/frame_x86.cpp
! src/cpu/x86/vm/methodHandles_x86.cpp
! src/cpu/x86/vm/x86_32.ad
! src/cpu/x86/vm/x86_64.ad
! src/share/vm/c1/c1_Runtime1.cpp
! src/share/vm/classfile/classLoaderData.cpp
! src/share/vm/classfile/dictionary.hpp
! src/share/vm/classfile/symbolTable.cpp
! src/share/vm/code/nmethod.cpp
! src/share/vm/compiler/oopMap.cpp
! src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
! src/share/vm/gc_implementation/g1/concurrentMark.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
! src/share/vm/gc_implementation/g1/g1OopClosures.hpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.cpp
! src/share/vm/gc_implementation/g1/heapRegion.cpp
! src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp
! src/share/vm/gc_implementation/parNew/parNewGeneration.cpp
! src/share/vm/gc_implementation/parNew/parOopClosures.inline.hpp
! src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.cpp
! src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.hpp
! src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.inline.hpp
! src/share/vm/gc_implementation/parallelScavenge/psScavenge.inline.hpp
! src/share/vm/interpreter/bytecodeTracer.cpp
! src/share/vm/interpreter/linkResolver.cpp
! src/share/vm/memory/heapInspection.hpp
! src/share/vm/memory/referenceProcessor.cpp
! src/share/vm/oops/constantPool.cpp
! src/share/vm/oops/cpCache.cpp
! src/share/vm/oops/instanceKlass.cpp
! src/share/vm/oops/instanceMirrorKlass.hpp
! src/share/vm/oops/instanceRefKlass.cpp
! src/share/vm/oops/methodData.hpp
! src/share/vm/oops/oop.inline.hpp
! src/share/vm/oops/oopsHierarchy.hpp
! src/share/vm/opto/machnode.cpp
! src/share/vm/prims/jvmtiTagMap.cpp
! src/share/vm/prims/unsafe.cpp
! src/share/vm/runtime/biasedLocking.cpp
! src/share/vm/runtime/deoptimization.cpp
! src/share/vm/runtime/frame.cpp
! src/share/vm/runtime/javaCalls.cpp
! src/share/vm/runtime/safepoint.cpp
! src/share/vm/runtime/sharedRuntime.cpp
! src/share/vm/runtime/synchronizer.cpp
! src/share/vm/runtime/thread.cpp
! src/share/vm/runtime/thread.hpp
! src/share/vm/runtime/vframeArray.cpp
! src/share/vm/services/classLoadingService.cpp
! src/share/vm/services/heapDumper.cpp
! src/share/vm/services/memoryManager.cpp
! src/share/vm/services/memoryPool.cpp
! src/share/vm/utilities/globalDefinitions.hpp
! src/share/vm/utilities/globalDefinitions_visCPP.hpp
! src/share/vm/utilities/hashtable.cpp
! src/share/vm/utilities/taskqueue.hpp
Changeset: a5ac0873476c
Author: zgu
Date: 2013-09-27 10:08 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/a5ac0873476c
Merge
! src/share/vm/classfile/symbolTable.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/runtime/sharedRuntime.cpp
Changeset: 36b97be47bde
Author: acorn
Date: 2013-10-01 08:10 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/36b97be47bde
8011311: Private interface methods. Default conflicts:ICCE. no erased_super_default.
Reviewed-by: coleenp, bharadwaj, minqi
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/defaultMethods.cpp
! src/share/vm/classfile/defaultMethods.hpp
! src/share/vm/interpreter/linkResolver.cpp
! src/share/vm/oops/instanceKlass.cpp
! src/share/vm/oops/klassVtable.cpp
Changeset: de059a14e159
Author: zgu
Date: 2013-10-01 08:54 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/de059a14e159
8022187: Missing ResourceMark crash when assertion using FormatBufferResource fails
Summary: Uses stack for the format buffer instead of resource memory
Reviewed-by: kvn, coleenp
! src/share/vm/utilities/array.hpp
Changeset: 90b27e931639
Author: zgu
Date: 2013-10-01 09:21 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/90b27e931639
Merge
Changeset: 31f0118ea584
Author: zgu
Date: 2013-10-01 11:06 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/31f0118ea584
Merge
Changeset: 72b7e96c1922
Author: twisti
Date: 2013-09-26 12:07 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/72b7e96c1922
8024545: make develop and notproduct flag values available in product builds
Reviewed-by: dholmes, kvn
! agent/src/share/classes/sun/jvm/hotspot/runtime/VM.java
! src/share/vm/prims/jvm.cpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/arguments.hpp
! src/share/vm/runtime/globals.cpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/runtime/globals_extension.hpp
! src/share/vm/runtime/vmStructs.cpp
! src/share/vm/services/attachListener.cpp
! src/share/vm/services/classLoadingService.cpp
! src/share/vm/services/dtraceAttacher.cpp
! src/share/vm/services/management.cpp
! src/share/vm/services/memoryService.cpp
Changeset: c9ccd7b85f20
Author: rbackman
Date: 2013-09-27 08:39 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/c9ccd7b85f20
8024924: Intrinsify java.lang.Math.addExact
Reviewed-by: kvn, twisti
! src/cpu/sparc/vm/sparc.ad
! src/cpu/x86/vm/x86_32.ad
! src/cpu/x86/vm/x86_64.ad
! src/share/vm/adlc/adlparse.cpp
! src/share/vm/adlc/archDesc.cpp
! src/share/vm/adlc/formssel.cpp
! src/share/vm/adlc/formssel.hpp
! src/share/vm/adlc/output_h.cpp
! src/share/vm/classfile/vmSymbols.hpp
! src/share/vm/opto/c2_globals.hpp
! src/share/vm/opto/classes.cpp
! src/share/vm/opto/classes.hpp
! src/share/vm/opto/ifnode.cpp
! src/share/vm/opto/lcm.cpp
! src/share/vm/opto/library_call.cpp
! src/share/vm/opto/loopTransform.cpp
! src/share/vm/opto/loopopts.cpp
! src/share/vm/opto/matcher.cpp
! src/share/vm/opto/matcher.hpp
+ src/share/vm/opto/mathexactnode.cpp
+ src/share/vm/opto/mathexactnode.hpp
! src/share/vm/opto/multnode.cpp
! src/share/vm/opto/node.hpp
! src/share/vm/opto/subnode.cpp
! src/share/vm/opto/subnode.hpp
! src/share/vm/opto/type.cpp
! src/share/vm/opto/type.hpp
! src/share/vm/runtime/vmStructs.cpp
+ test/compiler/intrinsics/mathexact/CondTest.java
+ test/compiler/intrinsics/mathexact/ConstantTest.java
+ test/compiler/intrinsics/mathexact/LoadTest.java
+ test/compiler/intrinsics/mathexact/LoopDependentTest.java
+ test/compiler/intrinsics/mathexact/NonConstantTest.java
+ test/compiler/intrinsics/mathexact/Verify.java
Changeset: 510fbd28919c
Author: anoll
Date: 2013-09-27 10:50 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/510fbd28919c
8020151: PSR:PERF Large performance regressions when code cache is filled
Summary: Code cache sweeping based on method hotness; removed speculatively disconnect
Reviewed-by: kvn, iveresov
! src/share/vm/code/codeCache.cpp
! src/share/vm/code/codeCache.hpp
! src/share/vm/code/nmethod.cpp
! src/share/vm/code/nmethod.hpp
! src/share/vm/compiler/compileBroker.cpp
! src/share/vm/oops/method.cpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/runtime/safepoint.cpp
! src/share/vm/runtime/sweeper.cpp
! src/share/vm/runtime/sweeper.hpp
! src/share/vm/runtime/vmStructs.cpp
! src/share/vm/runtime/vm_operations.cpp
! src/share/vm/runtime/vm_operations.hpp
! src/share/vm/trace/trace.xml
Changeset: a07c25e4f67e
Author: adlertz
Date: 2013-09-27 12:43 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/a07c25e4f67e
Merge
! src/share/vm/prims/jvm.cpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/services/attachListener.cpp
Changeset: 1c3486050433
Author: adlertz
Date: 2013-09-27 15:43 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/1c3486050433
Merge
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
Changeset: e8e077292da3
Author: iignatyev
Date: 2013-09-28 12:32 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/e8e077292da3
8024678: Java source files in hotspot/test/testlibrary should not use @author tag in JavaDoc
Reviewed-by: twisti
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/ClassPathDirEntry.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/ClassPathJarEntry.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/ClassPathJarInDirEntry.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/ClassesListInFile.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/CompileTheWorld.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/Compiler.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/PathHandler.java
! test/testlibrary/ctw/src/sun/hotspot/tools/ctw/Utils.java
Changeset: 303826f477c6
Author: iignatyev
Date: 2013-09-28 12:32 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/303826f477c6
8023452: TestCase$Helper(java.lang.Object) must be osr_compiled
Reviewed-by: kvn
! test/compiler/whitebox/CompilerWhiteBoxTest.java
! test/compiler/whitebox/DeoptimizeAllTest.java
! test/compiler/whitebox/DeoptimizeMethodTest.java
! test/compiler/whitebox/EnqueueMethodForCompilationTest.java
! test/compiler/whitebox/IsMethodCompilableTest.java
! test/compiler/whitebox/MakeMethodNotCompilableTest.java
Changeset: f2512d89ad0c
Author: twisti
Date: 2013-09-28 12:42 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/f2512d89ad0c
8025613: clang: remove -Wno-unused-value
Reviewed-by: iveresov
! agent/src/os/linux/LinuxDebuggerLocal.c
! agent/src/os/linux/ps_proc.c
! agent/src/os/linux/salibelf.c
! agent/src/os/linux/symtab.c
! make/bsd/makefiles/gcc.make
! make/linux/makefiles/gcc.make
! src/cpu/x86/vm/assembler_x86.cpp
! src/share/vm/classfile/defaultMethods.cpp
Changeset: 29bdcf12457c
Author: shade
Date: 2013-09-27 11:52 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/29bdcf12457c
8014447: Object.hashCode intrinsic breaks inline caches
Summary: Try to inline as normal method first, then fall back to intrinsic.
Reviewed-by: kvn, twisti
! src/share/vm/opto/callGenerator.hpp
! src/share/vm/opto/doCall.cpp
! src/share/vm/opto/library_call.cpp
Changeset: d8d059e90ec1
Author: twisti
Date: 2013-09-30 15:42 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/d8d059e90ec1
8025599: Missing store barrier with OptimizeStringConcat
Reviewed-by: kvn, twisti
Contributed-by: Axel Siebenborn
! src/share/vm/opto/graphKit.cpp
Changeset: dc261f466b6d
Author: drchase
Date: 2013-09-27 13:36 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/dc261f466b6d
8025260: Methodhandles/JSR292: NullPointerException (NPE) thrown instead of AbstractMethodError (AME)
Summary: Copied null-checks from templateInterpreter_CPU into methodHandles_CPU
Reviewed-by: jrose, twisti
! src/cpu/sparc/vm/methodHandles_sparc.cpp
! src/cpu/x86/vm/methodHandles_x86.cpp
+ test/compiler/jsr292/methodHandleExceptions/ByteClassLoader.java
+ test/compiler/jsr292/methodHandleExceptions/C.java
+ test/compiler/jsr292/methodHandleExceptions/I.java
+ test/compiler/jsr292/methodHandleExceptions/TestAMEnotNPE.java
Changeset: cacc4c6bfc80
Author: vlivanov
Date: 2013-10-02 06:17 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/cacc4c6bfc80
8025233: Move sun.invoke.Stable into java.lang.invoke package
Reviewed-by: twisti, iveresov
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/vmSymbols.hpp
Changeset: 268e7a2178d7
Author: iveresov
Date: 2013-10-03 16:38 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/268e7a2178d7
Merge
! src/cpu/x86/vm/methodHandles_x86.cpp
! src/cpu/x86/vm/x86_32.ad
! src/cpu/x86/vm/x86_64.ad
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/defaultMethods.cpp
! src/share/vm/code/nmethod.cpp
! src/share/vm/runtime/safepoint.cpp
! src/share/vm/services/classLoadingService.cpp
Changeset: d68894a09c7c
Author: jiangli
Date: 2013-09-27 13:49 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/d68894a09c7c
8024990: JT_JDK: 11 failures with SIGSEGV on arm-sflt platforms in nightly fastdebug build.
Summary: Enable patching for load_appendix_id.
Reviewed-by: kvn, dlong, bdelsart
! src/share/vm/c1/c1_Runtime1.cpp
Changeset: 5186dcaca431
Author: jiangli
Date: 2013-09-27 13:53 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/5186dcaca431
Merge
! src/share/vm/c1/c1_Runtime1.cpp
- test/gc/metaspace/ClassMetaspaceSizeInJmapHeap.java
- test/runtime/6878713/Test6878713.sh
- test/runtime/6878713/testcase.jar
- test/runtime/7020373/Test7020373.sh
- test/runtime/7020373/testcase.jar
Changeset: d0cfa6502dfe
Author: jprovino
Date: 2013-10-03 10:25 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/d0cfa6502dfe
Merge
! src/share/vm/c1/c1_Runtime1.cpp
Changeset: 100614790c1e
Author: vladidan
Date: 2013-10-03 10:35 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/100614790c1e
Merge
Changeset: c319b188c7b2
Author: tschatzl
Date: 2013-09-26 12:49 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/c319b188c7b2
8014078: G1: improve remembered set summary information by providing per region type information
Summary: Add memory consumption breakdown on a per region type in the G1 remembered set summary statistics. This simplifies remembered set memory consumption analysis.
Reviewed-by: brutisso
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1RemSet.cpp
! src/share/vm/gc_implementation/g1/g1RemSet.hpp
! src/share/vm/gc_implementation/g1/g1RemSetSummary.cpp
! test/gc/g1/TestSummarizeRSetStats.java
+ test/gc/g1/TestSummarizeRSetStatsPerRegion.java
+ test/gc/g1/TestSummarizeRSetStatsTools.java
Changeset: bc918fd1e584
Author: mgerdin
Date: 2013-09-27 10:23 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/bc918fd1e584
8025279: metaspace/flags/maxMetaspaceSize throws OOM: out of Compressed Klass space
Summary: Only put "Compressed class space" as OOM cause if actually using Compressed class space
Reviewed-by: jwilhelm, stefank, ehelin, coleenp
! src/share/vm/memory/metaspace.cpp
! src/share/vm/memory/metaspace.hpp
Changeset: 4fa18058548e
Author: tschatzl
Date: 2013-09-27 11:18 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/4fa18058548e
Merge
Changeset: ccef6e165e8b
Author: tschatzl
Date: 2013-09-27 13:41 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/ccef6e165e8b
Merge
Changeset: d55c004e1d4d
Author: mgerdin
Date: 2013-09-24 14:46 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/d55c004e1d4d
8025305: Cleanup CardTableModRefBS usage in G1
Summary: Move some G1 specific code from CardTableModRefBS to G1SATBCardTableModRefBS.
Reviewed-by: brutisso, tschatzl, ehelin
! src/share/vm/gc_implementation/g1/concurrentMark.inline.hpp
! src/share/vm/gc_implementation/g1/g1CardCounts.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp
! src/share/vm/gc_implementation/g1/g1EvacFailure.hpp
! src/share/vm/gc_implementation/g1/g1MarkSweep.cpp
! src/share/vm/gc_implementation/g1/g1RemSet.cpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.cpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.hpp
! src/share/vm/memory/cardTableModRefBS.cpp
! src/share/vm/memory/cardTableModRefBS.hpp
Changeset: 7ec10139bf37
Author: tschatzl
Date: 2013-09-30 12:43 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/7ec10139bf37
8025441: G1: assert "assert(thread < _num_vtimes) failed: just checking" fails when G1ConcRefinementThreads > ParallelGCThreads
Summary: The initialization for the remembered set summary data structures used the wrong thread count, i.e. number of worker threads instead of number of refinement threads.
Reviewed-by: brutisso
! src/share/vm/gc_implementation/g1/g1RemSet.cpp
! src/share/vm/gc_implementation/g1/g1RemSetSummary.cpp
! src/share/vm/gc_implementation/g1/g1RemSetSummary.hpp
+ test/gc/g1/TestSummarizeRSetStatsThreads.java
Changeset: 9de9169ddde6
Author: brutisso
Date: 2013-10-01 07:52 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/9de9169ddde6
8025605: G1: Heap expansion logging misleading for fully expanded heap
Reviewed-by: tschatzl, jwilhelm, jmasa
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
Changeset: 9ecd6d3782b1
Author: ehelin
Date: 2013-10-01 15:21 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/9ecd6d3782b1
8025313: MetaspaceMemoryPool incorrectly reports undefined size for max
Reviewed-by: stefank, tschatzl
! src/share/vm/memory/collectorPolicy.cpp
Changeset: 77a774ab3cf0
Author: mgerdin
Date: 2013-10-02 14:33 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/77a774ab3cf0
8012525: gc/metaspace/G1AddMetaspaceDependency.java Test fails a safepoint timeout assertion or hangs.
Reviewed-by: brutisso, tschatzl
! test/gc/metaspace/G1AddMetaspaceDependency.java
Changeset: 6e22e7042433
Author: ehelin
Date: 2013-09-30 11:39 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/6e22e7042433
8025226: TestPerfCountersAndMemoryPools.java fails with -Xmixed or -Xcomp
Reviewed-by: brutisso, mgerdin
! test/gc/metaspace/TestPerfCountersAndMemoryPools.java
Changeset: 379ef2cc19c0
Author: ehelin
Date: 2013-10-02 18:24 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/379ef2cc19c0
Merge
Changeset: ab68fc0101ce
Author: jwilhelm
Date: 2013-10-03 13:19 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/ab68fc0101ce
8025855: Simplify GenRemSet code slightly
Summary: Remove a few redundant switch-statements
Reviewed-by: jcoomes, tschatzl
! src/share/vm/memory/collectorPolicy.cpp
! src/share/vm/memory/genRemSet.cpp
Changeset: c49c7f835e8d
Author: jwilhelm
Date: 2013-10-03 17:16 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/c49c7f835e8d
8025853: Remove unnecessary uses of GenerationSizer
Summary: Removed stray includes and some minor cleanup of GenerationSizer
Reviewed-by: tschatzl, jcoomes
! src/share/vm/gc_implementation/parallelScavenge/generationSizer.hpp
! src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.cpp
! src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp
! src/share/vm/gc_implementation/parallelScavenge/psMarkSweep.cpp
! src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp
! src/share/vm/gc_implementation/parallelScavenge/psScavenge.cpp
Changeset: 798522662fcd
Author: jcoomes
Date: 2013-10-04 13:37 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/798522662fcd
Merge
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.cpp
Changeset: 562a3d356de6
Author: amurillo
Date: 2013-10-04 14:10 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/562a3d356de6
Merge
- test/testlibrary/AssertsTest.java
- test/testlibrary/OutputAnalyzerReportingTest.java
- test/testlibrary/OutputAnalyzerTest.java
Changeset: f6962730bbde
Author: amurillo
Date: 2013-10-04 14:10 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/f6962730bbde
Added tag hs25-b53 for changeset 562a3d356de6
! .hgtags
Changeset: 02d171a3b5d1
Author: cl
Date: 2013-10-10 10:08 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/hotspot/rev/02d171a3b5d1
Added tag jdk8-b111 for changeset f6962730bbde
! .hgtags
From robert.field at oracle.com Thu Oct 10 23:27:37 2013
From: robert.field at oracle.com (robert.field at oracle.com)
Date: Fri, 11 Oct 2013 06:27:37 +0000
Subject: hg: jdk8/tl/langtools: 8012557: Implement lambda methods on
interfaces as private; ...
Message-ID: <20131011062740.CD92362F5F@hg.openjdk.java.net>
Changeset: 1ce8405af5fe
Author: rfield
Date: 2013-10-10 23:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/1ce8405af5fe
8012557: Implement lambda methods on interfaces as private
8016320: Method reference in subinterface of type I.super::foo produces exception at runtime
Summary: Now that the VM supports interface instance private methods, lambda methods and lambda bridges are always private. Access is now through invokespecial.
Reviewed-by: vromero, jlahoda
! src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
! src/share/classes/com/sun/tools/javac/jvm/Pool.java
+ test/tools/javac/lambda/8012557/A.java
+ test/tools/javac/lambda/8012557/B.java
+ test/tools/javac/lambda/8012557/C.java
+ test/tools/javac/lambda/8012557/PrivateLambdas.java
+ test/tools/javac/lambda/8012557/SAM.java
+ test/tools/javac/lambda/8016320/IllegalBridgeModifier.java
From staffan.larsen at oracle.com Thu Oct 10 23:32:27 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Fri, 11 Oct 2013 08:32:27 +0200
Subject: RR(S): JDK-8004213 jdp packet need pid,
broadcast interval and rmi server hostname fields.
In-Reply-To: <5256F2FE.4090202@oracle.com>
References: <5256F2FE.4090202@oracle.com>
Message-ID:
Dmitry,
This looks good, just two small nits:
test/sun/management/jdp/JdpClient.java: 56: "Packet error fileld " -> "Packet error: field "
test/sun/management/jdp/JdpClient.java: 68-74: missing space after the comma
Thanks,
/Staffan
On 10 okt 2013, at 20:33, Dmitry Samersoff wrote:
> Hi Everyone,
>
> This fix covers
>
> JDK JDK-8004213 JDP packets should contain PID
> JDK-8004215 JDP packets should contain the configured broadcast interval
> JDK-8007071 JDP does not work well with java.rmi.server.hostname overrides.
>
> and add three extra fields to JDP packet: PID, rmi server name,
> broadcast interval.
>
> PID gathering code mostly borrowed from hotspot testlibrary.
>
> http://cr.openjdk.java.net/~dsamersoff/JDK-8004213/webrev.01/
>
> -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.
From lana.steuck at oracle.com Thu Oct 10 21:36:19 2013
From: lana.steuck at oracle.com (lana.steuck at oracle.com)
Date: Fri, 11 Oct 2013 04:36:19 +0000
Subject: hg: jdk8/tl/jdk: 96 new changesets
Message-ID: <20131011045629.B3ECD62F5A@hg.openjdk.java.net>
Changeset: 529cd4de1823
Author: prr
Date: 2013-09-26 15:06 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/529cd4de1823
7092764: java.awt.font.TransformAttribute.equals(null) throws NPE
Reviewed-by: jgodinez, jchen
! src/share/classes/java/awt/font/TransformAttribute.java
+ test/java/awt/font/TransformAttribute/TransformEqualityTest.java
Changeset: 1bcd48cfb7be
Author: ceisserer
Date: 2013-09-26 16:30 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1bcd48cfb7be
8024895: xrender MaskImage cache isn't accounting for change in alpha
Reviewed-by: prr, jchen
! src/solaris/classes/sun/java2d/xr/XRMaskImage.java
+ test/java/awt/image/DrawImage/EABlitTest.java
Changeset: dae020405903
Author: lana
Date: 2013-09-26 17:13 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/dae020405903
Merge
Changeset: 0151f12bd392
Author: malenkov
Date: 2013-08-22 17:17 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0151f12bd392
8023536: Some regression tests have a wrong header
Reviewed-by: alexsch
! test/java/beans/Performance/Test7122740.java
! test/java/beans/Performance/Test7184799.java
! test/javax/swing/JTree/8013571/Test8013571.java
Changeset: b71f112dab2a
Author: malenkov
Date: 2013-08-22 21:05 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b71f112dab2a
7057769: JScrollBar spec should specify that unit increment & decrement functionality may not be present
Reviewed-by: alexsch
! src/share/classes/javax/swing/JScrollBar.java
Changeset: f983fd18dd81
Author: malenkov
Date: 2013-08-23 19:29 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f983fd18dd81
7080613: java.beans.DefaultPersistenceDelegate.instantiate(..) doesn't throw NPE
Reviewed-by: alexsch
! src/share/classes/java/beans/DefaultPersistenceDelegate.java
! src/share/classes/java/beans/PersistenceDelegate.java
Changeset: 22ef5187a3e6
Author: dmarkov
Date: 2013-08-26 17:21 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/22ef5187a3e6
8023474: First mousepress doesn't start editing in JTree
Reviewed-by: alexp, anthony
! src/share/classes/java/awt/Component.java
! src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java
! src/share/classes/sun/awt/AWTAccessor.java
+ test/javax/swing/plaf/basic/BasicTreeUI/8023474/bug8023474.java
Changeset: abd068530590
Author: malenkov
Date: 2013-08-27 12:53 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/abd068530590
7195179: ClassCastException for null values in JComboBox
Reviewed-by: alexsch
! src/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java
+ test/javax/swing/JComboBox/7195179/Test7195179.java
Changeset: 92adff44c841
Author: malenkov
Date: 2013-08-27 13:13 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/92adff44c841
8021379: JFileChooser Create New Folder button enabled in write proteced directory
Reviewed-by: alexsch
! src/share/classes/sun/swing/FilePane.java
Changeset: 4bfcf9c5ced3
Author: malenkov
Date: 2013-08-27 13:37 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4bfcf9c5ced3
8022398: javax/swing/JFileChooser/8013442/Test8013442.java fails
Reviewed-by: alexsch
! src/macosx/classes/com/apple/laf/AquaFileChooserUI.java
! src/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java
! src/share/classes/com/sun/java/swing/plaf/motif/MotifFileChooserUI.java
! src/share/classes/com/sun/java/swing/plaf/windows/WindowsFileChooserUI.java
! src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
+ src/share/classes/sun/swing/AbstractFilterComboBoxModel.java
! src/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java
Changeset: e11ed7187b0c
Author: lana
Date: 2013-08-27 21:46 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e11ed7187b0c
Merge
- src/share/classes/com/sun/security/auth/PolicyParser.java
- src/share/classes/com/sun/security/auth/SubjectCodeSource.java
- src/share/classes/java/util/jar/UnsupportedProfileException.java
- src/share/classes/sun/security/provider/ConfigSpiFile.java
- test/java/net/URLClassLoader/profiles/Basic.java
- test/java/net/URLClassLoader/profiles/Lib.java
- test/java/net/URLClassLoader/profiles/basic.sh
- test/tools/jar/AddAndUpdateProfile.java
- test/tools/launcher/profiles/Basic.java
- test/tools/launcher/profiles/Logging.java
- test/tools/launcher/profiles/Main.java
- test/tools/launcher/profiles/VersionCheck.java
Changeset: 43de418f1345
Author: ptbrunet
Date: 2013-08-28 17:25 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/43de418f1345
8011955: Lunar screen reader crashes intermittently in WindowsAccessBridge-32.DLL
6995891: JAWS will occasionally stop speaking focused objects as user TABs -> problem with message queue
8014738: Combobox menu items are not announced with JAWS
8011938: Java Ferret example corrupts JCombobox of the running application
8012011: JAB 2.0.2 incompletely shows kbd accelerator in menus
8022966: Java Access Bridge no longer usable with screen magnifiers
Reviewed-by: raginip, tbell, erikj, art
! make/bridge/AccessBridgeJava/Makefile
! makefiles/CompileJavaClasses.gmk
! makefiles/GensrcMisc.gmk
Changeset: 35644adc3269
Author: malenkov
Date: 2013-08-28 17:32 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/35644adc3269
6968363: ClassCastException while entering HINDI characters with CustomDocument
Reviewed-by: alexsch
! src/share/classes/javax/swing/text/AbstractDocument.java
! src/share/classes/javax/swing/text/DefaultCaret.java
! src/share/classes/javax/swing/text/GlyphPainter2.java
! src/share/classes/javax/swing/text/ParagraphView.java
+ test/javax/swing/text/AbstractDocument/6968363/Test6968363.java
Changeset: 6432f8749e1d
Author: pchelko
Date: 2013-08-30 11:11 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6432f8749e1d
8023966: JViewPort.BLIT_SCROLL_MODE does not work in JLightweightFrame
Reviewed-by: anthony, ant
! src/share/classes/javax/swing/JViewport.java
Changeset: 7151f08eeadf
Author: alexsch
Date: 2013-08-30 13:28 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7151f08eeadf
8022401: [macosx] javax/swing/text/JTextComponent/5074573/bug5074573.java fails
Reviewed-by: anthony
! src/macosx/native/sun/awt/AWTEvent.m
+ test/java/awt/event/KeyEvent/KeyChar/KeyCharTest.java
Changeset: f2f614e31522
Author: malenkov
Date: 2013-09-02 14:06 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f2f614e31522
7156658: JTextComponent.setFocusAccelerator() spec does not state that focus accelerator is L&F dependent
Reviewed-by: alexsch
! src/share/classes/javax/swing/text/JTextComponent.java
Changeset: 6ffa2680e139
Author: art
Date: 2013-09-02 16:48 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6ffa2680e139
8022184: Fix static , Raw warnings in classes belonging to java.awt
Reviewed-by: art, anthony
Contributed-by: Srikalyan Chandrashekar
! src/share/classes/java/awt/AWTKeyStroke.java
! src/share/classes/java/awt/CardLayout.java
! src/share/classes/java/awt/ContainerOrderFocusTraversalPolicy.java
! src/share/classes/java/awt/DefaultKeyboardFocusManager.java
! src/share/classes/java/awt/GradientPaintContext.java
! src/share/classes/java/awt/GraphicsEnvironment.java
! src/share/classes/java/awt/KeyboardFocusManager.java
! src/share/classes/java/awt/SequencedEvent.java
! src/share/classes/java/awt/TexturePaintContext.java
! src/share/classes/java/awt/WaitDispatchSupport.java
Changeset: b5ed8686cc01
Author: malenkov
Date: 2013-09-03 11:00 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b5ed8686cc01
6943780: JTabbedPane throws ArrayIndexOutOfBoundsException sometimes
Reviewed-by: alexsch
! src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
+ test/javax/swing/plaf/basic/BasicTabbedPaneUI/Test6943780.java
Changeset: 80a8c4ff3b51
Author: alexsch
Date: 2013-09-03 17:27 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/80a8c4ff3b51
8007156: [macosx] Wrong events in processKeyBinding of JTable Submit Date
Reviewed-by: leonidr
! src/macosx/classes/sun/lwawt/LWComponentPeer.java
! src/macosx/classes/sun/lwawt/LWWindowPeer.java
+ test/java/awt/event/KeyEvent/ExtendedKeyCode/ExtendedKeyCodeTest.java
Changeset: 2ad01ecbaf90
Author: malenkov
Date: 2013-09-03 21:53 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2ad01ecbaf90
7172865: PropertyDescriptor fails to work with setter method name if setter is non-void
Reviewed-by: art, alexsch
! src/share/classes/java/beans/IndexedPropertyDescriptor.java
! src/share/classes/java/beans/MethodDescriptor.java
+ src/share/classes/java/beans/MethodRef.java
! src/share/classes/java/beans/PropertyDescriptor.java
+ test/java/beans/Introspector/Test7172865.java
Changeset: ba711056009f
Author: pchelko
Date: 2013-09-04 14:32 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ba711056009f
8021943: FileDialog getFile returns corrupted string after previous setFile
Reviewed-by: anthony, serb
Contributed-by: alexander.zvegintsev at oracle.com
! src/windows/native/sun/windows/awt_FileDialog.cpp
Changeset: ba041df8a554
Author: mcherkas
Date: 2013-09-04 18:12 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ba041df8a554
8023565: JPG causes javax.imageio.IIOException: ICC APP2 encoutered without prior JFIF
Reviewed-by: bae, vadim
! src/share/classes/com/sun/imageio/plugins/jpeg/JPEGMetadata.java
Changeset: e4ba3d9ea041
Author: mcherkas
Date: 2013-09-05 15:37 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e4ba3d9ea041
8023392: Swing text components printed with spaces between chars
Reviewed-by: alexsch, alexp
Contributed-by: anton.nashatyrev at oracle.com
! src/share/classes/sun/swing/SwingUtilities2.java
+ test/java/awt/print/bug8023392/bug8023392.html
+ test/java/awt/print/bug8023392/bug8023392.java
Changeset: d267c066b006
Author: lana
Date: 2013-09-06 15:09 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d267c066b006
Merge
- src/share/classes/sun/misc/Compare.java
- src/share/classes/sun/misc/Sort.java
Changeset: fbb6f976d780
Author: alexsch
Date: 2013-09-09 17:14 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fbb6f976d780
8024413: Add tests for issues JDK-8002077 and JDK-7199708
Reviewed-by: malenkov, leonidr
+ test/javax/swing/JFileChooser/7199708/bug7199708.java
+ test/javax/swing/JFileChooser/8002077/bug8002077.java
Changeset: 3ea08767fc0d
Author: alexsch
Date: 2013-09-09 18:34 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3ea08767fc0d
8020060: MoleculeViewerTest demo doesn't work due to SecurityPermissions
Reviewed-by: malenkov, erikj
! makefiles/CompileDemos.gmk
! src/share/demo/applets/MoleculeViewer/XYZApp.java
! src/share/demo/applets/MoleculeViewer/example1.html
! src/share/demo/applets/MoleculeViewer/example2.html
! src/share/demo/applets/MoleculeViewer/example3.html
! src/share/demo/applets/WireFrame/ThreeD.java
! src/share/demo/applets/WireFrame/example1.html
! src/share/demo/applets/WireFrame/example2.html
! src/share/demo/applets/WireFrame/example3.html
! src/share/demo/applets/WireFrame/example4.html
Changeset: fc5d16fec25f
Author: serb
Date: 2013-09-09 21:03 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fc5d16fec25f
8023042: Inaccuracy in documentation in a sound area
Reviewed-by: prr
! src/share/classes/javax/sound/sampled/AudioFileFormat.java
! src/share/classes/javax/sound/sampled/AudioFormat.java
Changeset: 9d0d961fb1cd
Author: pchelko
Date: 2013-09-10 11:00 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/9d0d961fb1cd
8024381: The test for 8020210 does not have @bug tag
Reviewed-by: anthony, serb
! test/java/awt/Window/MaximizeOffscreen/MaximizeOffscreenTest.java
Changeset: 8b6dace81d6c
Author: alexsch
Date: 2013-09-10 14:33 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8b6dace81d6c
8021253: JFileChooser does not react on pressing enter since java 7
Reviewed-by: malenkov
! src/share/classes/javax/swing/JFileChooser.java
+ test/javax/swing/JFileChooser/8021253/bug8021253.java
Changeset: 1daffcf035c4
Author: malenkov
Date: 2013-09-10 17:06 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1daffcf035c4
7057770: (spec)Scrollbar spec should specify that unit increment & decrement functionality may not be present
Reviewed-by: alexsch
! src/share/classes/java/awt/Scrollbar.java
Changeset: eedb2b6d93ec
Author: malenkov
Date: 2013-09-10 17:12 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/eedb2b6d93ec
8024407: [macosx] javax/swing/JScrollBar/7163696/Test7163696.java failed intermittently on macos
Reviewed-by: alexsch
! test/javax/swing/JScrollBar/7163696/Test7163696.java
Changeset: 0cc00c11e17e
Author: leonidr
Date: 2013-09-10 20:42 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0cc00c11e17e
8003901: [macosx] Need test for JDK-8002114
Reviewed-by: anthony, serb
! test/javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java
Changeset: 04fbd34fda7b
Author: bagiras
Date: 2013-09-12 14:56 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/04fbd34fda7b
8003965: Toolkit.beep() documentation is ambiguous
Reviewed-by: anthony
! src/share/classes/java/awt/Toolkit.java
Changeset: def1fa9854f7
Author: bagiras
Date: 2013-09-12 15:50 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/def1fa9854f7
7064312: Cleanup: avoid using unsafe string function
Reviewed-by: serb, pchelko
! src/windows/native/sun/windows/awt_FileDialog.cpp
! src/windows/native/sun/windows/awt_Font.cpp
! src/windows/native/sun/windows/awt_PrintControl.cpp
! src/windows/native/sun/windows/awt_Toolkit.cpp
! src/windows/native/sun/windows/awt_TrayIcon.cpp
! src/windows/native/sun/windows/awt_ole.cpp
Changeset: 6321e4429a38
Author: serb
Date: 2013-09-12 18:21 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6321e4429a38
7124537: [macosx] Menu shortcuts for all menu items should be disabled if a menu itself is disabled
Reviewed-by: anthony, leonidr
! src/macosx/classes/sun/lwawt/macosx/CMenu.java
! src/macosx/classes/sun/lwawt/macosx/CMenuItem.java
! src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
Changeset: 3213c388740a
Author: dmarkov
Date: 2013-09-12 18:44 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3213c388740a
8024395: Improve fix for line break calculations
Reviewed-by: alexp, alexsch
! src/share/classes/javax/swing/text/FlowView.java
! src/share/classes/javax/swing/text/View.java
! test/javax/swing/text/View/8014863/bug8014863.java
Changeset: ef2f0c15b332
Author: pchelko
Date: 2013-09-13 11:58 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ef2f0c15b332
8024170: [SwingNode] Implement cursor change
Reviewed-by: anthony, ant
! src/macosx/classes/sun/lwawt/LWLightweightFramePeer.java
! src/share/classes/sun/swing/JLightweightFrame.java
! src/share/classes/sun/swing/LightweightContent.java
! src/share/classes/sun/swing/SwingAccessor.java
! src/solaris/classes/sun/awt/X11/XLightweightFramePeer.java
! src/windows/classes/sun/awt/windows/WComponentPeer.java
! src/windows/classes/sun/awt/windows/WLightweightFramePeer.java
Changeset: 12788c245d67
Author: pchelko
Date: 2013-09-13 17:25 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/12788c245d67
8015453: java/awt/DataFlavor/MissedHtmlAndRtfBug/MissedHtmlAndRtfBug.java failed on windows with jdk8 since b86
Reviewed-by: art, serb
! src/share/classes/sun/awt/datatransfer/DataTransferer.java
Changeset: df107b1f2f2e
Author: pchelko
Date: 2013-09-13 17:38 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/df107b1f2f2e
8015371: The HTML text without tags does not appear inside the WordPad application, and we try to click the button, but the case exits.
Reviewed-by: anthony, serb
! src/windows/classes/sun/awt/windows/WDataTransferer.java
Changeset: 40fdf56c09a9
Author: pchelko
Date: 2013-09-13 17:41 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/40fdf56c09a9
8015455: java/awt/dnd/DisposeFrameOnDragCrash/DisposeFrameOnDragTest.java hangs on windows
Reviewed-by: serb, anthony
! src/share/classes/java/awt/dnd/DropTarget.java
! src/share/classes/javax/swing/TransferHandler.java
Changeset: 915d13946f18
Author: mcherkas
Date: 2013-09-13 17:48 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/915d13946f18
8015601: [macosx] Test javax/swing/JInternalFrame/InternalFrameIsNotCollectedTest.java fails on MacOS X
Reviewed-by: alexp, alexsch
! test/javax/swing/JInternalFrame/InternalFrameIsNotCollectedTest.java
Changeset: ad52e924c55a
Author: kshefov
Date: 2013-09-13 17:54 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ad52e924c55a
8006087: [TEST_BUG] The BACKSPACE key doesn't work and after pressing 'cancel' and 'DONE' button, the case pass automatically.
Reviewed-by: alexsch, serb
! test/javax/swing/JFileChooser/4150029/bug4150029.html
! test/javax/swing/JFileChooser/4150029/bug4150029.java
Changeset: c8a85165b725
Author: kshefov
Date: 2013-09-13 17:58 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c8a85165b725
8015597: [TEST_BUG] [macosx] Test closed/javax/swing/JMenuBar/4750590/bug4750590.java fails since JDK 8 b75 on MacOSX
Reviewed-by: alexsch, serb
+ test/javax/swing/JMenuBar/4750590/bug4750590.java
Changeset: 17cc8f13e4e7
Author: pchelko
Date: 2013-09-13 18:02 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/17cc8f13e4e7
8012026: [macosx] Component.getMousePosition() does not work in an applet on MacOS
Reviewed-by: anthony, serb
! make/sun/lwawt/FILES_export_macosx.gmk
- src/macosx/classes/sun/lwawt/macosx/CMouseInfoPeer.java
! src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
! src/macosx/native/sun/awt/AWTView.m
+ test/java/awt/Mouse/GetMousePositionTest/GetMousePositionWithOverlay.java
+ test/java/awt/Mouse/GetMousePositionTest/GetMousePositionWithPopup.java
Changeset: a46d22ee4d4b
Author: alexsch
Date: 2013-09-16 17:45 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a46d22ee4d4b
8008728: [macosx] Swing. JDialog. Modal dialog goes to background
Reviewed-by: serb
! src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
! src/macosx/native/sun/awt/AWTWindow.m
+ test/java/awt/Modal/ModalDialogOrderingTest/ModalDialogOrderingTest.java
Changeset: 8f5b4e7623cf
Author: ant
Date: 2013-09-16 18:00 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8f5b4e7623cf
8022512: JLightweightFrame: the content pane should be transparent
Reviewed-by: anthony
! src/share/classes/sun/swing/JLightweightFrame.java
Changeset: 49c7d299a504
Author: kshefov
Date: 2013-09-16 19:15 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/49c7d299a504
7020060: [TEST_BUG] java/awt/FullScreen/TranslucentWindow/TranslucentWindow.java failed
Reviewed-by: anthony, serb
! test/java/awt/FullScreen/TranslucentWindow/TranslucentWindow.java
Changeset: 98080e9367be
Author: kshefov
Date: 2013-09-16 19:21 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/98080e9367be
8015588: [TEST_BUG] [macosx] Test java/awt/MenuBar/MenuBarSetFont/MenuBarSetFont.java fails on MacOSX
Reviewed-by: anthony, serb
! test/java/awt/MenuBar/MenuBarSetFont/MenuBarSetFont.java
Changeset: 04612a52e7bd
Author: pchelko
Date: 2013-09-16 19:38 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/04612a52e7bd
8024779: [macosx] SwingNode crashes on exit
Reviewed-by: anthony, ant
! src/macosx/native/sun/awt/AWTView.m
! src/macosx/native/sun/awt/AWTWindow.m
Changeset: 4e88bf592830
Author: pchelko
Date: 2013-09-16 19:44 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4e88bf592830
8024485: For 5-1 step: if input something into the 'File:' and 'Dir:', the dir output isn't empty in the output window after showing and canceling the file dialog
Reviewed-by: serb, anthony
! src/windows/classes/sun/awt/windows/WFileDialogPeer.java
Changeset: 8530456e0091
Author: omajid
Date: 2013-09-16 15:43 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8530456e0091
8024863: X11: Support GNOME Shell as mutter
Reviewed-by: anthony
! src/solaris/classes/sun/awt/X11/XWM.java
Changeset: 4899f6734a14
Author: ant
Date: 2013-09-18 12:25 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4899f6734a14
8024839: [Unified Swing/Fx threading] don't schedule an event dispatching from the event dispatch thread
Reviewed-by: anthony, pchelko
! src/share/classes/java/awt/EventQueue.java
Changeset: cc7a15f4c735
Author: mcherkas
Date: 2013-09-18 15:12 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cc7a15f4c735
8016746: Test javax/swing/JTable/7068740/bug7068740.java fails
Reviewed-by: serb, alexsch
! test/javax/swing/JTable/7068740/bug7068740.java
Changeset: 2c240454c192
Author: leonidr
Date: 2013-09-18 18:36 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2c240454c192
7188071: closed/java/awt/TrayIcon/TrayIconSecurity/GrantedTrayIconTest fails
Reviewed-by: anthony, serb
! src/solaris/classes/sun/awt/X11/XTrayIconPeer.java
Changeset: 20b1135647fa
Author: lana
Date: 2013-09-18 16:01 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/20b1135647fa
Merge
! src/share/classes/java/awt/Toolkit.java
- src/share/classes/java/util/stream/CloseableStream.java
- src/share/classes/java/util/stream/DelegatingStream.java
! src/share/classes/sun/swing/SwingUtilities2.java
! src/windows/native/sun/windows/awt_PrintControl.cpp
- test/java/util/Collection/ListDefaults.java
- test/java/util/Map/CheckRandomHashSeed.java
- test/java/util/Map/TreeBinSplitBackToEntries.java
- test/java/util/concurrent/ConcurrentHashMap/toArray.java
- test/sun/tools/jconsole/ImmutableResourceTest.java
- test/sun/tools/jconsole/ImmutableResourceTest.sh
Changeset: e292d504ad68
Author: leonidr
Date: 2013-09-19 22:33 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e292d504ad68
7144065: [macosx] Orphaned Choice popup window
Reviewed-by: anthony, serb
Contributed-by: alexander.potochkin at oracle.com
! src/macosx/classes/sun/lwawt/LWChoicePeer.java
Changeset: 602e5d0141d3
Author: leonidr
Date: 2013-09-19 23:46 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/602e5d0141d3
7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol
Reviewed-by: anthony, serb
! makefiles/GensrcProperties.gmk
+ src/macosx/classes/sun/awt/resources/awtosx.properties
! src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
! src/share/classes/java/awt/Toolkit.java
! src/share/classes/sun/awt/AWTAccessor.java
+ test/java/awt/Toolkit/ToolkitPropertyTest/bug7129133.java
Changeset: c04e55e17066
Author: kshefov
Date: 2013-09-20 17:07 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c04e55e17066
7124314: [TEST_BUG] [macosx] Aqua LAF: JTree doesn't select element by keyboards left and right keys
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JTree/4927934/bug4927934.java
Changeset: 6c1f9468f3de
Author: kshefov
Date: 2013-09-20 17:16 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6c1f9468f3de
8017180: [macosx] [TEST_BUG] alt-key doesn't work on macos for menu
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/java/awt/Focus/KeyEventForBadFocusOwnerTest/KeyEventForBadFocusOwnerTest.java
+ test/javax/swing/JMenuItem/4171437/bug4171437.java
+ test/javax/swing/JPopupMenu/4458079/bug4458079.java
Changeset: f139aef966fd
Author: kshefov
Date: 2013-09-20 17:35 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f139aef966fd
7124232: [TEST_BUG] [macosx] JSplitPane has wrong divider location
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JSplitPane/4816114/bug4816114.java
Changeset: abebe03818f6
Author: malenkov
Date: 2013-09-20 18:56 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/abebe03818f6
7024235: Nimbus L&F: wrong "packing" of a frame containing tabbed pane
Reviewed-by: alexsch
! src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
+ test/javax/swing/JTabbedPane/7024235/Test7024235.java
Changeset: 2ac59698de38
Author: kshefov
Date: 2013-09-23 16:14 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2ac59698de38
8015600: [TEST_BUG] [macosx] Test closed/javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java fails since JDK 8 b75 on MacOSX
Reviewed-by: alexsch, serb
+ test/javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java
Changeset: eac52fe3990c
Author: serb
Date: 2013-09-23 16:17 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/eac52fe3990c
8005255: [macosx] Cleanup warnings in sun.lwawt
Reviewed-by: alexsch, anthony
! make/sun/lwawt/FILES_export_macosx.gmk
! src/macosx/classes/sun/lwawt/LWButtonPeer.java
! src/macosx/classes/sun/lwawt/LWCanvasPeer.java
! src/macosx/classes/sun/lwawt/LWCheckboxPeer.java
! src/macosx/classes/sun/lwawt/LWChoicePeer.java
! src/macosx/classes/sun/lwawt/LWComponentPeer.java
! src/macosx/classes/sun/lwawt/LWContainerPeer.java
! src/macosx/classes/sun/lwawt/LWCursorManager.java
! src/macosx/classes/sun/lwawt/LWLabelPeer.java
! src/macosx/classes/sun/lwawt/LWListPeer.java
! src/macosx/classes/sun/lwawt/LWMouseInfoPeer.java
! src/macosx/classes/sun/lwawt/LWPanelPeer.java
! src/macosx/classes/sun/lwawt/LWRepaintArea.java
! src/macosx/classes/sun/lwawt/LWScrollBarPeer.java
! src/macosx/classes/sun/lwawt/LWScrollPanePeer.java
! src/macosx/classes/sun/lwawt/LWTextAreaPeer.java
! src/macosx/classes/sun/lwawt/LWTextComponentPeer.java
! src/macosx/classes/sun/lwawt/LWTextFieldPeer.java
! src/macosx/classes/sun/lwawt/LWToolkit.java
! src/macosx/classes/sun/lwawt/LWWindowPeer.java
- src/macosx/classes/sun/lwawt/SelectionClearListener.java
Changeset: 2684fd4e9f3b
Author: serb
Date: 2013-09-23 17:55 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2684fd4e9f3b
7172833: For default java.awt.Toolkit impl methods java.awt.Toolkit.is/setDynamicLayout() are not consistent
Reviewed-by: alexsch, anthony
! src/share/classes/java/awt/Toolkit.java
+ test/java/awt/Toolkit/DynamicLayout/bug7172833.java
Changeset: d73d3a29065c
Author: serb
Date: 2013-09-23 21:24 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d73d3a29065c
8019282: keyRelesed is reached even though key was NOT released
Reviewed-by: serb, anthony
Contributed-by: alexander.zvegintsev at oracle.com
! make/sun/xawt/mapfile-vers
! makefiles/mapfiles/libawt_xawt/mapfile-vers
! src/solaris/classes/sun/awt/X11/XToolkit.java
! src/solaris/classes/sun/awt/X11/XlibWrapper.java
! src/solaris/native/sun/xawt/XlibWrapper.c
Changeset: 8c0b943a0090
Author: yan
Date: 2013-09-24 12:25 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8c0b943a0090
8025114: Eliminate doclint errors in java.awt.dnd package javadoc
Reviewed-by: serb, alexsch
! src/share/classes/java/awt/dnd/DragGestureRecognizer.java
! src/share/classes/java/awt/dnd/DragSource.java
! src/share/classes/java/awt/dnd/DragSourceContext.java
! src/share/classes/java/awt/dnd/DragSourceDragEvent.java
! src/share/classes/java/awt/dnd/DragSourceDropEvent.java
! src/share/classes/java/awt/dnd/DragSourceEvent.java
! src/share/classes/java/awt/dnd/DropTarget.java
! src/share/classes/java/awt/dnd/DropTargetDragEvent.java
! src/share/classes/java/awt/dnd/DropTargetDropEvent.java
Changeset: 1303823e89da
Author: yan
Date: 2013-09-24 16:36 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1303823e89da
8025230: [cleanup] some more javadoc formatting fixes for swing
Reviewed-by: alexsch
! src/share/classes/javax/swing/JPanel.java
! src/share/classes/javax/swing/JPasswordField.java
! src/share/classes/javax/swing/JPopupMenu.java
! src/share/classes/javax/swing/JRadioButton.java
! src/share/classes/javax/swing/JRadioButtonMenuItem.java
! src/share/classes/javax/swing/JRootPane.java
! src/share/classes/javax/swing/JScrollPane.java
! src/share/classes/javax/swing/JSeparator.java
! src/share/classes/javax/swing/JSlider.java
! src/share/classes/javax/swing/JSpinner.java
! src/share/classes/javax/swing/JSplitPane.java
! src/share/classes/javax/swing/JTable.java
! src/share/classes/javax/swing/JTextArea.java
! src/share/classes/javax/swing/JTextField.java
! src/share/classes/javax/swing/JToolBar.java
! src/share/classes/javax/swing/JToolTip.java
! src/share/classes/javax/swing/JTree.java
! src/share/classes/javax/swing/JViewport.java
! src/share/classes/javax/swing/KeyStroke.java
! src/share/classes/javax/swing/OverlayLayout.java
! src/share/classes/javax/swing/ProgressMonitor.java
! src/share/classes/javax/swing/SizeRequirements.java
! src/share/classes/javax/swing/SizeSequence.java
Changeset: d580e0bc85d9
Author: yan
Date: 2013-09-24 17:04 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d580e0bc85d9
8025117: [cleanup] Eliminate doclint errors in javax/swing/text classes
Reviewed-by: alexsch
! src/share/classes/javax/swing/JLayer.java
! src/share/classes/javax/swing/RowFilter.java
! src/share/classes/javax/swing/plaf/TextUI.java
! src/share/classes/javax/swing/plaf/basic/BasicTextUI.java
! src/share/classes/javax/swing/text/AttributeSet.java
! src/share/classes/javax/swing/text/BadLocationException.java
! src/share/classes/javax/swing/text/BoxView.java
! src/share/classes/javax/swing/text/Caret.java
! src/share/classes/javax/swing/text/ComponentView.java
! src/share/classes/javax/swing/text/CompositeView.java
! src/share/classes/javax/swing/text/DefaultEditorKit.java
! src/share/classes/javax/swing/text/DefaultHighlighter.java
! src/share/classes/javax/swing/text/DefaultStyledDocument.java
! src/share/classes/javax/swing/text/Document.java
! src/share/classes/javax/swing/text/DocumentFilter.java
! src/share/classes/javax/swing/text/EditorKit.java
! src/share/classes/javax/swing/text/FieldView.java
! src/share/classes/javax/swing/text/FlowView.java
! src/share/classes/javax/swing/text/GapContent.java
! src/share/classes/javax/swing/text/GlyphView.java
! src/share/classes/javax/swing/text/Highlighter.java
! src/share/classes/javax/swing/text/IconView.java
! src/share/classes/javax/swing/text/NavigationFilter.java
! src/share/classes/javax/swing/text/ParagraphView.java
! src/share/classes/javax/swing/text/PasswordView.java
! src/share/classes/javax/swing/text/PlainDocument.java
! src/share/classes/javax/swing/text/PlainView.java
! src/share/classes/javax/swing/text/Position.java
! src/share/classes/javax/swing/text/StringContent.java
! src/share/classes/javax/swing/text/StyleContext.java
! src/share/classes/javax/swing/text/StyledDocument.java
! src/share/classes/javax/swing/text/StyledEditorKit.java
! src/share/classes/javax/swing/text/TabExpander.java
! src/share/classes/javax/swing/text/TabableView.java
! src/share/classes/javax/swing/text/TableView.java
! src/share/classes/javax/swing/text/Utilities.java
! src/share/classes/javax/swing/text/View.java
! src/share/classes/javax/swing/text/WrappedPlainView.java
! src/share/classes/javax/swing/text/ZoneView.java
! src/share/classes/javax/swing/text/html/BlockView.java
! src/share/classes/javax/swing/text/html/CSS.java
! src/share/classes/javax/swing/text/html/FormView.java
! src/share/classes/javax/swing/text/html/HTMLDocument.java
Changeset: 58178aec7e81
Author: kshefov
Date: 2013-09-24 17:46 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/58178aec7e81
7124320: [TEST_BUG] [macosx] JComboBox doesn't change selection on mouse over
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JComboBox/6236162/bug6236162.java
Changeset: f500844c2253
Author: kshefov
Date: 2013-09-24 17:56 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f500844c2253
7133154: [TEST_BUG] [macosx] closed/javax/swing/JInternalFrame/4251301/bug4251301.java fails on MacOS
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JInternalFrame/4251301/bug4251301.java
Changeset: 967557d5b90a
Author: kshefov
Date: 2013-09-24 18:13 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/967557d5b90a
7133146: [macosx] closed/javax/swing/JInternalFrame/4193219/IconCoord fails on MacOS
Reviewed-by: alexsch, serb
Contributed-by: vera.akulova at oracle.com
+ test/javax/swing/JInternalFrame/4193219/IconCoord.java
Changeset: 3982dd1210ba
Author: kshefov
Date: 2013-09-24 18:20 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3982dd1210ba
8015599: [TEST_BUG] [macosx] Test closed/javax/swing/Popup/TaskbarPositionTest.java fails since JDK 8 b75 on MacOSX
Reviewed-by: alexsch, serb
+ test/javax/swing/Popup/TaskbarPositionTest.java
Changeset: 2ed1584d62c5
Author: leonidr
Date: 2013-09-24 18:24 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2ed1584d62c5
8022555: [macosx] AppleScriptEngine.jar MUST call java.awt.Toolkit.getDefaultToolkit() lazily
Reviewed-by: anthony, serb
! src/macosx/classes/apple/applescript/AppleScriptEngineFactory.java
Changeset: a284da808700
Author: malenkov
Date: 2013-09-25 14:06 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a284da808700
8023310: Thread contention in the method Beans.IsDesignTime()
Reviewed-by: art, sfriberg
! src/share/classes/java/beans/ThreadGroupContext.java
! src/share/classes/java/beans/WeakIdentityMap.java
Changeset: 10e66428ddb0
Author: alexsch
Date: 2013-09-25 16:17 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/10e66428ddb0
8007155: [macosx] Disabled panel takes mouse input in JLayeredPane
Reviewed-by: serb, anthony
! src/macosx/classes/sun/lwawt/LWCursorManager.java
! src/share/classes/java/awt/Container.java
! src/share/classes/sun/awt/AWTAccessor.java
! src/share/classes/sun/awt/GlobalCursorManager.java
! src/solaris/classes/sun/awt/X11/XGlobalCursorManager.java
! src/windows/classes/sun/awt/windows/WGlobalCursorManager.java
! src/windows/native/sun/windows/awt_Container.cpp
! src/windows/native/sun/windows/awt_Container.h
! src/windows/native/sun/windows/awt_Cursor.cpp
+ test/java/awt/Cursor/CursorOverlappedPanelsTest/CursorOverlappedPanelsTest.html
+ test/java/awt/Cursor/CursorOverlappedPanelsTest/CursorOverlappedPanelsTest.java
Changeset: 7cad8ef127a9
Author: pchelko
Date: 2013-09-25 16:12 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7cad8ef127a9
8024987: Copy/paste regression since JDK8 b86
Reviewed-by: serb, anthony
! src/share/classes/java/awt/datatransfer/SystemFlavorMap.java
Changeset: cff4f079fa3f
Author: kshefov
Date: 2013-09-25 16:52 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cff4f079fa3f
8004032: [TEST_BUG] [macosx] There is no effect when double clicking on the Icon, after right clicking on the Icon and the Icon disappear
Reviewed-by: anthony, serb
+ test/java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.html
+ test/java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.java
Changeset: 681ac9f9c452
Author: alexsch
Date: 2013-09-25 17:08 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/681ac9f9c452
8025070: [javadoc] fix some javadoc errors in javax/swing/plaf/synth
Reviewed-by: serb, alexsch
Contributed-by: Alexander Stepanov
! src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java
! src/share/classes/javax/swing/plaf/synth/SynthCheckBoxMenuItemUI.java
! src/share/classes/javax/swing/plaf/synth/SynthCheckBoxUI.java
! src/share/classes/javax/swing/plaf/synth/SynthColorChooserUI.java
! src/share/classes/javax/swing/plaf/synth/SynthComboBoxUI.java
! src/share/classes/javax/swing/plaf/synth/SynthDesktopIconUI.java
! src/share/classes/javax/swing/plaf/synth/SynthDesktopPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthEditorPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthFormattedTextFieldUI.java
! src/share/classes/javax/swing/plaf/synth/SynthInternalFrameUI.java
! src/share/classes/javax/swing/plaf/synth/SynthLabelUI.java
! src/share/classes/javax/swing/plaf/synth/SynthListUI.java
! src/share/classes/javax/swing/plaf/synth/SynthMenuBarUI.java
! src/share/classes/javax/swing/plaf/synth/SynthMenuItemUI.java
! src/share/classes/javax/swing/plaf/synth/SynthMenuLayout.java
! src/share/classes/javax/swing/plaf/synth/SynthMenuUI.java
! src/share/classes/javax/swing/plaf/synth/SynthOptionPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthPainter.java
! src/share/classes/javax/swing/plaf/synth/SynthPanelUI.java
! src/share/classes/javax/swing/plaf/synth/SynthPasswordFieldUI.java
! src/share/classes/javax/swing/plaf/synth/SynthPopupMenuUI.java
! src/share/classes/javax/swing/plaf/synth/SynthProgressBarUI.java
! src/share/classes/javax/swing/plaf/synth/SynthRadioButtonMenuItemUI.java
! src/share/classes/javax/swing/plaf/synth/SynthRadioButtonUI.java
! src/share/classes/javax/swing/plaf/synth/SynthRootPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java
! src/share/classes/javax/swing/plaf/synth/SynthScrollPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthSeparatorUI.java
! src/share/classes/javax/swing/plaf/synth/SynthSliderUI.java
! src/share/classes/javax/swing/plaf/synth/SynthSpinnerUI.java
! src/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTabbedPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTableHeaderUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTableUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTextAreaUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTextFieldUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTextPaneUI.java
! src/share/classes/javax/swing/plaf/synth/SynthToggleButtonUI.java
! src/share/classes/javax/swing/plaf/synth/SynthToolBarUI.java
! src/share/classes/javax/swing/plaf/synth/SynthToolTipUI.java
! src/share/classes/javax/swing/plaf/synth/SynthTreeUI.java
! src/share/classes/javax/swing/plaf/synth/SynthViewportUI.java
Changeset: 2f8803ebd98c
Author: yan
Date: 2013-09-25 17:35 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2f8803ebd98c
8025085: [javadoc] some errors in javax/swing
Reviewed-by: alexsch
Contributed-by: Dmitry Zinkevich
! src/share/classes/javax/swing/JButton.java
! src/share/classes/javax/swing/JCheckBox.java
! src/share/classes/javax/swing/JCheckBoxMenuItem.java
! src/share/classes/javax/swing/JColorChooser.java
! src/share/classes/javax/swing/JComboBox.java
! src/share/classes/javax/swing/JComponent.java
! src/share/classes/javax/swing/JDesktopPane.java
! src/share/classes/javax/swing/JMenuItem.java
! src/share/classes/javax/swing/JToggleButton.java
! src/share/classes/javax/swing/SpinnerDateModel.java
! src/share/classes/javax/swing/SpinnerListModel.java
! src/share/classes/javax/swing/SpinnerNumberModel.java
! src/share/classes/javax/swing/SpringLayout.java
! src/share/classes/javax/swing/TransferHandler.java
! src/share/classes/javax/swing/UIDefaults.java
! src/share/classes/javax/swing/UnsupportedLookAndFeelException.java
! src/share/classes/javax/swing/ViewportLayout.java
! src/share/classes/javax/swing/plaf/LayerUI.java
! src/share/classes/javax/swing/plaf/basic/BasicBorders.java
! src/share/classes/javax/swing/plaf/basic/BasicDesktopIconUI.java
! src/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java
! src/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java
! src/share/classes/javax/swing/plaf/basic/BasicIconFactory.java
! src/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
! src/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java
! src/share/classes/javax/swing/plaf/basic/BasicLabelUI.java
! src/share/classes/javax/swing/plaf/basic/BasicListUI.java
! src/share/classes/javax/swing/plaf/basic/BasicMenuBarUI.java
! src/share/classes/javax/swing/plaf/basic/BasicMenuUI.java
! src/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicPopupMenuSeparatorUI.java
! src/share/classes/javax/swing/plaf/basic/BasicPopupMenuUI.java
! src/share/classes/javax/swing/plaf/basic/BasicProgressBarUI.java
! src/share/classes/javax/swing/plaf/basic/BasicScrollPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicSeparatorUI.java
! src/share/classes/javax/swing/plaf/basic/BasicSliderUI.java
! src/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
! src/share/classes/javax/swing/plaf/basic/BasicToolBarSeparatorUI.java
! src/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java
! src/share/classes/javax/swing/plaf/basic/BasicToolTipUI.java
! src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java
! src/share/classes/javax/swing/plaf/basic/DefaultMenuLayout.java
! src/share/classes/javax/swing/plaf/metal/MetalBorders.java
! src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
! src/share/classes/javax/swing/plaf/metal/MetalLabelUI.java
! src/share/classes/javax/swing/plaf/metal/MetalLookAndFeel.java
! src/share/classes/javax/swing/plaf/metal/MetalPopupMenuSeparatorUI.java
! src/share/classes/javax/swing/plaf/metal/MetalScrollPaneUI.java
! src/share/classes/javax/swing/plaf/metal/MetalSeparatorUI.java
! src/share/classes/javax/swing/plaf/metal/MetalSliderUI.java
! src/share/classes/javax/swing/plaf/metal/MetalTabbedPaneUI.java
! src/share/classes/javax/swing/plaf/metal/MetalToolTipUI.java
! src/share/classes/javax/swing/plaf/nimbus/AbstractRegionPainter.java
! src/share/classes/javax/swing/plaf/nimbus/NimbusLookAndFeel.java
! src/share/classes/javax/swing/plaf/nimbus/NimbusStyle.java
! src/share/classes/javax/swing/plaf/synth/Region.java
! src/share/classes/javax/swing/text/html/HTMLEditorKit.java
! src/share/classes/javax/swing/text/html/ImageView.java
! src/share/classes/javax/swing/text/html/InlineView.java
! src/share/classes/javax/swing/text/html/StyleSheet.java
! src/share/classes/javax/swing/text/html/parser/ContentModel.java
! src/share/classes/javax/swing/text/html/parser/DocumentParser.java
! src/share/classes/javax/swing/text/html/parser/Parser.java
! src/share/classes/javax/swing/tree/AbstractLayoutCache.java
! src/share/classes/javax/swing/tree/DefaultTreeCellEditor.java
! src/share/classes/javax/swing/tree/DefaultTreeCellRenderer.java
! src/share/classes/javax/swing/tree/DefaultTreeModel.java
! src/share/classes/javax/swing/tree/TreeCellRenderer.java
! src/share/classes/javax/swing/tree/TreeModel.java
! src/share/classes/javax/swing/undo/UndoManager.java
Changeset: c40ed21f2939
Author: alexsch
Date: 2013-09-25 17:42 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c40ed21f2939
7083457: Incomplete specification for javax/swing/text/DefaultCaret.html#setVisible(boolean)
Reviewed-by: malenkov, serb
! src/share/classes/javax/swing/text/DefaultCaret.java
+ test/javax/swing/text/DefaultCaret/7083457/bug7083457.java
Changeset: 09fb25645717
Author: ptbrunet
Date: 2013-09-26 10:48 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/09fb25645717
8025160: Recent Java Accessibility Bridge push has make failures
Reviewed-by: tbell, erikj
! make/bridge/AccessBridgeJava/Makefile
! makefiles/CreateJars.gmk
! makefiles/GensrcMisc.gmk
Changeset: 0270e9b0891b
Author: yan
Date: 2013-09-26 16:10 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/0270e9b0891b
8025218: [javadoc] some errors in java/awt classes
Reviewed-by: yan
Contributed-by: Dmitry Zinkevich
! src/share/classes/java/awt/AWTKeyStroke.java
! src/share/classes/java/awt/Component.java
! src/share/classes/java/awt/DefaultKeyboardFocusManager.java
! src/share/classes/java/awt/Dialog.java
! src/share/classes/java/awt/Event.java
! src/share/classes/java/awt/Frame.java
! src/share/classes/java/awt/GridBagConstraints.java
! src/share/classes/java/awt/GridBagLayout.java
! src/share/classes/java/awt/GridLayout.java
! src/share/classes/java/awt/KeyboardFocusManager.java
! src/share/classes/java/awt/MenuBar.java
! src/share/classes/java/awt/ScrollPane.java
! src/share/classes/java/awt/ScrollPaneAdjustable.java
! src/share/classes/java/awt/SystemTray.java
! src/share/classes/java/awt/TextComponent.java
! src/share/classes/java/awt/TextField.java
! src/share/classes/java/awt/Window.java
! src/share/classes/java/awt/datatransfer/DataFlavor.java
! src/share/classes/java/awt/event/MouseMotionListener.java
Changeset: 3b22833f2695
Author: lana
Date: 2013-09-26 17:18 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3b22833f2695
Merge
- src/macosx/classes/sun/lwawt/SelectionClearListener.java
- src/macosx/classes/sun/lwawt/macosx/CMouseInfoPeer.java
Changeset: 8edd604bf960
Author: lana
Date: 2013-09-26 17:21 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/8edd604bf960
Merge
- test/java/util/regex/PatternTest.java
Changeset: 9684ed81cd21
Author: ksrini
Date: 2013-09-27 16:29 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/9684ed81cd21
8020552: [launcher] changes to support removal of Solaris 32-bit distribution
8023495: [infra] create 64-bit solaris bits with symlinks
Reviewed-by: ihse, tbell, dholmes, darcy, alanb, erikj, sla, martin
! makefiles/Images.gmk
! src/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java
! src/solaris/bin/java_md_solinux.c
! test/com/sun/jdi/BadHandshakeTest.java
! test/com/sun/jdi/DoubleAgentTest.java
! test/com/sun/jdi/ExclusiveBind.java
! test/com/sun/jdi/PrivateTransportTest.sh
! test/com/sun/jdi/RunToExit.java
- test/com/sun/jdi/Solaris32AndSolaris64Test.sh
! test/com/sun/jdi/connect/spi/SimpleLaunchingConnector.java
! test/demo/jvmti/DemoRun.java
! test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Makefile
+ test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-amd64/libLauncher.so
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-i586/libLauncher.so
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so
! test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh
! test/sun/security/tools/keytool/autotest.sh
! test/sun/tools/jhat/HatRun.java
! test/tools/launcher/6842838/Test6842838.sh
! test/tools/launcher/ChangeDataModel.java
! test/tools/launcher/ExecutionEnvironment.java
! test/tools/launcher/FXLauncherTest.java
! test/tools/launcher/RunpathTest.java
! test/tools/launcher/Test7029048.java
! test/tools/launcher/TestHelper.java
Changeset: 2c7c7b813eb3
Author: katleman
Date: 2013-10-01 12:45 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/2c7c7b813eb3
Merge
- test/com/sun/jdi/Solaris32AndSolaris64Test.sh
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-i586/libLauncher.so
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so
Changeset: dd43ccb3bac9
Author: ihse
Date: 2013-10-01 11:08 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/dd43ccb3bac9
8019219: Fix typo in jdk/makefiles "default" targets
Reviewed-by: erikj
! makefiles/CompileLaunchers.gmk
! makefiles/CompileNativeLibraries.gmk
Changeset: 54e099776f08
Author: erikj
Date: 2013-10-02 15:08 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/54e099776f08
Merge
Changeset: 9f57d2774603
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/9f57d2774603
Added tag jdk8-b110 for changeset 54e099776f08
! .hgtags
Changeset: 88597d465e48
Author: ihse
Date: 2013-10-01 15:13 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/88597d465e48
8016024: Remove solaris path from FillCacheFind
Reviewed-by: erikj
! makefiles/Tools.gmk
Changeset: 760af86b3f3f
Author: erikj
Date: 2013-10-03 11:27 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/760af86b3f3f
8024522: java.time packages missing from src.zip
Reviewed-by: tbell
! makefiles/CreateJars.gmk
Changeset: 719befd87c7b
Author: katleman
Date: 2013-10-08 13:10 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/719befd87c7b
Merge
Changeset: a1d91e198ddf
Author: lana
Date: 2013-10-10 13:33 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a1d91e198ddf
Merge
! makefiles/CompileJavaClasses.gmk
! makefiles/CreateJars.gmk
- src/macosx/classes/sun/lwawt/SelectionClearListener.java
- src/macosx/classes/sun/lwawt/macosx/CMouseInfoPeer.java
- test/com/sun/jdi/Solaris32AndSolaris64Test.sh
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-i586/libLauncher.so
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so
! test/sun/security/tools/keytool/autotest.sh
Changeset: 1863a7e3a1c9
Author: lana
Date: 2013-10-10 20:57 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1863a7e3a1c9
Merge
Changeset: 7af04d2d2139
Author: cl
Date: 2013-10-10 10:09 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7af04d2d2139
Added tag jdk8-b111 for changeset 719befd87c7b
! .hgtags
Changeset: 1a067bc31098
Author: lana
Date: 2013-10-10 21:23 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1a067bc31098
Merge
From fredrik.arvidsson at oracle.com Fri Oct 11 00:45:59 2013
From: fredrik.arvidsson at oracle.com (Fredrik Arvidsson)
Date: Fri, 11 Oct 2013 09:45:59 +0200
Subject: RFR (XS) 8024425: VM_HeapDumper doesn't put anonymous classes
in the heap dump
In-Reply-To: <52569A79.5020405@oracle.com>
References: <52568048.5050109@oracle.com> <52569A79.5020405@oracle.com>
Message-ID: <5257ACB7.3010109@oracle.com>
Hi
I made a small change and added a new review:
http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.01/
About this change:
Space added after if statement.
Regarding the comment about indentation. It seems like webrev have some
problems with my change. Looking in the Raw code reveals that the
indentation in this case is in fact correct, 2 spaces.
/F
On 2013-10-10 14:15, David Holmes wrote:
> Fredrik,
>
> On 10/10/2013 8:24 PM, Fredrik Arvidsson wrote:
>> Hi
>>
>> Please help me to review the changes below:
>>
>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024425
>>
>> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.00/
>>
>
> Please make sure what you have in your html email is consistent. Your
> visible text refers to a different bug id to the actual link - and the
> links are different to the subject. Can you please re-send this email
> with corrected links and subject - thanks.
>
> Style issues:
> - ensure spaces are after keywords ie if(x) should be if (x)
> - two-space indent not four
>
> David
> -----
>
>> About this change.
>> I switched from using the SystemDictionary to use ClassLoaderDataGraph
>> instead since the SystemDictionary lack information about the
>> 'anonymous' classes related to this bug.
>>
>> Previously failed Aurora tests have been run using UTE and verified to
>> PASS. The heap dump file have been successfully opened and parsed using
>> jhat and eclipse MAT.
>>
>> Cheers
>> /Fredrik
From peter.allwin at oracle.com Fri Oct 11 00:52:46 2013
From: peter.allwin at oracle.com (Peter Allwin)
Date: Fri, 11 Oct 2013 09:52:46 +0200
Subject: RR(S): JDK-8004213 jdp packet need pid,
broadcast interval and rmi server hostname fields.
In-Reply-To: <5256F2FE.4090202@oracle.com>
References: <5256F2FE.4090202@oracle.com>
Message-ID: <9AC43B86-B2BD-4118-96F9-0A986311C693@oracle.com>
Hi Dmitry,
Looks good, thanks for fixing this!
Regards,
/peter
On Oct 10, 2013, at 8:33 PM, Dmitry Samersoff wrote:
> Hi Everyone,
>
> This fix covers
>
> JDK JDK-8004213 JDP packets should contain PID
> JDK-8004215 JDP packets should contain the configured broadcast interval
> JDK-8007071 JDP does not work well with java.rmi.server.hostname overrides.
>
> and add three extra fields to JDP packet: PID, rmi server name,
> broadcast interval.
>
> PID gathering code mostly borrowed from hotspot testlibrary.
>
> http://cr.openjdk.java.net/~dsamersoff/JDK-8004213/webrev.01/
>
> -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.
From sundararajan.athijegannathan at oracle.com Fri Oct 11 01:20:24 2013
From: sundararajan.athijegannathan at oracle.com (sundararajan.athijegannathan at oracle.com)
Date: Fri, 11 Oct 2013 08:20:24 +0000
Subject: hg: jdk8/tl/nashorn: 5 new changesets
Message-ID: <20131011082034.ECA2662F63@hg.openjdk.java.net>
Changeset: 34f7a699cdef
Author: sundar
Date: 2013-10-10 14:43 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/34f7a699cdef
8026162: "this" in SAM adapter functions is wrong
Reviewed-by: jlaskey, hannesw
! src/jdk/nashorn/internal/runtime/ScriptFunction.java
! src/jdk/nashorn/internal/runtime/linker/JavaAdapterBytecodeGenerator.java
! src/jdk/nashorn/internal/runtime/linker/JavaAdapterServices.java
+ test/script/basic/JDK-8026162.js
Changeset: ed3da7a574a0
Author: lagergren
Date: 2013-10-10 16:16 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/ed3da7a574a0
8026250: Logging nullpointer bugfix and javadoc warnings
Reviewed-by: hannesw, jlaskey, sundar
! src/jdk/nashorn/api/scripting/JSObject.java
! src/jdk/nashorn/api/scripting/NashornScriptEngine.java
! src/jdk/nashorn/internal/ir/LiteralNode.java
! src/jdk/nashorn/internal/objects/Global.java
! src/jdk/nashorn/internal/objects/NativeError.java
! src/jdk/nashorn/internal/runtime/Context.java
! src/jdk/nashorn/internal/runtime/DebugLogger.java
! src/jdk/nashorn/internal/runtime/GlobalObject.java
! src/jdk/nashorn/internal/runtime/ListAdapter.java
! src/jdk/nashorn/internal/runtime/ScriptLoader.java
! src/jdk/nashorn/internal/runtime/WithObject.java
Changeset: a781ea074521
Author: sundar
Date: 2013-10-10 21:43 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/a781ea074521
8026264: Getter, setter function name mangling issues
Reviewed-by: lagergren, jlaskey
! src/jdk/nashorn/internal/parser/Parser.java
! src/jdk/nashorn/internal/runtime/RecompilableScriptFunctionData.java
+ test/script/basic/JDK-8026264.js
Changeset: 375c2f2d41c8
Author: sundar
Date: 2013-10-11 06:50 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/375c2f2d41c8
8026263: [NASHORN] Test test/script/basic/JDK-8025488.js fails in nightly builds
Reviewed-by: jlaskey
! test/script/basic/JDK-8025488.js
Changeset: 56be5161f0d2
Author: sundar
Date: 2013-10-11 09:09 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/56be5161f0d2
Merge
From david.holmes at oracle.com Fri Oct 11 02:07:51 2013
From: david.holmes at oracle.com (David Holmes)
Date: Fri, 11 Oct 2013 19:07:51 +1000
Subject: RFR (XS) 8024425: VM_HeapDumper doesn't put anonymous classes
in the heap dump
In-Reply-To: <5257ACB7.3010109@oracle.com>
References: <52568048.5050109@oracle.com> <52569A79.5020405@oracle.com>
<5257ACB7.3010109@oracle.com>
Message-ID: <5257BFE7.4000605@oracle.com>
On 11/10/2013 5:45 PM, Fredrik Arvidsson wrote:
> Hi
>
> I made a small change and added a new review:
> http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.01/
>
>
> About this change:
> Space added after if statement.
Thanks.
> Regarding the comment about indentation. It seems like webrev have some
> problems with my change. Looking in the Raw code reveals that the
> indentation in this case is in fact correct, 2 spaces.
I think the indentation issue was in the "wrong" webrev that I saw.
David
> /F
>
> On 2013-10-10 14:15, David Holmes wrote:
>> Fredrik,
>>
>> On 10/10/2013 8:24 PM, Fredrik Arvidsson wrote:
>>> Hi
>>>
>>> Please help me to review the changes below:
>>>
>>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024425
>>>
>>> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.00/
>>>
>>
>> Please make sure what you have in your html email is consistent. Your
>> visible text refers to a different bug id to the actual link - and the
>> links are different to the subject. Can you please re-send this email
>> with corrected links and subject - thanks.
>>
>> Style issues:
>> - ensure spaces are after keywords ie if(x) should be if (x)
>> - two-space indent not four
>>
>> David
>> -----
>>
>>> About this change.
>>> I switched from using the SystemDictionary to use ClassLoaderDataGraph
>>> instead since the SystemDictionary lack information about the
>>> 'anonymous' classes related to this bug.
>>>
>>> Previously failed Aurora tests have been run using UTE and verified to
>>> PASS. The heap dump file have been successfully opened and parsed using
>>> jhat and eclipse MAT.
>>>
>>> Cheers
>>> /Fredrik
>
From peter.allwin at oracle.com Fri Oct 11 02:36:31 2013
From: peter.allwin at oracle.com (Peter Allwin)
Date: Fri, 11 Oct 2013 11:36:31 +0200
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
Message-ID: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com>
Hello!
Looking for reviews of this fix where a jmxremote test left a worker thread running after completion. Fix is to flag the thread to finish and join before test method exit.
bug: https://bugs.openjdk.java.net/browse/JDK-8004183
cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
Thanks!
/peter
From shanliang.jiang at oracle.com Fri Oct 11 02:53:59 2013
From: shanliang.jiang at oracle.com (shanliang)
Date: Fri, 11 Oct 2013 11:53:59 +0200
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
In-Reply-To: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com>
References: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com>
Message-ID: <5257CAB7.4060303@oracle.com>
Looks good to me.
Shanliang
Peter Allwin wrote:
> Hello!
>
> Looking for reviews of this fix where a jmxremote test left a worker thread running after completion. Fix is to flag the thread to finish and join before test method exit.
>
> bug: https://bugs.openjdk.java.net/browse/JDK-8004183
> cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
>
> Thanks!
> /peter
From serguei.spitsyn at oracle.com Fri Oct 11 03:06:28 2013
From: serguei.spitsyn at oracle.com (serguei.spitsyn at oracle.com)
Date: Fri, 11 Oct 2013 03:06:28 -0700
Subject: RFR (XS) 8024425: VM_HeapDumper doesn't put anonymous classes
in the heap dump
In-Reply-To: <5257ACB7.3010109@oracle.com>
References: <52568048.5050109@oracle.com> <52569A79.5020405@oracle.com>
<5257ACB7.3010109@oracle.com>
Message-ID: <5257CDA4.4080906@oracle.com>
Frederik,
It looks good.
Thanks,
Serguei
On 10/11/13 12:45 AM, Fredrik Arvidsson wrote:
> Hi
>
> I made a small change and added a new review:
> http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.01/
>
>
> About this change:
> Space added after if statement.
>
> Regarding the comment about indentation. It seems like webrev have
> some problems with my change. Looking in the Raw code reveals that the
> indentation in this case is in fact correct, 2 spaces.
>
> /F
>
> On 2013-10-10 14:15, David Holmes wrote:
>> Fredrik,
>>
>> On 10/10/2013 8:24 PM, Fredrik Arvidsson wrote:
>>> Hi
>>>
>>> Please help me to review the changes below:
>>>
>>> Jira case: https://bugs.openjdk.java.net/browse/JDK-8024425
>>>
>>> Webrev: http://cr.openjdk.java.net/~allwin/farvidss/8024425/webrev.00/
>>>
>>
>> Please make sure what you have in your html email is consistent. Your
>> visible text refers to a different bug id to the actual link - and
>> the links are different to the subject. Can you please re-send this
>> email with corrected links and subject - thanks.
>>
>> Style issues:
>> - ensure spaces are after keywords ie if(x) should be if (x)
>> - two-space indent not four
>>
>> David
>> -----
>>
>>> About this change.
>>> I switched from using the SystemDictionary to use ClassLoaderDataGraph
>>> instead since the SystemDictionary lack information about the
>>> 'anonymous' classes related to this bug.
>>>
>>> Previously failed Aurora tests have been run using UTE and verified to
>>> PASS. The heap dump file have been successfully opened and parsed using
>>> jhat and eclipse MAT.
>>>
>>> Cheers
>>> /Fredrik
>
From daniel.fuchs at oracle.com Fri Oct 11 03:18:29 2013
From: daniel.fuchs at oracle.com (Daniel Fuchs)
Date: Fri, 11 Oct 2013 12:18:29 +0200
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
In-Reply-To: <5257CAB7.4060303@oracle.com>
References: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com>
<5257CAB7.4060303@oracle.com>
Message-ID: <5257D075.1040104@oracle.com>
Hi Peter,
Looks good to me - but you might want to use 'boolean' for
isRunning rather than 'Boolean'.
Joining on the daemon thread is probably not necessary,
but there's no harm in it (the important part being
isRunning=false + s.close()).
best regards,
-- daniel (not a reviewer)
On 10/11/13 11:53 AM, shanliang wrote:
> Looks good to me.
>
> Shanliang
>
>
> Peter Allwin wrote:
>> Hello!
>>
>> Looking for reviews of this fix where a jmxremote test left a worker
>> thread running after completion. Fix is to flag the thread to finish
>> and join before test method exit.
>>
>> bug: https://bugs.openjdk.java.net/browse/JDK-8004183
>> cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
>>
>> Thanks!
>> /peter
>
From david.holmes at oracle.com Fri Oct 11 04:13:01 2013
From: david.holmes at oracle.com (David Holmes)
Date: Fri, 11 Oct 2013 21:13:01 +1000
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
In-Reply-To: <5257D075.1040104@oracle.com>
References: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com>
<5257CAB7.4060303@oracle.com> <5257D075.1040104@oracle.com>
Message-ID: <5257DD3D.4020307@oracle.com>
On 11/10/2013 8:18 PM, Daniel Fuchs wrote:
> Hi Peter,
>
> Looks good to me - but you might want to use 'boolean' for
> isRunning rather than 'Boolean'.
Definitely!
> Joining on the daemon thread is probably not necessary,
> but there's no harm in it (the important part being
> isRunning=false + s.close()).
It is pointless having the thread be a daemon now. If running in the
same VM as anything else joining will ensure this test is cleaned up
before the next test commences.
David
-----
> best regards,
>
> -- daniel (not a reviewer)
>
> On 10/11/13 11:53 AM, shanliang wrote:
>> Looks good to me.
>>
>> Shanliang
>>
>>
>> Peter Allwin wrote:
>>> Hello!
>>>
>>> Looking for reviews of this fix where a jmxremote test left a worker
>>> thread running after completion. Fix is to flag the thread to finish
>>> and join before test method exit.
>>>
>>> bug: https://bugs.openjdk.java.net/browse/JDK-8004183
>>> cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
>>>
>>> Thanks!
>>> /peter
>>
>
From dmitry.samersoff at oracle.com Fri Oct 11 05:09:11 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Fri, 11 Oct 2013 16:09:11 +0400
Subject: RR(S): JDK-8024071 In ManagementAgent.start it should be possible
to set the jdp.name parameter.
Message-ID: <5257EA67.4080706@oracle.com>
Please review the fix.
Hotspot part
http://cr.openjdk.java.net/~dsamersoff/JDK-8024071/webrev.01/hotspot
Jdk
http://cr.openjdk.java.net/~dsamersoff/JDK-8024071/webrev.01/hotspot
Testing:
Test for this fix is part of changes for JDK-8004213,
http://cr.openjdk.java.net/~dsamersoff/JDK-8004213/webrev.01/
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From dmitry.samersoff at oracle.com Fri Oct 11 05:12:21 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Fri, 11 Oct 2013 16:12:21 +0400
Subject: RR(S): JDK-8024071 In ManagementAgent.start it should be possible
to set the jdp.name parameter.
Message-ID: <5257EB25.6040500@oracle.com>
Fixed typeo, please disregard previous letter.
Please review the fix.
Hotspot part
http://cr.openjdk.java.net/~dsamersoff/JDK-8024071/webrev.01/hotspot
Jdk
http://cr.openjdk.java.net/~dsamersoff/JDK-8024071/webrev.01/jdk
Testing:
Test for this fix is part of changes for JDK-8004213,
http://cr.openjdk.java.net/~dsamersoff/JDK-8004213/webrev.01/
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From sundararajan.athijegannathan at oracle.com Fri Oct 11 05:28:37 2013
From: sundararajan.athijegannathan at oracle.com (sundararajan.athijegannathan at oracle.com)
Date: Fri, 11 Oct 2013 12:28:37 +0000
Subject: hg: jdk8/tl/nashorn: 4 new changesets
Message-ID: <20131011122842.3823862F6C@hg.openjdk.java.net>
Changeset: 1c154cee43d9
Author: hannesw
Date: 2013-10-11 10:56 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/1c154cee43d9
8026292: Megamorphic setter fails with boolean value
Reviewed-by: jlaskey, sundar
! src/jdk/nashorn/internal/codegen/MethodEmitter.java
+ test/script/basic/JDK-8026292.js
Changeset: fb091f9052a6
Author: sundar
Date: 2013-10-11 11:15 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/fb091f9052a6
8026302: source representation of getter and setter methods is wrong
Reviewed-by: lagergren, hannesw, jlaskey
! src/jdk/nashorn/internal/parser/Parser.java
+ test/script/basic/JDK-8026302.js
+ test/script/basic/JDK-8026302.js.EXPECTED
! test/script/basic/objects.js.EXPECTED
Changeset: 062579f50371
Author: sundar
Date: 2013-10-11 14:11 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/062579f50371
8026317: $ in the function name results in wrong function being invoked
Reviewed-by: lagergren, jlaskey
! src/jdk/nashorn/internal/codegen/Namespace.java
+ test/script/basic/JDK-8026317.js
+ test/script/basic/JDK-8026317.js.EXPECTED
Changeset: b35d175207f6
Author: sundar
Date: 2013-10-11 14:13 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/b35d175207f6
Merge
From peter.allwin at oracle.com Fri Oct 11 05:32:07 2013
From: peter.allwin at oracle.com (Peter Allwin)
Date: Fri, 11 Oct 2013 14:32:07 +0200
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
In-Reply-To: <5257DD3D.4020307@oracle.com>
References: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com>
<5257CAB7.4060303@oracle.com> <5257D075.1040104@oracle.com>
<5257DD3D.4020307@oracle.com>
Message-ID: <24313344-3E61-4FF2-BBD0-6918B0DD4C0C@oracle.com>
Thanks for the feedback, good points!
I've put an updated webrev here:
http://cr.openjdk.java.net/~allwin/8004183/webrev.01/
Changes:
boolean instead of Boolean
no longer sets worker as daemon
Regards,
/peter
On Oct 11, 2013, at 1:13 PM, David Holmes wrote:
> On 11/10/2013 8:18 PM, Daniel Fuchs wrote:
>> Hi Peter,
>>
>> Looks good to me - but you might want to use 'boolean' for
>> isRunning rather than 'Boolean'.
>
> Definitely!
>
>> Joining on the daemon thread is probably not necessary,
>> but there's no harm in it (the important part being
>> isRunning=false + s.close()).
>
> It is pointless having the thread be a daemon now. If running in the same VM as anything else joining will ensure this test is cleaned up before the next test commences.
>
> David
> -----
>
>> best regards,
>>
>> -- daniel (not a reviewer)
>>
>> On 10/11/13 11:53 AM, shanliang wrote:
>>> Looks good to me.
>>>
>>> Shanliang
>>>
>>>
>>> Peter Allwin wrote:
>>>> Hello!
>>>>
>>>> Looking for reviews of this fix where a jmxremote test left a worker
>>>> thread running after completion. Fix is to flag the thread to finish
>>>> and join before test method exit.
>>>>
>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8004183
>>>> cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
>>>>
>>>> Thanks!
>>>> /peter
>>>
>>
From daniel.fuchs at oracle.com Fri Oct 11 05:34:42 2013
From: daniel.fuchs at oracle.com (Daniel Fuchs)
Date: Fri, 11 Oct 2013 14:34:42 +0200
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
In-Reply-To: <24313344-3E61-4FF2-BBD0-6918B0DD4C0C@oracle.com>
References: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com>
<5257CAB7.4060303@oracle.com> <5257D075.1040104@oracle.com>
<5257DD3D.4020307@oracle.com>
<24313344-3E61-4FF2-BBD0-6918B0DD4C0C@oracle.com>
Message-ID: <5257F062.4040905@oracle.com>
Looks good!
-- daniel
On 10/11/13 2:32 PM, Peter Allwin wrote:
> Thanks for the feedback, good points!
>
> I've put an updated webrev here:
>
> http://cr.openjdk.java.net/~allwin/8004183/webrev.01/
>
> Changes:
> boolean instead of Boolean
> no longer sets worker as daemon
>
> Regards,
> /peter
>
> On Oct 11, 2013, at 1:13 PM, David Holmes wrote:
>
>> On 11/10/2013 8:18 PM, Daniel Fuchs wrote:
>>> Hi Peter,
>>>
>>> Looks good to me - but you might want to use 'boolean' for
>>> isRunning rather than 'Boolean'.
>>
>> Definitely!
>>
>>> Joining on the daemon thread is probably not necessary,
>>> but there's no harm in it (the important part being
>>> isRunning=false + s.close()).
>>
>> It is pointless having the thread be a daemon now. If running in the same VM as anything else joining will ensure this test is cleaned up before the next test commences.
>>
>> David
>> -----
>>
>>> best regards,
>>>
>>> -- daniel (not a reviewer)
>>>
>>> On 10/11/13 11:53 AM, shanliang wrote:
>>>> Looks good to me.
>>>>
>>>> Shanliang
>>>>
>>>>
>>>> Peter Allwin wrote:
>>>>> Hello!
>>>>>
>>>>> Looking for reviews of this fix where a jmxremote test left a worker
>>>>> thread running after completion. Fix is to flag the thread to finish
>>>>> and join before test method exit.
>>>>>
>>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8004183
>>>>> cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
>>>>>
>>>>> Thanks!
>>>>> /peter
>>>>
>>>
>
From jaroslav.bachorik at oracle.com Fri Oct 11 05:35:29 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Fri, 11 Oct 2013 14:35:29 +0200
Subject: RR(S): JDK-8024071 In ManagementAgent.start it should be possible
to set the jdp.name parameter.
In-Reply-To: <5257EB25.6040500@oracle.com>
References: <5257EB25.6040500@oracle.com>
Message-ID: <5257F091.3070804@oracle.com>
Dmitry,
what is the purpose of the change in JMXStartStopTest.sh?
The rest looks fine.
-JB-
On 11.10.2013 14:12, Dmitry Samersoff wrote:
> Fixed typeo, please disregard previous letter.
>
>
> Please review the fix.
>
> Hotspot part
>
> http://cr.openjdk.java.net/~dsamersoff/JDK-8024071/webrev.01/hotspot
>
> Jdk
>
> http://cr.openjdk.java.net/~dsamersoff/JDK-8024071/webrev.01/jdk
>
>
> Testing:
>
> Test for this fix is part of changes for JDK-8004213,
> http://cr.openjdk.java.net/~dsamersoff/JDK-8004213/webrev.01/
>
>
From dmitry.samersoff at oracle.com Fri Oct 11 05:59:10 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Fri, 11 Oct 2013 16:59:10 +0400
Subject: RR(S): JDK-8024071 In ManagementAgent.start it should be possible
to set the jdp.name parameter.
In-Reply-To: <5257F091.3070804@oracle.com>
References: <5257EB25.6040500@oracle.com> <5257F091.3070804@oracle.com>
Message-ID: <5257F61E.2090606@oracle.com>
On 2013-10-11 16:35, Jaroslav Bachorik wrote:
> Dmitry,
>
> what is the purpose of the change in JMXStartStopTest.sh?
To be able to run it without jtreg - i.e. if only TESTJAVA is set.
-Dmitry
>
> The rest looks fine.
>
> -JB-
>
> On 11.10.2013 14:12, Dmitry Samersoff wrote:
>> Fixed typeo, please disregard previous letter.
>>
>>
>> Please review the fix.
>>
>> Hotspot part
>>
>> http://cr.openjdk.java.net/~dsamersoff/JDK-8024071/webrev.01/hotspot
>>
>> Jdk
>>
>> http://cr.openjdk.java.net/~dsamersoff/JDK-8024071/webrev.01/jdk
>>
>>
>> Testing:
>>
>> Test for this fix is part of changes for JDK-8004213,
>> http://cr.openjdk.java.net/~dsamersoff/JDK-8004213/webrev.01/
>>
>>
>
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From olivier.lagneau at oracle.com Fri Oct 11 05:57:43 2013
From: olivier.lagneau at oracle.com (Olivier Lagneau)
Date: Fri, 11 Oct 2013 14:57:43 +0200
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
In-Reply-To: <5257F062.4040905@oracle.com>
References: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com> <5257CAB7.4060303@oracle.com>
<5257D075.1040104@oracle.com> <5257DD3D.4020307@oracle.com> <24313344-3E61-4FF2-BBD0-6918B0DD4C0C@oracle.com>
<5257F062.4040905@oracle.com>
Message-ID: <5257F5C7.3040309@oracle.com>
+1!
Olivier.
Daniel Fuchs said on date 10/11/2013 2:34 PM:
> Looks good!
>
> -- daniel
>
> On 10/11/13 2:32 PM, Peter Allwin wrote:
>> Thanks for the feedback, good points!
>>
>> I've put an updated webrev here:
>>
>> http://cr.openjdk.java.net/~allwin/8004183/webrev.01/
>>
>> Changes:
>> boolean instead of Boolean
>> no longer sets worker as daemon
>>
>> Regards,
>> /peter
>>
>> On Oct 11, 2013, at 1:13 PM, David Holmes
>> wrote:
>>
>>> On 11/10/2013 8:18 PM, Daniel Fuchs wrote:
>>>> Hi Peter,
>>>>
>>>> Looks good to me - but you might want to use 'boolean' for
>>>> isRunning rather than 'Boolean'.
>>>
>>> Definitely!
>>>
>>>> Joining on the daemon thread is probably not necessary,
>>>> but there's no harm in it (the important part being
>>>> isRunning=false + s.close()).
>>>
>>> It is pointless having the thread be a daemon now. If running in the
>>> same VM as anything else joining will ensure this test is cleaned up
>>> before the next test commences.
>>>
>>> David
>>> -----
>>>
>>>> best regards,
>>>>
>>>> -- daniel (not a reviewer)
>>>>
>>>> On 10/11/13 11:53 AM, shanliang wrote:
>>>>> Looks good to me.
>>>>>
>>>>> Shanliang
>>>>>
>>>>>
>>>>> Peter Allwin wrote:
>>>>>> Hello!
>>>>>>
>>>>>> Looking for reviews of this fix where a jmxremote test left a worker
>>>>>> thread running after completion. Fix is to flag the thread to finish
>>>>>> and join before test method exit.
>>>>>>
>>>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8004183
>>>>>> cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
>>>>>>
>>>>>> Thanks!
>>>>>> /peter
>>>>>
>>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131011/01d96dd5/attachment-0001.html
From sean.mullan at oracle.com Fri Oct 11 06:45:57 2013
From: sean.mullan at oracle.com (sean.mullan at oracle.com)
Date: Fri, 11 Oct 2013 13:45:57 +0000
Subject: hg: jdk8/tl/jdk: 2 new changesets
Message-ID: <20131011134659.CE0C062F6F@hg.openjdk.java.net>
Changeset: 4ad76262bac8
Author: mullan
Date: 2013-10-11 08:43 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4ad76262bac8
8007292: Add JavaFX internal packages to package.access
Summary: build hooks to allow closed restricted packages to be added to java.security file
Reviewed-by: erikj, dholmes, tbell
! make/java/security/Makefile
! make/tools/Makefile
+ make/tools/addtorestrictedpkgs/Makefile
+ make/tools/src/build/tools/addtorestrictedpkgs/AddToRestrictedPkgs.java
! makefiles/CopyFiles.gmk
! makefiles/Tools.gmk
! test/java/lang/SecurityManager/CheckPackageAccess.java
Changeset: 76df579c0b93
Author: mullan
Date: 2013-10-11 09:17 -0400
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/76df579c0b93
Merge
! makefiles/Tools.gmk
- src/macosx/classes/sun/lwawt/SelectionClearListener.java
- src/macosx/classes/sun/lwawt/macosx/CMouseInfoPeer.java
- src/share/classes/com/sun/jdi/connect/package.html
- src/share/classes/com/sun/jdi/connect/spi/package.html
- src/share/classes/com/sun/jdi/event/package.html
- src/share/classes/com/sun/jdi/package.html
- src/share/classes/com/sun/jdi/request/package.html
- src/share/classes/com/sun/management/package.html
- src/share/classes/com/sun/tools/attach/package.html
- src/share/classes/com/sun/tools/attach/spi/package.html
- src/share/classes/com/sun/tools/jconsole/package.html
- src/share/classes/java/lang/invoke/InvokeGeneric.java
- src/share/classes/java/time/chrono/ChronoDateImpl.java
- test/com/oracle/security/ucrypto/TestAES.java
- test/com/oracle/security/ucrypto/TestDigest.java
- test/com/oracle/security/ucrypto/TestRSA.java
- test/com/oracle/security/ucrypto/UcryptoTest.java
- test/com/sun/jdi/Solaris32AndSolaris64Test.sh
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-i586/libLauncher.so
- test/java/nio/channels/spi/SelectorProvider/inheritedChannel/lib/solaris-sparc/libLauncher.so
- test/java/time/tck/java/time/chrono/TCKChronologySerialization.java
From jan.lahoda at oracle.com Fri Oct 11 06:59:32 2013
From: jan.lahoda at oracle.com (jan.lahoda at oracle.com)
Date: Fri, 11 Oct 2013 13:59:32 +0000
Subject: hg: jdk8/tl/langtools: 6278240: Exception from
AnnotationValue.getValue() should list the found type not the
required type
Message-ID: <20131011135935.3C31862F73@hg.openjdk.java.net>
Changeset: 872c4a898b38
Author: jlahoda
Date: 2013-10-11 15:49 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/872c4a898b38
6278240: Exception from AnnotationValue.getValue() should list the found type not the required type
Reviewed-by: darcy, jfranck, jjg
! src/share/classes/com/sun/tools/javac/code/Type.java
! src/share/classes/com/sun/tools/javac/comp/Annotate.java
! src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
+ test/tools/javac/processing/errors/EnsureAnnotationTypeMismatchException/Processor.java
+ test/tools/javac/processing/errors/EnsureAnnotationTypeMismatchException/Source.java
+ test/tools/javac/processing/errors/EnsureAnnotationTypeMismatchException/Source.out
From staffan.larsen at oracle.com Fri Oct 11 07:54:58 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Fri, 11 Oct 2013 14:54:58 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8026199:
serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java
Compilation failed
Message-ID: <20131011145504.2FDFC62F80@hg.openjdk.java.net>
Changeset: cd7ea1d79dac
Author: sla
Date: 2013-10-11 13:48 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/cd7ea1d79dac
8026199: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java Compilation failed
Summary: Fixed a compilation failure due to changed method name
Reviewed-by: sla, jbachorik
Contributed-by: fredrik.arvidsson at oracle.com
! test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java
! test/testlibrary/com/oracle/java/testlibrary/JDKToolLauncher.java
From dan.xu at oracle.com Fri Oct 11 09:48:01 2013
From: dan.xu at oracle.com (dan.xu at oracle.com)
Date: Fri, 11 Oct 2013 16:48:01 +0000
Subject: hg: jdk8/tl/jdk: 8025712: (props) Possible memory leak in
java_props_md.c / ParseLocale
Message-ID: <20131011164853.6499F62F86@hg.openjdk.java.net>
Changeset: cb373cf43294
Author: dxu
Date: 2013-10-11 09:47 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/cb373cf43294
8025712: (props) Possible memory leak in java_props_md.c / ParseLocale
Reviewed-by: naoto, chegar
! src/solaris/native/java/lang/java_props_md.c
From stefan.karlsson at oracle.com Fri Oct 11 10:33:04 2013
From: stefan.karlsson at oracle.com (Stefan Karlsson)
Date: Fri, 11 Oct 2013 19:33:04 +0200
Subject: Review request: 7196801: NPG: Fix
java/lang/management/MemoryMXBean/LowMemoryTest2
Message-ID: <52583650.6060700@oracle.com>
Please, review this test fix.
http://cr.openjdk.java.net/~stefank/7196801/webrev.00/
Most of the fix was implemented by Coleen, I've only done some small
tweaks and updated some comments.
The fix depends on these changes:
JDK-8025996 Track metaspace usage when metaspace is expanded
JDK-8024547 MaxMetaspaceSize should limit the committed memory used
by the metaspaces
Both of these changesets have been pushed to hotspot-gc and are
currently undergoing testing. LowMemoryTest2 can only be removed from
the test/ProblemList.txt when both JDK-8025996 and JDK-8024547 have
propagated through all necessary repositories.
thanks,
StefanK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131011/d736c2d7/attachment.html
From coleen.phillimore at oracle.com Fri Oct 11 10:44:37 2013
From: coleen.phillimore at oracle.com (Coleen Phillimore)
Date: Fri, 11 Oct 2013 13:44:37 -0400
Subject: Review request: 7196801: NPG: Fix
java/lang/management/MemoryMXBean/LowMemoryTest2
In-Reply-To: <52583650.6060700@oracle.com>
References: <52583650.6060700@oracle.com>
Message-ID: <52583905.8090403@oracle.com>
Stefan,
I added a check about the count exceeding 1 000 000 because it causes
the test to create an invalid class file. With the shell script
changes, it won't happen but I would be happy if that check were there
so no one ever has to debug this thinking it has a corrupted constant
pool again.
Thanks,
Coleen
On 10/11/2013 1:33 PM, Stefan Karlsson wrote:
> Please, review this test fix.
>
> http://cr.openjdk.java.net/~stefank/7196801/webrev.00/
>
> Most of the fix was implemented by Coleen, I've only done some small
> tweaks and updated some comments.
>
> The fix depends on these changes:
> JDK-8025996 Track metaspace usage when metaspace is expanded
> JDK-8024547 MaxMetaspaceSize should limit the committed memory used
> by the metaspaces
>
> Both of these changesets have been pushed to hotspot-gc and are
> currently undergoing testing. LowMemoryTest2 can only be removed from
> the test/ProblemList.txt when both JDK-8025996 and JDK-8024547 have
> propagated through all necessary repositories.
>
> thanks,
> StefanK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131011/fe59f3b4/attachment.html
From stefan.karlsson at oracle.com Fri Oct 11 11:02:47 2013
From: stefan.karlsson at oracle.com (Stefan Karlsson)
Date: Fri, 11 Oct 2013 20:02:47 +0200
Subject: Review request: 7196801: NPG: Fix
java/lang/management/MemoryMXBean/LowMemoryTest2
In-Reply-To: <52583905.8090403@oracle.com>
References: <52583650.6060700@oracle.com> <52583905.8090403@oracle.com>
Message-ID: <52583D47.4000803@oracle.com>
On 10/11/13 7:44 PM, Coleen Phillimore wrote:
>
> Stefan,
>
> I added a check about the count exceeding 1 000 000 because it causes
> the test to create an invalid class file. With the shell script
> changes, it won't happen but I would be happy if that check were there
> so no one ever has to debug this thinking it has a corrupted constant
> pool again.
OK. I though that was old debugging left-overs.
New webrev:
http://cr.openjdk.java.net/~stefank/7196801/webrev.01/
thanks,
StefanK
>
> Thanks,
> Coleen
>
> On 10/11/2013 1:33 PM, Stefan Karlsson wrote:
>> Please, review this test fix.
>>
>> http://cr.openjdk.java.net/~stefank/7196801/webrev.00/
>>
>> Most of the fix was implemented by Coleen, I've only done some small
>> tweaks and updated some comments.
>>
>> The fix depends on these changes:
>> JDK-8025996 Track metaspace usage when metaspace is expanded
>> JDK-8024547 MaxMetaspaceSize should limit the committed memory used
>> by the metaspaces
>>
>> Both of these changesets have been pushed to hotspot-gc and are
>> currently undergoing testing. LowMemoryTest2 can only be removed from
>> the test/ProblemList.txt when both JDK-8025996 and JDK-8024547 have
>> propagated through all necessary repositories.
>>
>> thanks,
>> StefanK
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131011/1444bbf9/attachment.html
From coleen.phillimore at oracle.com Fri Oct 11 11:04:34 2013
From: coleen.phillimore at oracle.com (Coleen Phillimore)
Date: Fri, 11 Oct 2013 14:04:34 -0400
Subject: Review request: 7196801: NPG: Fix
java/lang/management/MemoryMXBean/LowMemoryTest2
In-Reply-To: <52583D47.4000803@oracle.com>
References: <52583650.6060700@oracle.com> <52583905.8090403@oracle.com>
<52583D47.4000803@oracle.com>
Message-ID: <52583DB2.1040709@oracle.com>
Looks good.
Thanks!
Coleen
On 10/11/2013 2:02 PM, Stefan Karlsson wrote:
> On 10/11/13 7:44 PM, Coleen Phillimore wrote:
>>
>> Stefan,
>>
>> I added a check about the count exceeding 1 000 000 because it causes
>> the test to create an invalid class file. With the shell script
>> changes, it won't happen but I would be happy if that check were
>> there so no one ever has to debug this thinking it has a corrupted
>> constant pool again.
>
> OK. I though that was old debugging left-overs.
>
> New webrev:
> http://cr.openjdk.java.net/~stefank/7196801/webrev.01/
>
> thanks,
> StefanK
>
>>
>> Thanks,
>> Coleen
>>
>> On 10/11/2013 1:33 PM, Stefan Karlsson wrote:
>>> Please, review this test fix.
>>>
>>> http://cr.openjdk.java.net/~stefank/7196801/webrev.00/
>>>
>>> Most of the fix was implemented by Coleen, I've only done some small
>>> tweaks and updated some comments.
>>>
>>> The fix depends on these changes:
>>> JDK-8025996 Track metaspace usage when metaspace is expanded
>>> JDK-8024547 MaxMetaspaceSize should limit the committed memory
>>> used by the metaspaces
>>>
>>> Both of these changesets have been pushed to hotspot-gc and are
>>> currently undergoing testing. LowMemoryTest2 can only be removed
>>> from the test/ProblemList.txt when both JDK-8025996 and JDK-8024547
>>> have propagated through all necessary repositories.
>>>
>>> thanks,
>>> StefanK
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131011/62cfa0b7/attachment-0001.html
From stefan.karlsson at oracle.com Fri Oct 11 11:33:25 2013
From: stefan.karlsson at oracle.com (Stefan Karlsson)
Date: Fri, 11 Oct 2013 20:33:25 +0200
Subject: Review request: 7196801: NPG: Fix
java/lang/management/MemoryMXBean/LowMemoryTest2
In-Reply-To: <52583DB2.1040709@oracle.com>
References: <52583650.6060700@oracle.com> <52583905.8090403@oracle.com>
<52583D47.4000803@oracle.com> <52583DB2.1040709@oracle.com>
Message-ID: <52584475.4060201@oracle.com>
On 10/11/13 8:04 PM, Coleen Phillimore wrote:
>
> Looks good.
Thanks, Coleen.
StefanK
> Thanks!
> Coleen
>
> On 10/11/2013 2:02 PM, Stefan Karlsson wrote:
>> On 10/11/13 7:44 PM, Coleen Phillimore wrote:
>>>
>>> Stefan,
>>>
>>> I added a check about the count exceeding 1 000 000 because it
>>> causes the test to create an invalid class file. With the shell
>>> script changes, it won't happen but I would be happy if that check
>>> were there so no one ever has to debug this thinking it has a
>>> corrupted constant pool again.
>>
>> OK. I though that was old debugging left-overs.
>>
>> New webrev:
>> http://cr.openjdk.java.net/~stefank/7196801/webrev.01/
>>
>> thanks,
>> StefanK
>>
>>>
>>> Thanks,
>>> Coleen
>>>
>>> On 10/11/2013 1:33 PM, Stefan Karlsson wrote:
>>>> Please, review this test fix.
>>>>
>>>> http://cr.openjdk.java.net/~stefank/7196801/webrev.00/
>>>>
>>>> Most of the fix was implemented by Coleen, I've only done some
>>>> small tweaks and updated some comments.
>>>>
>>>> The fix depends on these changes:
>>>> JDK-8025996 Track metaspace usage when metaspace is expanded
>>>> JDK-8024547 MaxMetaspaceSize should limit the committed memory
>>>> used by the metaspaces
>>>>
>>>> Both of these changesets have been pushed to hotspot-gc and are
>>>> currently undergoing testing. LowMemoryTest2 can only be removed
>>>> from the test/ProblemList.txt when both JDK-8025996 and JDK-8024547
>>>> have propagated through all necessary repositories.
>>>>
>>>> thanks,
>>>> StefanK
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131011/bdeb5e5d/attachment.html
From staffan.larsen at oracle.com Fri Oct 11 11:32:06 2013
From: staffan.larsen at oracle.com (staffan.larsen at oracle.com)
Date: Fri, 11 Oct 2013 18:32:06 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131011183216.C939262F94@hg.openjdk.java.net>
Changeset: 539144972c1e
Author: sla
Date: 2013-10-11 14:08 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/539144972c1e
8024425: VM_HeapDumper doesn't put anonymous classes in the heap dump
Summary: Switched from using SystemDictionary to using ClassLoaderDataGraph to get the anonymous classes included.
Reviewed-by: sla, sspitsyn
Contributed-by: fredrik.arvidsson at oracle.com
! src/share/vm/services/heapDumper.cpp
Changeset: 301ece1880ad
Author: sla
Date: 2013-10-11 14:57 +0000
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/301ece1880ad
Merge
From alan.bateman at oracle.com Fri Oct 11 12:59:42 2013
From: alan.bateman at oracle.com (alan.bateman at oracle.com)
Date: Fri, 11 Oct 2013 19:59:42 +0000
Subject: hg: jdk8/tl/jdk: 8019526: (fs) Files.lines,
etc without Charset parameter
Message-ID: <20131011195954.DFDAC62FA3@hg.openjdk.java.net>
Changeset: 9632de07d963
Author: alanb
Date: 2013-10-11 20:47 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/9632de07d963
8019526: (fs) Files.lines, etc without Charset parameter
Reviewed-by: psandoz, henryjen
! src/share/classes/java/nio/file/Files.java
! test/java/nio/file/Files/BytesAndLines.java
! test/java/nio/file/Files/StreamTest.java
From daniel.daugherty at oracle.com Fri Oct 11 13:14:31 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Fri, 11 Oct 2013 14:14:31 -0600
Subject: code review round 0 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To:
References: <523D144E.4000002@oracle.com>
Message-ID: <52585C27.1000505@oracle.com>
Staffan,
Closing the loop on this comment from code review round 0.
I did this:
$ sh ./configure --with-debug-level=slowdebug --disable-zip-debug-info
$ make
with the latest version that I'm about to send out for code review
round 1. And I see this:
$ find build -name '*.dSYM' -print
build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/libjsig.dylib.dSYM
build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/libjvm.dylib.dSYM
build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/libsaproc.dylib.dSYM
build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/libjsig.dylib.dSYM
build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/libsaproc.dylib.dSYM
build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/server/libjvm.dylib.dSYM
build/macosx-x86_64-normal-server-slowdebug/jdk/lib/libjsig.dylib.dSYM
build/macosx-x86_64-normal-server-slowdebug/jdk/lib/libsaproc.dylib.dSYM
build/macosx-x86_64-normal-server-slowdebug/jdk/lib/server/libjvm.dylib.dSYM
$ find
build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/libjvm.dylib.dSYM
-type f -print
build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/libjvm.dylib.dSYM/Contents/Info.plist
build/macosx-x86_64-normal-server-slowdebug/hotspot/bsd_amd64_compiler2/debug/libjvm.dylib.dSYM/Contents/Resources/DWARF/libjvm.dylib
$ find
build/macosx-x86_64-normal-server-slowdebug/jdk/lib/server/libjvm.dylib.dSYM
-type f -print
build/macosx-x86_64-normal-server-slowdebug/jdk/lib/server/libjvm.dylib.dSYM/Contents/Resources/DWARF/libjvm.dylib
so the "flattening" problem is fixed.
Dan
On 9/30/13 7:13 AM, Staffan Larsen wrote:
> First: thanks for doing this work - it will make debugging on os x so much easier! I'm not done with the review, but here are a couple of comments so far.
>
> I tried running with:
>
> $ sh ./configure --with-debug-level=slowdebug --disable-zip-debug-info
> $ make
>
> which results in:
>
> ## Starting hotspot
> ...
> make[5]: *** No rule to make target `/Users/staffan/mercurial/hotspot-rt-jdk/build/macosx-x86_64-normal-server-slowdebug/hotspot/dist/jre/lib/amd64/libjsig.dylib.dSYM', needed by `generic_export'. Stop.
> make[4]: *** [export_debug] Error 2
> make[3]: *** [all_debug_universal] Error 2
> make[2]: *** [universal_debug] Error 2
> ...
>
>
> Another comment: There are some makefile logic for BSD, non-darwin platforms. Have you had a chance to test this logic? (hotspot/make/bsd/makefiles/vm.make)
>
>
> Nit: hotspot/make/bsd/makefiles/vm.make: L345, L356: wrong indentation.
>
>
> /Staffan
>
>
>
> On 21 sep 2013, at 05:36, Daniel D. Daugherty wrote:
>
>> Greetings,
>>
>> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
>> and ready for review:
>>
>> 7165611 implement Full Debug Symbols on MacOS X hotspot
>> https://bugs.openjdk.java.net/browse/JDK-7165611
>>
>> Here is the JDK8/HSX-25 webrev URL:
>>
>> OpenJDK: http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
>> Internal: http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>>
>> This webrev includes changes for the follow repos:
>>
>> jdk8
>> jdk8/hotspot
>> jdk8/jdk
>> jdk8/jdk/make/closed
>>
>> Once these changes are approved, I'm planning to push them to
>> RT_Baseline. From there, they can follow the normal path to
>> Main_Baseline and eventually JDK8.
>>
>> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
>> the other repos are necessary to support importing the .diz files from
>> the MacOS X 'hotspot' build into the forest build. I also fixed a few
>> FDS related errors in the magic incantations for the new build. This is
>> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
>> from Solaris. In other words, this is Frankenstein's monster...
>>
>> Thanks to Staffan Larsen for providing an initial set of changes
>> which I morphed into what you see here.
>>
>> Testing:
>> - JPRT HSX build and test on all platforms; verification of .diz
>> files in the MacOS X JPRT bundles
>> - JPRT JDK8 forest build and test on all platforms; verification of
>> .diz files in the MacOS X JPRT bundles
>> Note: In previous FDS changesets, I also did a standalone 'jdk'
>> repo build and test, but that no longer seems to work.
>>
>> As always, comments, questions and suggestions are welcome.
>>
>> Dan
>
From daniel.daugherty at oracle.com Fri Oct 11 13:27:29 2013
From: daniel.daugherty at oracle.com (Daniel D. Daugherty)
Date: Fri, 11 Oct 2013 14:27:29 -0600
Subject: code review round 1 for Full Debug Symbols on MacOS X hotspot
(7165611)
Message-ID: <52585F31.5040107@oracle.com>
Greetings,
I'm ready for code review round 1 of the FDS on MacOS X hotspot changes.
Below is the original code review round 0 invite (slightly edited for
clarity). Working on FDS is like pulling a thread on a sweater... so
there are four additional changed files along with more changes to
many of the files from round 0.
Here is the code review round 1 JDK8/HSX-25 webrev URL:
OpenJDK:
http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/1-jdk8/
Internal:
http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/1-jdk8/
Changes from code review round 0 to round 1:
root repo:
- add configure support for DSYMUTIL macro
hotspot repo:
- drop Minimal1 config support for FDS on MacOS X
- use DSYMUTIL macro instead of literal 'dsymutil'
- fix FASTDEBUG_CFLAGS typo and add USE_CLANG support
- STRIP is not used on MacOS X
- fix $(UNIVERSAL_COPY_LIST) rule
- refine install-dir function
jdk repo:
- add prep-target-dir, install-import-dir, and install-import-debuginfo
functions
- support importing .dSYM directories from hotspot
- create libjsig.dSYM symlink from VM specific directory to
the real location
Files changed from code review round 0 to round 1:
common/autoconf/generated-configure.sh
hotspot/make/Makefile
hotspot/make/bsd/makefiles/defs.make
hotspot/make/bsd/makefiles/dtrace.make
hotspot/make/bsd/makefiles/gcc.make
hotspot/make/bsd/makefiles/jsig.make
hotspot/make/bsd/makefiles/saproc.make
hotspot/make/bsd/makefiles/universal.gmk
hotspot/make/bsd/makefiles/vm.make
hotspot/make/defs.make
New files changed in code review round 1:
hotspot/make/bsd/makefiles/product.make
jdk/make/common/Defs.gmk
jdk/make/java/redist/Makefile
jdk/makefiles/Import.gmk
Additional bugs filed based on code review comments, testing and
just plain looking at the Makefiles:
8026280 implement Full Debug Symbols on MacOS X jdk
8026281 hotspot 'jdk6_or_earlier logic' for FDS needs to be removed
8026282 the '64' subdir logic in Makefiles might be removable
8026283 literal 'lipo' cmd uses in HotSpot makefiles
8026284 Minimal1 references/support should be removed from BSD/MacOS X
8026285 JPRT -buildenv ZIP_DEBUGINFO_FILES=0 no longer works
As always, comments, questions and suggestions are welcome.
Dan
> Greetings,
>
> I have the initial support for Full Debug Symbols (FDS) on MacOS X done
> and ready for review:
>
> 7165611 implement Full Debug Symbols on MacOS X hotspot
> https://bugs.openjdk.java.net/browse/JDK-7165611
>
> Here is the JDK8/HSX-25 webrev URL:
>
> OpenJDK:
http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
> Internal:
http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
>
> This webrev includes changes for the follow repos:
>
> jdk8
> jdk8/hotspot
> jdk8/jdk
>
> Once these changes are approved, I'm planning to push them to
> RT_Baseline. From there, they can follow the normal path to
> Main_Baseline and eventually JDK8.
>
> This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
> the other repos are necessary to support importing the .diz files from
> the MacOS X 'hotspot' build into the forest build. I also fixed a few
> FDS related errors in the magic incantations for the new build. This is
> mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
> from Solaris. In other words, this is Frankenstein's monster...
>
> Thanks to Staffan Larsen for providing an initial set of changes
> which I morphed into what you see here.
>
> Testing:
> - JPRT HSX build and test on all platforms; verification of .diz
> files in the MacOS X JPRT bundles
> - JPRT JDK8 forest build and test on all platforms; verification of
> .diz files in the MacOS X JPRT bundles
> Note: In previous FDS changesets, I also did a standalone 'jdk'
> repo build and test, but that no longer seems to work.
>
> As always, comments, questions and suggestions are welcome.
>
> Dan
From coleen.phillimore at oracle.com Fri Oct 11 13:58:39 2013
From: coleen.phillimore at oracle.com (coleen.phillimore at oracle.com)
Date: Fri, 11 Oct 2013 20:58:39 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131011205849.E701862FA7@hg.openjdk.java.net>
Changeset: 28ca974cc21a
Author: coleenp
Date: 2013-10-11 11:23 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/28ca974cc21a
8022592: assert at constantTag.cpp:57: ShouldNotReachHere()
Summary: more missing cases for JVM_CONSTANT_Method{Handle,Type}InError
Reviewed-by: hseigel, dcubed
! src/share/vm/oops/constantPool.cpp
! src/share/vm/utilities/constantTag.cpp
! src/share/vm/utilities/constantTag.hpp
Changeset: 26ae62bc26c4
Author: coleenp
Date: 2013-10-11 15:04 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/26ae62bc26c4
Merge
From vincent.x.ryan at oracle.com Fri Oct 11 12:47:42 2013
From: vincent.x.ryan at oracle.com (vincent.x.ryan at oracle.com)
Date: Fri, 11 Oct 2013 19:47:42 +0000
Subject: hg: jdk8/tl/jdk: 2 new changesets
Message-ID: <20131011194840.ADE9462FA1@hg.openjdk.java.net>
Changeset: d23247aa7462
Author: vinnie
Date: 2013-10-11 20:35 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d23247aa7462
8026301: DomainKeyStore doesn't cleanup correctly when storing to keystore
Reviewed-by: mullan
! src/share/classes/sun/security/provider/DomainKeyStore.java
Changeset: 94493b5800bb
Author: vinnie
Date: 2013-10-11 20:47 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/94493b5800bb
Merge
From robert.field at oracle.com Fri Oct 11 15:22:03 2013
From: robert.field at oracle.com (robert.field at oracle.com)
Date: Fri, 11 Oct 2013 22:22:03 +0000
Subject: hg: jdk8/tl/jdk: 8026213: Reflection support for private interface
methods
Message-ID: <20131011222240.638D362FAB@hg.openjdk.java.net>
Changeset: 4561460bf570
Author: rfield
Date: 2013-10-11 15:21 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4561460bf570
8026213: Reflection support for private interface methods
Reviewed-by: forax, psandoz, dholmes, jfranck
Contributed-by: karen.kinnear at oracle.com
! src/share/classes/sun/reflect/AccessorGenerator.java
! src/share/classes/sun/reflect/MethodAccessorGenerator.java
+ test/java/lang/reflect/Method/invoke/TestPrivateInterfaceMethodReflect.java
From mike.duigou at oracle.com Fri Oct 11 15:31:33 2013
From: mike.duigou at oracle.com (mike.duigou at oracle.com)
Date: Fri, 11 Oct 2013 22:31:33 +0000
Subject: hg: jdk8/tl: 8025796: hgforest.sh could trigger unbuffered output
from hg without complicated machinations
Message-ID: <20131011223133.8194662FAC@hg.openjdk.java.net>
Changeset: 3f9873789d44
Author: mduigou
Date: 2013-10-11 15:20 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/rev/3f9873789d44
8025796: hgforest.sh could trigger unbuffered output from hg without complicated machinations
Reviewed-by: mduigou
Contributed-by: Dmitry Samersoff
! common/bin/hgforest.sh
From harold.seigel at oracle.com Fri Oct 11 19:18:09 2013
From: harold.seigel at oracle.com (harold.seigel at oracle.com)
Date: Sat, 12 Oct 2013 02:18:09 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 2 new changesets
Message-ID: <20131012021815.B564562FC8@hg.openjdk.java.net>
Changeset: 0db3ba3f6870
Author: hseigel
Date: 2013-10-11 15:33 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/0db3ba3f6870
8026041: JVM crashes with assert "assert(is_updated()) failed: must not be clear" with -XX:+PrintGCApplicationConcurrentTime in -Xcomp mode
Summary: Prior to printing the time interval in RuntimeService::record_safepoint_begin(), check first that VM initialization is complete.
Reviewed-by: coleenp, dholmes, sla, ctornqvi
Contributed-by: lois.foltan at oracle.com
! src/share/vm/services/runtimeService.cpp
Changeset: df268195b0ea
Author: hseigel
Date: 2013-10-11 17:08 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/df268195b0ea
Merge
From calvin.cheung at oracle.com Fri Oct 11 21:21:47 2013
From: calvin.cheung at oracle.com (calvin.cheung at oracle.com)
Date: Sat, 12 Oct 2013 04:21:47 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 18 new changesets
Message-ID: <20131012042326.B749762FCD@hg.openjdk.java.net>
Changeset: ebfa5793d349
Author: katleman
Date: 2013-10-02 13:26 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/ebfa5793d349
Added tag jdk8-b110 for changeset 6209b0ed51c0
! .hgtags
Changeset: 562a3d356de6
Author: amurillo
Date: 2013-10-04 14:10 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/562a3d356de6
Merge
- test/testlibrary/AssertsTest.java
- test/testlibrary/OutputAnalyzerReportingTest.java
- test/testlibrary/OutputAnalyzerTest.java
Changeset: f6962730bbde
Author: amurillo
Date: 2013-10-04 14:10 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/f6962730bbde
Added tag hs25-b53 for changeset 562a3d356de6
! .hgtags
Changeset: deec468baebd
Author: amurillo
Date: 2013-10-04 14:19 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/deec468baebd
8025859: new hotspot build - hs25-b54
Reviewed-by: jcoomes
! make/hotspot_version
Changeset: c01f4910f5f5
Author: ccheung
Date: 2013-10-10 13:25 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/c01f4910f5f5
Merge
Changeset: 9b4d0569f2f4
Author: jwilhelm
Date: 2013-10-03 21:36 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9b4d0569f2f4
8025852: Remove unnecessary setters in collector policy classes
Summary: Use instance variables directly within the collector policy classes and remove unused setters.
Reviewed-by: tschatzl, jcoomes
! src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
! src/share/vm/memory/collectorPolicy.cpp
! src/share/vm/memory/collectorPolicy.hpp
Changeset: 087f02e22fc2
Author: jwilhelm
Date: 2013-10-04 22:08 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/087f02e22fc2
8025854: Use "young gen" instead of "eden"
Summary: Changed a few descriptions and variable names to young gen.
Reviewed-by: tschatzl, jcoomes
! src/share/vm/memory/collectorPolicy.cpp
! src/share/vm/runtime/arguments.cpp
Changeset: 263f2c796d6c
Author: stefank
Date: 2013-10-05 10:14 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/263f2c796d6c
8024838: Significant slowdown due to transparent huge pages
Summary: Don't turn on transparent huge pages (-XX:+UseTransparentHugePages) unless explicitly specified on the command line. This has the effect that large pages are never turned on Linux unless the user has explicitly enabled any of the large pages flags: -XX:+UseLargePages, -XX:+UseTransparentHugePages, -XX:+UseHugeTLBFS, and -XX:+UseSHM.
Reviewed-by: jwilhelm, tschatzl, brutisso
! src/os/linux/vm/globals_linux.hpp
! src/os/linux/vm/os_linux.cpp
+ test/runtime/memory/LargePages/TestLargePagesFlags.java
Changeset: 8618e0d7735b
Author: stefank
Date: 2013-10-05 08:01 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/8618e0d7735b
Merge
Changeset: 04b18a42c2f3
Author: mgerdin
Date: 2013-10-04 13:33 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/04b18a42c2f3
8025526: VirtualSpace should support per-instance disabling of large pages
Summary: Add a new initialization function to VirtualSpace which allows the caller to override the max commit granularity.
Reviewed-by: stefank, ehelin, tschatzl
! src/share/vm/runtime/virtualspace.cpp
! src/share/vm/runtime/virtualspace.hpp
Changeset: 69944b868a32
Author: mgerdin
Date: 2013-10-08 17:35 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/69944b868a32
8014555: G1: Memory ordering problem with Conc refinement and card marking
Summary: Add a StoreLoad barrier in the G1 post-barrier to fix a race with concurrent refinement. Also-reviewed-by: martin.doerr at sap.com
Reviewed-by: iveresov, tschatzl, brutisso, roland, kvn
! src/cpu/sparc/vm/c1_Runtime1_sparc.cpp
! src/cpu/sparc/vm/macroAssembler_sparc.cpp
! src/cpu/x86/vm/c1_Runtime1_x86.cpp
! src/cpu/x86/vm/macroAssembler_x86.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.cpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.hpp
! src/share/vm/gc_implementation/g1/ptrQueue.hpp
! src/share/vm/opto/graphKit.cpp
Changeset: b4d8a3d4db73
Author: tamao
Date: 2013-10-09 11:18 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/b4d8a3d4db73
8010506: Typos and errors in descriptions of vm options in globals.hpp
Summary: Fix typos and errors in descriptions of vm options in globals.hpp
Reviewed-by: jmasa, jwilhelm
! src/share/vm/runtime/globals.hpp
Changeset: 82af7d7a0128
Author: tschatzl
Date: 2013-10-09 10:57 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/82af7d7a0128
8003420: NPG: make new GC root for pd_set
Summary: Move protection domain oops from system dictionary entries into a seperate set; the system dictionary references entries in that set now. This allows fast iteration during non-classunloading garbage collection. Implementation based on initial prototype from Ioi Lam (iklam).
Reviewed-by: coleenp, iklam
+ agent/src/share/classes/sun/jvm/hotspot/memory/ProtectionDomainCacheEntry.java
! agent/src/share/classes/sun/jvm/hotspot/memory/ProtectionDomainEntry.java
! src/share/vm/classfile/dictionary.cpp
! src/share/vm/classfile/dictionary.hpp
! src/share/vm/classfile/systemDictionary.cpp
! src/share/vm/runtime/vmStructs.cpp
! src/share/vm/utilities/globalDefinitions.hpp
Changeset: 85c1ca43713f
Author: stefank
Date: 2013-10-07 15:51 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/85c1ca43713f
8024547: MaxMetaspaceSize should limit the committed memory used by the metaspaces
Reviewed-by: brutisso, jmasa, coleenp
! src/share/vm/gc_implementation/shared/vmGCOperations.hpp
! src/share/vm/gc_interface/collectedHeap.cpp
! src/share/vm/gc_interface/collectedHeap.hpp
! src/share/vm/memory/collectorPolicy.cpp
! src/share/vm/memory/filemap.hpp
! src/share/vm/memory/metaspace.cpp
! src/share/vm/memory/metaspace.hpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
Changeset: a6414751d537
Author: stefank
Date: 2013-10-07 15:51 +0200
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/a6414751d537
8025996: Track metaspace usage when metaspace is expanded
Reviewed-by: coleenp, ehelin
! src/share/vm/memory/metaspace.cpp
! src/share/vm/services/memoryService.hpp
Changeset: aa6f2ea19d8f
Author: jcoomes
Date: 2013-10-11 08:27 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/aa6f2ea19d8f
Merge
! src/os/linux/vm/os_linux.cpp
! src/share/vm/classfile/dictionary.cpp
! src/share/vm/classfile/dictionary.hpp
! src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
! src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.cpp
! src/share/vm/opto/graphKit.cpp
! src/share/vm/runtime/arguments.cpp
! src/share/vm/runtime/globals.hpp
! src/share/vm/runtime/vmStructs.cpp
! src/share/vm/utilities/globalDefinitions.hpp
Changeset: 41459da469ae
Author: ccheung
Date: 2013-10-11 18:23 -0700
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/41459da469ae
Merge
Changeset: 83dbf427fedd
Author: ccheung
Date: 2013-10-11 22:22 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/83dbf427fedd
Merge
From dmitry.samersoff at oracle.com Sat Oct 12 04:25:58 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Sat, 12 Oct 2013 15:25:58 +0400
Subject: RR(S): JDK-8025812 tmtools/jmap/heap_config tests fail on Linux-ia32
because it 'Can't attach to the core file'
Message-ID: <525931C6.8050607@oracle.com>
Hi Everybody,
Please review the fix
http://cr.openjdk.java.net/~dsamersoff/JDK-8025812/webrev.01/
The value of p_memsz filed of elf header of LOAD section inside coredump
is rounded up to page size. So round up corresponding value read from
the header of library it self.
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From dmitry.samersoff at oracle.com Sat Oct 12 04:40:01 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Sat, 12 Oct 2013 15:40:01 +0400
Subject: SA ps_core mixing p_filesz and p_memsz in multiple places
Message-ID: <52593511.7030908@oracle.com>
Hi Everybody,
SA ps_proc code mixing two different fileds of Elf header p_filesz and
p_memsz.
Fortunately in most cases they contains the same value but simetimes not.
Do you have any background ?
I plan to file a bug and clean this up.
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From kellyohair at gmail.com Sat Oct 12 08:43:21 2013
From: kellyohair at gmail.com (O'Hair Kelly)
Date: Sat, 12 Oct 2013 08:43:21 -0700
Subject: SA ps_core mixing p_filesz and p_memsz in multiple places
In-Reply-To: <52593511.7030908@oracle.com>
References: <52593511.7030908@oracle.com>
Message-ID:
Ghosts from the past. ;^)
This may help: http://www.sco.com/developers/gabi/latest/ch5.pheader.html
p_memsz will always be equal to or greater than p_filesz, the extra space is usually null bytes and I think would represent uninitialized static memory,
but with a core file means that part of memory is not available or something like that.
These fields can not be assumed to be the same all the time.
Good Luck. . ..... . . . I will now fade back into my ghostly realm ... ;^)
-kto
On Oct 12, 2013, at 4:40 AM, Dmitry Samersoff wrote:
> Hi Everybody,
>
> SA ps_proc code mixing two different fileds of Elf header p_filesz and
> p_memsz.
>
> Fortunately in most cases they contains the same value but simetimes not.
>
> Do you have any background ?
>
>
> I plan to file a bug and clean this up.
>
>
> --
> Dmitry Samersoff
> Oracle Java development team, Saint Petersburg, Russia
> * I would love to change the world, but they won't give me the sources.
From dmitry.samersoff at oracle.com Sat Oct 12 12:08:41 2013
From: dmitry.samersoff at oracle.com (Dmitry Samersoff)
Date: Sat, 12 Oct 2013 23:08:41 +0400
Subject: SA ps_core mixing p_filesz and p_memsz in multiple places
In-Reply-To:
References: <52593511.7030908@oracle.com>
Message-ID: <52599E39.2070406@oracle.com>
Kelly,
Glad to hear your voice and thank you for the info!
-Dmitry
On 2013-10-12 19:43, O'Hair Kelly wrote:
> Ghosts from the past. ;^)
>
> This may help: http://www.sco.com/developers/gabi/latest/ch5.pheader.html
>
> p_memsz will always be equal to or greater than p_filesz, the extra space is usually null bytes and I think would represent uninitialized static memory,
> but with a core file means that part of memory is not available or something like that.
> These fields can not be assumed to be the same all the time.
>
> Good Luck. . ..... . . . I will now fade back into my ghostly realm ... ;^)
>
>
> -kto
>
> On Oct 12, 2013, at 4:40 AM, Dmitry Samersoff wrote:
>
>> Hi Everybody,
>>
>> SA ps_proc code mixing two different fileds of Elf header p_filesz and
>> p_memsz.
>>
>> Fortunately in most cases they contains the same value but simetimes not.
>>
>> Do you have any background ?
>>
>>
>> I plan to file a bug and clean this up.
>>
>>
>> --
>> Dmitry Samersoff
>> Oracle Java development team, Saint Petersburg, Russia
>> * I would love to change the world, but they won't give me the sources.
>
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
From harold.seigel at oracle.com Sat Oct 12 12:30:49 2013
From: harold.seigel at oracle.com (harold.seigel at oracle.com)
Date: Sat, 12 Oct 2013 19:30:49 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8025942: os::Bsd::available_memory()
needs implementation
Message-ID: <20131012193055.85DCE62FDB@hg.openjdk.java.net>
Changeset: 3e265ce4d2dd
Author: hseigel
Date: 2013-10-12 13:09 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/3e265ce4d2dd
8025942: os::Bsd::available_memory() needs implementation
Summary: Implement using the host_statistics64() api.
Reviewed-by: dsamersoff, morris, dholmes, coleenp, hseigel, dcubed
Contributed-by: gerard.ziemski at oracle.com
! src/os/bsd/vm/os_bsd.cpp
From harold.seigel at oracle.com Sat Oct 12 14:02:23 2013
From: harold.seigel at oracle.com (harold.seigel at oracle.com)
Date: Sat, 12 Oct 2013 21:02:23 +0000
Subject: hg: hsx/hotspot-rt/hotspot: 8024667: VM crashes with "assert(method()
!= NULL) failed: must have set method"
Message-ID: <20131012210230.7E56C62FDC@hg.openjdk.java.net>
Changeset: d37a0525c0fe
Author: hseigel
Date: 2013-10-12 15:39 -0400
URL: http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/d37a0525c0fe
8024667: VM crashes with "assert(method() != NULL) failed: must have set method"
Summary: Check if data is in shared spaces before deallocating it.
Reviewed-by: coleenp, dcubed
! src/share/vm/memory/metadataFactory.hpp
! src/share/vm/oops/instanceKlass.cpp
From david.holmes at oracle.com Sun Oct 13 18:57:53 2013
From: david.holmes at oracle.com (David Holmes)
Date: Mon, 14 Oct 2013 11:57:53 +1000
Subject: code review round 1 for Full Debug Symbols on MacOS X hotspot
(7165611)
In-Reply-To: <52585F31.5040107@oracle.com>
References: <52585F31.5040107@oracle.com>
Message-ID: <525B4FA1.7020109@oracle.com>
Hi Dan,
Only further comment I have, and it may well be deferred for future
work, is that we should be able to abstract away the actual "extension"
used for the "debuginfo" file so that we don't need macosx conditionals
as much eg one:
if macosx
DEBUGINFO_EXTENSION=dSYM
else
DEBUGINFO_EXTENSION=debuginfo
endif
then eg:
JSIG_DEBUGINFO := $(strip $(wildcard
$(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.$DEBUGINFO_EXTENSION)
\
$(wildcard
$(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) )
Hmm second comment - I don't see a .m4 file change that corresponds to
the DSYMUTIL configure change ??
Thanks,
David
On 12/10/2013 6:27 AM, Daniel D. Daugherty wrote:
> Greetings,
>
> I'm ready for code review round 1 of the FDS on MacOS X hotspot changes.
> Below is the original code review round 0 invite (slightly edited for
> clarity). Working on FDS is like pulling a thread on a sweater... so
> there are four additional changed files along with more changes to
> many of the files from round 0.
>
> Here is the code review round 1 JDK8/HSX-25 webrev URL:
>
> OpenJDK:
> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/1-jdk8/
> Internal:
> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/1-jdk8/
>
> Changes from code review round 0 to round 1:
>
> root repo:
> - add configure support for DSYMUTIL macro
>
> hotspot repo:
> - drop Minimal1 config support for FDS on MacOS X
> - use DSYMUTIL macro instead of literal 'dsymutil'
> - fix FASTDEBUG_CFLAGS typo and add USE_CLANG support
> - STRIP is not used on MacOS X
> - fix $(UNIVERSAL_COPY_LIST) rule
> - refine install-dir function
>
> jdk repo:
> - add prep-target-dir, install-import-dir, and
> install-import-debuginfo
> functions
> - support importing .dSYM directories from hotspot
> - create libjsig.dSYM symlink from VM specific directory to
> the real location
>
> Files changed from code review round 0 to round 1:
>
> common/autoconf/generated-configure.sh
> hotspot/make/Makefile
> hotspot/make/bsd/makefiles/defs.make
> hotspot/make/bsd/makefiles/dtrace.make
> hotspot/make/bsd/makefiles/gcc.make
> hotspot/make/bsd/makefiles/jsig.make
> hotspot/make/bsd/makefiles/saproc.make
> hotspot/make/bsd/makefiles/universal.gmk
> hotspot/make/bsd/makefiles/vm.make
> hotspot/make/defs.make
>
> New files changed in code review round 1:
>
> hotspot/make/bsd/makefiles/product.make
> jdk/make/common/Defs.gmk
> jdk/make/java/redist/Makefile
> jdk/makefiles/Import.gmk
>
> Additional bugs filed based on code review comments, testing and
> just plain looking at the Makefiles:
>
> 8026280 implement Full Debug Symbols on MacOS X jdk
> 8026281 hotspot 'jdk6_or_earlier logic' for FDS needs to be removed
> 8026282 the '64' subdir logic in Makefiles might be removable
> 8026283 literal 'lipo' cmd uses in HotSpot makefiles
> 8026284 Minimal1 references/support should be removed from BSD/MacOS X
> 8026285 JPRT -buildenv ZIP_DEBUGINFO_FILES=0 no longer works
>
> As always, comments, questions and suggestions are welcome.
>
> Dan
>
> > Greetings,
> >
> > I have the initial support for Full Debug Symbols (FDS) on MacOS X done
> > and ready for review:
> >
> > 7165611 implement Full Debug Symbols on MacOS X hotspot
> > https://bugs.openjdk.java.net/browse/JDK-7165611
> >
> > Here is the JDK8/HSX-25 webrev URL:
> >
> > OpenJDK:
> http://cr.openjdk.java.net/~dcubed/fds_revamp/7165611-webrev/0-jdk8/
> > Internal:
> http://javaweb.us.oracle.com/~ddaugher/fds_revamp/7165611-webrev/0-jdk8/
> >
> > This webrev includes changes for the follow repos:
> >
> > jdk8
> > jdk8/hotspot
> > jdk8/jdk
> >
> > Once these changes are approved, I'm planning to push them to
> > RT_Baseline. From there, they can follow the normal path to
> > Main_Baseline and eventually JDK8.
> >
> > This work enables FDS on MacOS X for the 'hotspot' repo; the changes in
> > the other repos are necessary to support importing the .diz files from
> > the MacOS X 'hotspot' build into the forest build. I also fixed a few
> > FDS related errors in the magic incantations for the new build. This is
> > mostly a port from Linux -> MacOS X/BSD with the dtrace changes ported
> > from Solaris. In other words, this is Frankenstein's monster...
> >
> > Thanks to Staffan Larsen for providing an initial set of changes
> > which I morphed into what you see here.
> >
> > Testing:
> > - JPRT HSX build and test on all platforms; verification of .diz
> > files in the MacOS X JPRT bundles
> > - JPRT JDK8 forest build and test on all platforms; verification of
> > .diz files in the MacOS X JPRT bundles
> > Note: In previous FDS changesets, I also did a standalone 'jdk'
> > repo build and test, but that no longer seems to work.
> >
> > As always, comments, questions and suggestions are welcome.
> >
> > Dan
From david.holmes at oracle.com Sun Oct 13 19:14:42 2013
From: david.holmes at oracle.com (David Holmes)
Date: Mon, 14 Oct 2013 12:14:42 +1000
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
In-Reply-To: <24313344-3E61-4FF2-BBD0-6918B0DD4C0C@oracle.com>
References: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com>
<5257CAB7.4060303@oracle.com> <5257D075.1040104@oracle.com>
<5257DD3D.4020307@oracle.com>
<24313344-3E61-4FF2-BBD0-6918B0DD4C0C@oracle.com>
Message-ID: <525B5392.1040609@oracle.com>
Looks okay to me.
Thanks,
David
On 11/10/2013 10:32 PM, Peter Allwin wrote:
> Thanks for the feedback, good points!
>
> I've put an updated webrev here:
>
> http://cr.openjdk.java.net/~allwin/8004183/webrev.01/
>
> Changes:
> boolean instead of Boolean
> no longer sets worker as daemon
>
> Regards,
> /peter
>
> On Oct 11, 2013, at 1:13 PM, David Holmes wrote:
>
>> On 11/10/2013 8:18 PM, Daniel Fuchs wrote:
>>> Hi Peter,
>>>
>>> Looks good to me - but you might want to use 'boolean' for
>>> isRunning rather than 'Boolean'.
>>
>> Definitely!
>>
>>> Joining on the daemon thread is probably not necessary,
>>> but there's no harm in it (the important part being
>>> isRunning=false + s.close()).
>>
>> It is pointless having the thread be a daemon now. If running in the same VM as anything else joining will ensure this test is cleaned up before the next test commences.
>>
>> David
>> -----
>>
>>> best regards,
>>>
>>> -- daniel (not a reviewer)
>>>
>>> On 10/11/13 11:53 AM, shanliang wrote:
>>>> Looks good to me.
>>>>
>>>> Shanliang
>>>>
>>>>
>>>> Peter Allwin wrote:
>>>>> Hello!
>>>>>
>>>>> Looking for reviews of this fix where a jmxremote test left a worker
>>>>> thread running after completion. Fix is to flag the thread to finish
>>>>> and join before test method exit.
>>>>>
>>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8004183
>>>>> cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
>>>>>
>>>>> Thanks!
>>>>> /peter
>>>>
>>>
>
From xuelei.fan at oracle.com Sun Oct 13 21:12:08 2013
From: xuelei.fan at oracle.com (xuelei.fan at oracle.com)
Date: Mon, 14 Oct 2013 04:12:08 +0000
Subject: hg: jdk8/tl/jdk: 8026119: Regression test DHEKeySizing.java failing
intermittently
Message-ID: <20131014041308.02D8E62FFD@hg.openjdk.java.net>
Changeset: fb202a8e83c9
Author: xuelei
Date: 2013-10-13 21:10 -0700
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fb202a8e83c9
8026119: Regression test DHEKeySizing.java failing intermittently
Reviewed-by: weijun
! test/sun/security/ssl/com/sun/net/ssl/internal/ssl/DHKeyExchange/DHEKeySizing.java
From staffan.larsen at oracle.com Mon Oct 14 00:42:28 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Mon, 14 Oct 2013 09:42:28 +0200
Subject: Review request: 7196801: NPG: Fix
java/lang/management/MemoryMXBean/LowMemoryTest2
In-Reply-To: <52583D47.4000803@oracle.com>
References: <52583650.6060700@oracle.com> <52583905.8090403@oracle.com>
<52583D47.4000803@oracle.com>
Message-ID: <8A5A63F3-597C-4894-9A12-83069C239426@oracle.com>
Looks good! But I wonder why there is a shell script involved. Couldn't this be just a straightforward java file with several @run tags?
Thanks,
/Staffan
On 11 okt 2013, at 20:02, Stefan Karlsson wrote:
> On 10/11/13 7:44 PM, Coleen Phillimore wrote:
>>
>> Stefan,
>>
>> I added a check about the count exceeding 1 000 000 because it causes the test to create an invalid class file. With the shell script changes, it won't happen but I would be happy if that check were there so no one ever has to debug this thinking it has a corrupted constant pool again.
>
> OK. I though that was old debugging left-overs.
>
> New webrev:
> http://cr.openjdk.java.net/~stefank/7196801/webrev.01/
>
> thanks,
> StefanK
>
>>
>> Thanks,
>> Coleen
>>
>> On 10/11/2013 1:33 PM, Stefan Karlsson wrote:
>>> Please, review this test fix.
>>>
>>> http://cr.openjdk.java.net/~stefank/7196801/webrev.00/
>>>
>>> Most of the fix was implemented by Coleen, I've only done some small tweaks and updated some comments.
>>>
>>> The fix depends on these changes:
>>> JDK-8025996 Track metaspace usage when metaspace is expanded
>>> JDK-8024547 MaxMetaspaceSize should limit the committed memory used by the metaspaces
>>>
>>> Both of these changesets have been pushed to hotspot-gc and are currently undergoing testing. LowMemoryTest2 can only be removed from the test/ProblemList.txt when both JDK-8025996 and JDK-8024547 have propagated through all necessary repositories.
>>>
>>> thanks,
>>> StefanK
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131014/c077c336/attachment.html
From staffan.larsen at oracle.com Mon Oct 14 00:49:20 2013
From: staffan.larsen at oracle.com (Staffan Larsen)
Date: Mon, 14 Oct 2013 09:49:20 +0200
Subject: RR(S): JDK-8025812 tmtools/jmap/heap_config tests fail on
Linux-ia32 because it 'Can't attach to the core file'
In-Reply-To: <525931C6.8050607@oracle.com>
References: <525931C6.8050607@oracle.com>
Message-ID: <4D55BF19-5B5A-4DD1-BC12-E96EEC625438@oracle.com>
The fix looks good, but I have a problem with the ROUNDUP_PAGE macro. First, I don't like having macros defined in the middle of a method. Second, the definition of the macro includes the value of a local variable which is a bit hairy. Can't you just ROUNDUP directly in the four places it's needed? I think it would make for more readable code.
nit on line 743: filed -> field
Thanks,
/Staffan
On 12 okt 2013, at 13:25, Dmitry Samersoff wrote:
> Hi Everybody,
>
> Please review the fix
>
> http://cr.openjdk.java.net/~dsamersoff/JDK-8025812/webrev.01/
>
> The value of p_memsz filed of elf header of LOAD section inside coredump
> is rounded up to page size. So round up corresponding value read from
> the header of library it self.
>
> --
> Dmitry Samersoff
> Oracle Java development team, Saint Petersburg, Russia
> * I would love to change the world, but they won't give me the sources.
From jaroslav.bachorik at oracle.com Mon Oct 14 00:58:13 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Mon, 14 Oct 2013 09:58:13 +0200
Subject: RFR: 8004183:
test/sun/management/jmxremote/LocalRMIServerSocketFactoryTest.java
doesn't clean-up
In-Reply-To: <24313344-3E61-4FF2-BBD0-6918B0DD4C0C@oracle.com>
References: <19DA6A49-4316-4626-9C3D-E1D342F92CB4@oracle.com> <5257CAB7.4060303@oracle.com>
<5257D075.1040104@oracle.com> <5257DD3D.4020307@oracle.com>
<24313344-3E61-4FF2-BBD0-6918B0DD4C0C@oracle.com>
Message-ID: <525BA415.2000702@oracle.com>
Looks fine.
-JB-
On 11.10.2013 14:32, Peter Allwin wrote:
> Thanks for the feedback, good points!
>
> I've put an updated webrev here:
>
> http://cr.openjdk.java.net/~allwin/8004183/webrev.01/
>
> Changes:
> boolean instead of Boolean
> no longer sets worker as daemon
>
> Regards,
> /peter
>
> On Oct 11, 2013, at 1:13 PM, David Holmes wrote:
>
>> On 11/10/2013 8:18 PM, Daniel Fuchs wrote:
>>> Hi Peter,
>>>
>>> Looks good to me - but you might want to use 'boolean' for
>>> isRunning rather than 'Boolean'.
>>
>> Definitely!
>>
>>> Joining on the daemon thread is probably not necessary,
>>> but there's no harm in it (the important part being
>>> isRunning=false + s.close()).
>>
>> It is pointless having the thread be a daemon now. If running in the same VM as anything else joining will ensure this test is cleaned up before the next test commences.
>>
>> David
>> -----
>>
>>> best regards,
>>>
>>> -- daniel (not a reviewer)
>>>
>>> On 10/11/13 11:53 AM, shanliang wrote:
>>>> Looks good to me.
>>>>
>>>> Shanliang
>>>>
>>>>
>>>> Peter Allwin wrote:
>>>>> Hello!
>>>>>
>>>>> Looking for reviews of this fix where a jmxremote test left a worker
>>>>> thread running after completion. Fix is to flag the thread to finish
>>>>> and join before test method exit.
>>>>>
>>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8004183
>>>>> cr: http://cr.openjdk.java.net/~allwin/8004183/webrev.00
>>>>>
>>>>> Thanks!
>>>>> /peter
>>>>
>>>
>
From daniel.fuchs at oracle.com Mon Oct 14 01:45:52 2013
From: daniel.fuchs at oracle.com (daniel.fuchs at oracle.com)
Date: Mon, 14 Oct 2013 08:45:52 +0000
Subject: hg: jdk8/tl/jdk: 8024704: Improve API documentation of ClassLoader
and ServiceLoader with respect to enumeration of resources.
Message-ID: <20131014084627.8B1D662361@hg.openjdk.java.net>
Changeset: 9f8bfdd99129
Author: dfuchs
Date: 2013-10-14 10:42 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/9f8bfdd99129
8024704: Improve API documentation of ClassLoader and ServiceLoader with respect to enumeration of resources.
Reviewed-by: alanb, psandoz, mchung
! src/share/classes/java/lang/ClassLoader.java
! src/share/classes/java/util/ServiceLoader.java
From alan.bateman at oracle.com Mon Oct 14 03:22:51 2013
From: alan.bateman at oracle.com (alan.bateman at oracle.com)
Date: Mon, 14 Oct 2013 10:22:51 +0000
Subject: hg: jdk8/tl/jaxp: 8008733: Psr:perf:osb performance regression (18%)
in wss_bodyenc
Message-ID: <20131014102257.8AE596236F@hg.openjdk.java.net>
Changeset: de8c803d4958
Author: aefimov
Date: 2013-10-13 13:50 +0400
URL: http://hg.openjdk.java.net/jdk8/tl/jaxp/rev/de8c803d4958
8008733: Psr:perf:osb performance regression (18%) in wss_bodyenc
Reviewed-by: alanb, shade
! src/com/sun/org/apache/xpath/internal/XPathContext.java
From chris.hegarty at oracle.com Mon Oct 14 03:49:03 2013
From: chris.hegarty at oracle.com (chris.hegarty at oracle.com)
Date: Mon, 14 Oct 2013 10:49:03 +0000
Subject: hg: jdk8/tl/jdk: 8023555: test/java/net/Socks/SocksProxyVersion.java
fails when machine name is localhost
Message-ID: <20131014104948.C8DD262372@hg.openjdk.java.net>
Changeset: 077237e4613f
Author: tyan
Date: 2013-10-14 11:47 +0100
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/077237e4613f
8023555: test/java/net/Socks/SocksProxyVersion.java fails when machine name is localhost
Reviewed-by: chegar, alanb
! test/java/net/Socks/SocksProxyVersion.java
From stefan.karlsson at oracle.com Mon Oct 14 05:15:57 2013
From: stefan.karlsson at oracle.com (Stefan Karlsson)
Date: Mon, 14 Oct 2013 14:15:57 +0200
Subject: Review request: 7196801: NPG: Fix
java/lang/management/MemoryMXBean/LowMemoryTest2
In-Reply-To: <8A5A63F3-597C-4894-9A12-83069C239426@oracle.com>
References: <52583650.6060700@oracle.com> <52583905.8090403@oracle.com>
<52583D47.4000803@oracle.com>
<8A5A63F3-597C-4894-9A12-83069C239426@oracle.com>
Message-ID: <525BE07D.40607@oracle.com>
On 2013-10-14 09:42, Staffan Larsen wrote:
> Looks good!
Thanks, Staffan.
> But I wonder why there is a shell script involved. Couldn't this be
> just a straightforward java file with several @run tags?
Probably. I'd rather not change that now.
thanks,
StefanK
>
> Thanks,
> /Staffan
>
> On 11 okt 2013, at 20:02, Stefan Karlsson > wrote:
>
>> On 10/11/13 7:44 PM, Coleen Phillimore wrote:
>>>
>>> Stefan,
>>>
>>> I added a check about the count exceeding 1 000 000 because it
>>> causes the test to create an invalid class file. With the shell
>>> script changes, it won't happen but I would be happy if that check
>>> were there so no one ever has to debug this thinking it has a
>>> corrupted constant pool again.
>>
>> OK. I though that was old debugging left-overs.
>>
>> New webrev:
>> http://cr.openjdk.java.net/~stefank/7196801/webrev.01/
>>
>> thanks,
>> StefanK
>>
>>>
>>> Thanks,
>>> Coleen
>>>
>>> On 10/11/2013 1:33 PM, Stefan Karlsson wrote:
>>>> Please, review this test fix.
>>>>
>>>> http://cr.openjdk.java.net/~stefank/7196801/webrev.00/
>>>>
>>>> Most of the fix was implemented by Coleen, I've only done some
>>>> small tweaks and updated some comments.
>>>>
>>>> The fix depends on these changes:
>>>> JDK-8025996 Track metaspace usage when metaspace is expanded
>>>> JDK-8024547 MaxMetaspaceSize should limit the committed memory
>>>> used by the metaspaces
>>>>
>>>> Both of these changesets have been pushed to hotspot-gc and are
>>>> currently undergoing testing. LowMemoryTest2 can only be removed
>>>> from the test/ProblemList.txt when both JDK-8025996 and JDK-8024547
>>>> have propagated through all necessary repositories.
>>>>
>>>> thanks,
>>>> StefanK
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131014/6a749aad/attachment.html
From erik.gahlin at oracle.com Mon Oct 14 05:44:53 2013
From: erik.gahlin at oracle.com (Erik Gahlin)
Date: Mon, 14 Oct 2013 14:44:53 +0200
Subject: RFR: 7105883: JDWP: agent crash if there exists a ThreadGroup with
null name
Message-ID: <525BE745.3060109@oracle.com>
Hi,
Could I please have a review of this fix.
An empty string is returned if the thread name is null. The protocol
should be updated to support INVALID_STRING for the Thread Reference
Command <#Error_INVALID_STRING>, but that is a larger effort and
probably better to do when fixing other protocol changes. An empty
string is better than a crash.
Thanks
Erik
Webrev:
http://cr.openjdk.java.net/~egahlin/7105883/
Bug:
https://bugs.openjdk.java.net/browse/JDK-7105883
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20131014/4c899b54/attachment.html
From stefan.karlsson at oracle.com Mon Oct 14 05:40:22 2013
From: stefan.karlsson at oracle.com (stefan.karlsson at oracle.com)
Date: Mon, 14 Oct 2013 12:40:22 +0000
Subject: hg: jdk8/tl/jdk: 7196801: NPG: Fix
java/lang/management/MemoryMXBean/LowMemoryTest2
Message-ID: <20131014124112.178C06237C@hg.openjdk.java.net>
Changeset: f15a0087181e
Author: stefank
Date: 2013-10-14 14:28 +0200
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/f15a0087181e
7196801: NPG: Fix java/lang/management/MemoryMXBean/LowMemoryTest2
Reviewed-by: coleenp, sla
Contributed-by: stefan.karlsson at oracle.com, coleen.phillimore at oracle.com
! test/java/lang/management/MemoryMXBean/LowMemoryTest2.java
! test/java/lang/management/MemoryMXBean/LowMemoryTest2.sh
From jaroslav.bachorik at oracle.com Mon Oct 14 06:06:32 2013
From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik)
Date: Mon, 14 Oct 2013 15:06:32 +0200
Subject: RFR: 7105883: JDWP: agent crash if there exists a ThreadGroup
with null name
In-Reply-To: <525BE745.3060109@oracle.com>
References: <525BE745.3060109@oracle.com>
Message-ID: <525BEC58.3030704@oracle.com>
Looks good to me. (not a reviewer)
A small nit - in the test the copyright year should be only 2013
(instead of "2003, 2013")
-JB-
On 14.10.2013 14:44, Erik Gahlin wrote:
> Hi,
>
> Could I please have a review of this fix.
>
> An empty string is returned if the thread name is null. The protocol
> should be updated to support INVALID_STRING for the Thread Reference
> Command <#Error_INVALID_STRING>, but that is a larger effort and
> probably better to do when fixing other protocol changes. An empty
> string is better than a crash.
>
> Thanks
> Erik
>
> Webrev:
> http://cr.openjdk.java.net/~egahlin/7105883/
>
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-7105883
>
>
From aleksey.timofeev at oracle.com Mon Oct 14 06:11:08 2013
From: aleksey.timofeev at oracle.com (aleksey.timofeev at oracle.com)
Date: Mon, 14 Oct 2013 17:11:08 +0400
Subject: Fwd: Re: Fix to 8025925
In-Reply-To:
References:
Message-ID: <525BED6C.1000507@oracle.com>
Hello, Thomas. Did you see this simple diff?
-------- Original Message --------
Subject: Re: Fix to 8025925
Date: Wed, 9 Oct 2013 09:04:20 +0200
From: Staffan Larsen
To: aleksey.timofeev at oracle.com, Thomas Schatzl
CC: serviceability-dev at openjdk.java.net
serviceability-dev at openjdk.java.net