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
import java.util.concurrent.TimeUnit; | |
import sun.dc.pr.PathDasher; | |
public class Crash { | |
public static void main(String[] args) { | |
Thread thread = new Thread(new Runnable() { | |
@Override | |
public void 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
/* | |
* Copyright (c) 2010-2011 lichengwu | |
* All rights reserved. | |
* | |
*/ | |
package oliver.test.sync; | |
import java.util.concurrent.TimeUnit; | |
import org.junit.Test; |
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
#list all changed flags | |
-XX:+PrintCommandLineFlags | |
#list all changeable flags and final default values | |
-XX:+PrintFlagsFinal | |
#list all changeable flags and initial default values | |
-XX:+PrintFlagsInitial | |
eg: |
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
when you declare generic type, you can get it. when you use generic type, it will be erased. eg: | |
public class Generics { | |
public <T> T m1(T object){ | |
return object; | |
} | |
public void m2(){ | |
List<Integer> list = new ArrayList<Integer>(); | |
list.add(1); |
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
#This is a basic VCL configuration file for varnish. See the vcl(7) | |
#man page for details on VCL syntax and semantics. | |
# | |
#Default backend definition. Set this to point to your content | |
#server. | |
# | |
backend default { | |
.host = "hostname1.com"; | |
#.host = "meituan.com"; | |
#.host = "debug.ct.dev.sankuai.com"; |
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
@echo off | |
set /p path=path: | |
set /p user=user: | |
rem 我们需要修改文件或目录的所有者 | |
takeown /F %path% /R | |
rem 给用户授权文件夹或文件的完全控制权限 |
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
-server | |
-Xverify:none | |
-Xmn512m | |
-Xms1024m | |
-Xmx1024m | |
-Xss1m | |
-XX:PermSize=256 | |
-XX:MaxPermSize=384m | |
-XX:+UseG1GC | |
-XX:MaxGCPauseMillis=300 |
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
# coding=utf-8 | |
__author__ = 'lichengwu' | |
import datetime | |
import re | |
''' | |
Garbage First Log Analyse Util | |
''' |
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
package oliver.test.conurrency; | |
import java.util.Date; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* do not use build-in lock | |
* | |
* if a class use build-in lock ensure concurrence access it's field, thread | |
* will be blocked by other threads who had acquired the lock. |
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
/********************************************************** | |
mail.meituan.com | |
@author:lichengwu | |
@created:2013-01-11 | |
@version:1.0 | |
**********************************************************/ | |
var name="Meituan Mail"; | |
var ver="2013-01-11"; | |
function init(){ |
OlderNewer