Skip to content

Instantly share code, notes, and snippets.

View messi18's full-sized avatar

messi18 messi18

  • Tianjin, China
View GitHub Profile
https://github.com/awh/openjdk7/blob/3219421d4caa28991c1102bbcec18356ee006e4b/hotspot/src/share/vm/memory/sharedHeap.cpp#L138
@messi18
messi18 / gist:b3231260c166ef60d2a8da9539a86b7b
Created March 15, 2018 09:48
Verifying my Blockstack ID is secured with the address 1HAwjDWHgX6AHsPpcnux4iESuyAj1HbRhH https://explorer.blockstack.org/address/1HAwjDWHgX6AHsPpcnux4iESuyAj1HbRhH
Verifying my Blockstack ID is secured with the address 1HAwjDWHgX6AHsPpcnux4iESuyAj1HbRhH https://explorer.blockstack.org/address/1HAwjDWHgX6AHsPpcnux4iESuyAj1HbRhH
Verifying my Blockstack ID is secured with the address 1HAwjDWHgX6AHsPpcnux4iESuyAj1HbRhH https://explorer.blockstack.org/address/1HAwjDWHgX6AHsPpcnux4iESuyAj1HbRhH
@messi18
messi18 / gist:3149230
Created July 20, 2012 07:19
Initialization On Demand Holder idiom
class Something {
private static class LazySomethingHolder {
public static Something something = new Something();
}
// this private constructor is necessary
private Something(){}
public static Something getInstance() {
return LazySomethingHolder.something;