Comments (11)
the error message is below:
11:10:50.887 [JavaFX Application Thread] WARN o.a.j.c.CompilationUtil - No Task found in Compilation 11
Exception in thread "Thread-11" java.util.EmptyStackException
at java.base/java.util.Stack.peek(Stack.java:101)
at java.base/java.util.Stack.pop(Stack.java:83)
at org.adoptopenjdk.jitwatch.core.TagProcessor.handleTag(TagProcessor.java:140)
at org.adoptopenjdk.jitwatch.core.TagProcessor.processLine(TagProcessor.java:57)
at org.adoptopenjdk.jitwatch.parser.hotspot.HotSpotLogParser.parseLogCompilationLines(HotSpotLogParser.java:148)
at org.adoptopenjdk.jitwatch.parser.hotspot.HotSpotLogParser.parseLogFile(HotSpotLogParser.java:130)
at org.adoptopenjdk.jitwatch.parser.AbstractLogParser.processLogFile(AbstractLogParser.java:366)
at org.adoptopenjdk.jitwatch.parser.ILogParser.processLogFile(ILogParser.java:23)
at org.adoptopenjdk.jitwatch.ui.main.JITWatchUI$1.run(JITWatchUI.java:246)
at java.base/java.lang.Thread.run(Thread.java:831)
Exception in thread "Thread-12" java.util.EmptyStackException
at java.base/java.util.Stack.peek(Stack.java:101)
at java.base/java.util.Stack.pop(Stack.java:83)
at org.adoptopenjdk.jitwatch.core.TagProcessor.handleTag(TagProcessor.java:140)
at org.adoptopenjdk.jitwatch.core.TagProcessor.processLine(TagProcessor.java:57)
at org.adoptopenjdk.jitwatch.parser.hotspot.HotSpotLogParser.parseLogCompilationLines(HotSpotLogParser.java:148)
at org.adoptopenjdk.jitwatch.parser.hotspot.HotSpotLogParser.parseLogFile(HotSpotLogParser.java:130)
at org.adoptopenjdk.jitwatch.parser.AbstractLogParser.processLogFile(AbstractLogParser.java:366)
at org.adoptopenjdk.jitwatch.parser.ILogParser.processLogFile(ILogParser.java:23)
at org.adoptopenjdk.jitwatch.ui.main.JITWatchUI$1.run(JITWatchUI.java:246)
at java.base/java.lang.Thread.run(Thread.java:831)
from jitwatch.
Hi, please can you share the source/class file and the command line options used to run it?
Thanks,
Chris
from jitwatch.
Hi, Chris, sorry for my late reply. My command-line option is java -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:-TieredCompilation -XX:+PrintAssembly -XX:-UseCompressedOops sumBenchmark.java
The source file is
import java.io.IOException;
import java.nio.file.*;
public class sumBenchmark {
public int count(int n) {
int res = 0;
for(int i=1;i<=n;++i){
if(i%2 == 1){
res += i;
}else{
res -= i;
}
}
return res;
}
public static void main(String[] args) {
int res =0;
sumBenchmark summer = new sumBenchmark();
for(int i=1;i<=10000;++i){
res += summer.count(i);
}
System.out.println(res);
}
}
from jitwatch.
Hi, OpenJDK17 (Temurin) seems to work for me.
Are you running your code in the JITWatch "Sandbox" or analysing a LogCompilation file your output from an execution outside JITWatch?
If the latter then please can you paste your logcompilation file please?
Also, is the problem repeatable? Sometimes with short programs the JVM exits before completely writing the logcompilation file so you don't get a usable log file.
Cheers,
Chris
from jitwatch.
Yeah, the latter one, this problem is repeatable. I think I do not correctly understand the JITWatch Configuration, I'll try running my code in the JITWatch "Sandbox". So could you please tell see your settings about source locations and class locations?
Thank you, Chris.
from jitwatch.
Hi, with the sandbox it automatically finds your source and class locations. Manual configuration is only needed for external log files :)
from jitwatch.
Okay, I'll try later. Thank you for your patience. By the way, are you familiar with JVM execution engine about JIT? I mean the logic about C1 compiler and C2 compiler, especially the code emit phase, the optimization technology is not what I care, I only care about the phase from lir to native code. The source code really puzzles me, any help?
from jitwatch.
I know a little but the hotspot-compiler-dev mailing list is the best place to ask about compiler internals :)
from jitwatch.
Okay, thank you a lot!!! Have a nice day!!!!
from jitwatch.
Hi, Chris, sorry to disturb you again, I sent emails to hotspot-compiler-dev mailing list, but no response. Any help?
from jitwatch.
Hi, I'm closing all the issues except for the ones I'm actively working on.
from jitwatch.
Related Issues (20)
- I can't see the assembly instructions. HOT 2
- Fix gradle build to find FreeLogJ HOT 1
- Fix code cache visualisation since segmented code cache
- Fix auxiliary scripts which assume local lib folder HOT 1
- hsdis download failed on x86 mac HOT 2
- JITWatch shows garbled characters HOT 5
- After the SpringBoot project adds source and class to the config, the following error occurs when you click start HOT 5
- NPE occured from Tag.getAttributes() HOT 3
- The button in the tool is garbled HOT 2
- NPE on "Chain" button HOT 11
- java.lang.VerifyError: Cannot inherit from final class HOT 2
- compile ok but see nothing
- Unable to see source code for project classes as well as java lang classes HOT 11
- Gradle build is broken. HOT 2
- Add compilation flags HOT 3
- Add JMH in Sandbox HOT 1
- Any plans to support the Vector API? HOT 4
- tableswitch and Method size HOT 4
- Support for Azul Prime
- Kotlin sandbox set up
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jitwatch.