[
https://issues.apache.org/jira/browse/NETBEANS-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649443#comment-16649443
]
Sven Reimers commented on NETBEANS-1359:
----------------------------------------
Here is some first analysis.
there was a big change in StackTraceElementCompositeData. The exception we are
seeing (and what I saw in my debugging session) indicates that the sequences,
which shall be synchronized are indeed broken in JDK 11 (onwards?)
{code}
// CONTENTS OF THIS ARRAY MUST BE SYNCHRONIZED WITH
// STACK_TRACE_ELEMENT_ATTRIBUTES!
final Object[] stackTraceElementItemValues = {
ste.getClassLoaderName(),
ste.getModuleName(),
ste.getModuleVersion(),
ste.getClassName(),
ste.getMethodName(),
ste.getFileName(),
ste.getLineNumber(),
ste.isNativeMethod(),
};
...
private static final String[] V5_ATTRIBUTES = {
CLASS_NAME,
METHOD_NAME,
FILE_NAME,
LINE_NUMBER,
NATIVE_METHOD,
};
private static final String[] V9_ATTRIBUTES = {
CLASS_LOADER_NAME,
MODULE_NAME,
MODULE_VERSION,
};
private static final String[] STACK_TRACE_ELEMENT_ATTRIBUTES =
Stream.of(V5_ATTRIBUTES, V9_ATTRIBUTES).flatMap(Arrays::stream)
.toArray(String[]::new);
{code}
As far as I can see the synchronization is broken ->
{code:java}
Stream.of(V5_ATTRIBUTES, V9_ATTRIBUTES){code}
should be
{code:java}
Stream.of(V9_ATTRIBUTES,V5_ATTRIBUTES){code}
to make the sequence correct.
Digging further...
> Profiling the IDE hangs when saving snapshot
> --------------------------------------------
>
> Key: NETBEANS-1359
> URL: https://issues.apache.org/jira/browse/NETBEANS-1359
> Project: NetBeans
> Issue Type: Bug
> Components: profiler - IDE
> Affects Versions: 10.0
> Reporter: Glenn Holmer
> Assignee: Glenn Holmer
> Priority: Major
> Attachments: stacktrace.txt
>
>
> 1) Click "Profile the IDE" icon in the Performance toolbar to start profiling
> the IDE.
> 2) Open some projects, files within them, etc. to create some activity for
> the profiler.
> 3) Click the icon again (which is now labelled "Stop IDE Profiling and Take a
> Snapshot").
> This last action should create and open a profiler snapshot, but the "Saving
> snapshot" progress bar in the status area of NetBeans never goes anywhere and
> a snapshot is not opened.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists