This file contains hidden or 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
$ java -Xlog:gc*=debug -version | |
[0.024s][debug][gc,heap] Minimum heap 8388608 | |
[0.024s][info ][gc ] Using G1 | |
[0.024s][debug][gc,heap,coops] Heap address: 0x0000000707400000 | |
[0.024s][debug][gc ] ConcGCThreads: 3 offset 22 | |
[0.024s][debug][gc ] ParallelGCThreads: 10 | |
[0.024s][debug][gc ] Initialize mark stack with 4096 chunks | |
[0.024s][debug][gc,ergo,heap ] Expand the heap. requested expansion amount: | |
[0.025s][debug][gc,heap,region] Activate regions [0, 125)[0.025s][debug][gc,ihop ] Target occupancy update: old: 0B, new: 262144000B | |
[0.025s][debug][gc,ergo,refine] Initial Refinement Zones: green: 2560 |
This file contains hidden or 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
Failed to execute goal org.apache.maven.plugins:maven-compiler | |
-plugin:3.2:compile (default-compile) on project encloud-common: | |
Fatal error compiling: java.lang.ExceptionInInitializerError: | |
Unable to make field private | |
com.sun.tools.javac.processing.JavacProcessingEnvironment | |
$DiscoveredProcessors com.sun.tools.javac.processing. | |
JavacProcessingEnvironment.discoveredProcs accessible: | |
module jdk.compiler does not "opens com.sun.tools.javac.processing"to unnamed module |
This file contains hidden or 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
$ java -Xlog:gc=debug,gc+metaspace -version | |
[0.020s][info][gc] Using G1 | |
[0.020s][debug][gc] ConcGCThreads: 3 offset 22 | |
[0.020s][debug][gc] ParallelGCThreads: 10 | |
[0.020s][debug][gc] Initialize mark stack with 4096 chunks, maximum 524288 | |
[0.022s][info ][gc,metaspace] CDS archive(s) mapped at: | |
[0.022s][info ][gc,metaspace] Compressed class space mapped at: | |
[0.022s][info ][gc,metaspace] Narrow klass base: 0x0000000800000000 |
This file contains hidden or 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
$ java -Xlog:gc+metaspace -version | |
[0.022s][info][gc,metaspace] CDS archive(s) mapped at: ... size 12443648. | |
[0.022s][info][gc,metaspace] Compressed class space mapped at: reserved size:... | |
[0.022s][info][gc,metaspace] Narrow klass base:..., Narrow | |
klass shift: 0, Narrow klass range: 0x100000000 |
This file contains hidden or 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
$ java -Xlog:gc+metaspace -version | |
[0.022s][info][gc,metaspace] CDS archive(s) mapped at: ... size 12443648. | |
[0.022s][info][gc,metaspace] Compressed class space mapped at: reserved size:... | |
[0.022s][info][gc,metaspace] Narrow klass base:..., Narrow | |
klass shift: 0, Narrow klass range: 0x100000000 |
This file contains hidden or 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
$ java -Xlog:gc=debug -version | |
[0.023s][info][gc] Using G1 | |
[0.023s][debug][gc] ConcGCThreads: 3 offset 22 | |
[0.023s][debug][gc] ParallelGCThreads: 10 | |
[0.024s][debug][gc] Initialize mark stack with 4096 chunks, maximum 524288 |
This file contains hidden or 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
import javax.annotation.PreDestroy; | |
public abstract class FridayAgent | |
@PreDestroy | |
public void destroy() { | |
agentClient.close(); | |
} | |
} |
This file contains hidden or 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
#include <iostream> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <cstdio> | |
#include <cstdlib> | |
int main() { | |
int fd = ::shm_open("/test", O_RDWR | O_CREAT | O_EXCL, 0600); | |
if (fd < 0) { |
This file contains hidden or 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
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>1.18.24</version> | |
<scope>provided</scope> | |
</dependency> |
This file contains hidden or 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
class SandboxGlobalProxy { | |
constructor(blacklist) { | |
const iframe = document.createElement("iframe", { url: "about:blank" }); | |
iframe.style.display = "none"; | |
document.body.appendChild(iframe); | |
const sandboxGlobal = iframe.contentWindow; | |
return new Proxy(sandboxGlobal, { | |
has: (target, prop) => { |