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
=== RUN TestPanic | |
panic in oneflight | |
wait : goroutine 22 [running]: | |
runtime/debug.Stack() | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/runtime/debug/stack.go:24 +0x65 | |
_/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight.TestPanic(0xc00013fba0) | |
/Users/xin.wei/github-personal/leetcode-go/concurrency/oneflight/oneflight_test.go:217 +0x1af | |
testing.tRunner(0xc00014c000, 0x111df98) | |
/Users/xin.wei/.asdf/installs/golang/1.17.8/go/src/testing/testing.go:1259 +0x102 | |
created by testing.(*T).Run |
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
type ParamSet struct { | |
Caller lib.Caller | |
TimeoutNS time.Duration | |
LPS uint32 | |
DurationNS time.Duration | |
ResultCh chan *lib.CallResult | |
} | |
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
# You are given a tree with n nodes numbered from 0 to n - 1 in the form of a | |
# parent array parent where parent[i] is the parent of the iᵗʰ node. The root of | |
# the tree is node 0, so parent[0] = -1 since it has no parent. You want to design a | |
# data structure that allows users to lock, unlock, and upgrade nodes in the tree. | |
# | |
# | |
# The data structure should support the following functions: | |
# | |
# | |
# Lock: Locks the given node for the given user and prevents other users from |
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
D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\bin\java.exe "-javaagent:D:\apps\IntelliJ IDEA Community Edition 2020.1.2\lib\idea_rt.jar=49844:D:\apps\IntelliJ IDEA Community Edition 2020.1.2\bin" -Dfile.encoding=UTF-8 -classpath D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\charsets.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\access-bridge-64.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\cldrdata.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\dnsns.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\jaccess.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\localedata.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\nashorn.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\sunec.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\sunjce_provider.jar;D:\Applications\Scoop\apps\ojdkbuild8\1.8.0.252-2.b09\jre\lib\ext\sunms |
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
-Xms1024m | |
-Xmx4096m | |
-XX:ReservedCodeCacheSize=1024m | |
-XX:+UseCompressedOops | |
-Dfile.encoding=UTF-8 | |
-XX:+UseConcMarkSweepGC | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-ea | |
-XX:CICompilerCount=2 | |
-Dsun.io.useCanonPrefixCache=false |
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
D:\apps\oraclejava8\bin\java.exe "-javaagent:D:\apps\IntelliJ IDEA Community Edition 2020.1.2\lib\idea_rt.jar=51076:D:\apps\IntelliJ IDEA Community Edition 2020.1.2\bin" -Dfile.encoding=UTF-8 -classpath D:\apps\oraclejava8\jre\lib\charsets.jar;D:\apps\oraclejava8\jre\lib\deploy.jar;D:\apps\oraclejava8\jre\lib\ext\access-bridge-64.jar;D:\apps\oraclejava8\jre\lib\ext\cldrdata.jar;D:\apps\oraclejava8\jre\lib\ext\dnsns.jar;D:\apps\oraclejava8\jre\lib\ext\jaccess.jar;D:\apps\oraclejava8\jre\lib\ext\jfxrt.jar;D:\apps\oraclejava8\jre\lib\ext\localedata.jar;D:\apps\oraclejava8\jre\lib\ext\nashorn.jar;D:\apps\oraclejava8\jre\lib\ext\sunec.jar;D:\apps\oraclejava8\jre\lib\ext\sunjce_provider.jar;D:\apps\oraclejava8\jre\lib\ext\sunmscapi.jar;D:\apps\oraclejava8\jre\lib\ext\sunpkcs11.jar;D:\apps\oraclejava8\jre\lib\ext\zipfs.jar;D:\apps\oraclejava8\jre\lib\javaws.jar;D:\apps\oraclejava8\jre\lib\jce.jar;D:\apps\oraclejava8\jre\lib\jfr.jar;D:\apps\oraclejava8\jre\lib\jfxswt.jar;D:\apps\oraclejava8\jre\lib\jsse.jar;D:\apps\o |
This file has been truncated, but you can view the full file.
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
322746482042) | |
4> SensorReading(sensor_36,1593975312788,70.838703767601) | |
4> SensorReading(sensor_37,1593975310142,61.77140819560398) | |
4> SensorReading(sensor_38,1593975312896,55.83213050196591) | |
9> SensorReading(sensor_88,1593975310430,71.2708589718904) | |
9> SensorReading(sensor_89,1593975309811,41.16878436575479) | |
9> *** late reading *** sensor_90 | |
7> SensorReading(sensor_66,1593975310714,42.17072371362509) | |
7> SensorReading(sensor_67,1593975312036,62.836473171229635) | |
7> *** late reading *** sensor_68 |
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
/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/bin/java -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=65199:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Librar |
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
/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/bin/java -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=60475:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Librar |
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
"ScalaTest-run-running-GenTest" #1 prio=5 os_prio=31 tid=0x00007f85f780f000 nid=0xe03 waiting on condition [0x0000700004d5d000] | |
java.lang.Thread.State: WAITING (parking) | |
at sun.misc.Unsafe.park(Native Method) | |
- parking to wait for <0x0000000719c7e4e8> (a java.util.concurrent.FutureTask) | |
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) | |
at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429) | |
at java.util.concurrent.FutureTask.get(FutureTask.java:191) | |
at fpinscala.chapt7.Par$.$anonfun$map2$1(Par.scala:97) | |
at fpinscala.chapt7.Par$$$Lambda$216/875016237.apply(Unknown Source) | |
at fpinscala.chapt7.Par$.$anonfun$map2$1(Par.scala:95) |
NewerOlder