Created
February 17, 2020 20:07
-
-
Save headius/e114260b20696f6b65fa6aeea3811298 to your computer and use it in GitHub Desktop.
Example stack trace for a simple lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"main" #1 prio=5 os_prio=31 tid=0x00007fe357008800 nid=0x2303 waiting on condition [0x000070000329b000] | |
java.lang.Thread.State: WAITING (parking) | |
at sun.misc.Unsafe.park(Native Method) | |
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:304) | |
at LambdaStack.lambda$main$0(LambdaStack.java:3) | |
at LambdaStack$$Lambda$1/1418481495.run(Unknown Source) | |
at LambdaStack.main(LambdaStack.java:5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LambdaStack { | |
public static void main(String[] args) { | |
Runnable r = () -> { java.util.concurrent.locks.LockSupport.park(); }; | |
r.run(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment