Skip to content

Instantly share code, notes, and snippets.

@headius
Created February 17, 2020 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/e114260b20696f6b65fa6aeea3811298 to your computer and use it in GitHub Desktop.
Save headius/e114260b20696f6b65fa6aeea3811298 to your computer and use it in GitHub Desktop.
Example stack trace for a simple lambda
"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)
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