Request Review: JDK-6479237 (cl) Add support for classloader names

Alan Bateman Alan.Bateman at oracle.com
Mon Oct 31 13:51:38 UTC 2016


On 28/10/2016 04:01, Mandy Chung wrote:

>> On Oct 27, 2016, at 3:01 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>>
>> One thing to check is getHashedModuleNames where it assumes the boot Layer exists, I assume this has the potential to NPE if we have any cases where a stack trace is printed during early startup.
>>
> Good catch. It should only call HashedModules.contains(m) after the module system is initialzed. I added this:
>
> if (VM.isModuleSystemInited() && !HashedModules.contains(m)) {
Looks okay, an alternative would be to move that that check to L439.


>
>> Having classOrLoaderModuleClassName change from a class to a string a bit unusual but the reasons are clear.
>>
>> Minor formatting issue in BuiltinClassLoader ctor (would look better without the line break).
> Fixed.
>
> I also rewrote the examples in the javadoc of StackTraceElement::toString to make the format clear.
>
That looks fine.

-Alan.


More information about the jigsaw-dev mailing list