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
Atomic Variables: | |
http://java.dzone.com/articles/how-cas-compare-and-swap-java | |
http://tutorials.jenkov.com/java-concurrency/compare-and-swap.html | |
ThreadLocal | |
http://www.appneta.com/blog/introduction-to-javas-threadlocal-storage/ | |
Thread pools and Executors | |
http://nohack.eingenetzt.com/java/java-executorservice-and-threadpoolexecutor-tutorial/ |
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 com.wixpress.mobile.ecom.cart | |
import com.fasterxml.jackson.core.`type`.TypeReference | |
import com.fasterxml.jackson.module.scala.JsonScalaEnumeration | |
import org.specs2.mutable.SpecificationWithJUnit | |
import org.specs2.specification.Scope | |
import com.wixpress.hoopoe.json._ | |
import com.wixpress.hoopoe.json.JsonMapper.Implicits.global | |
class JacksonEnumTest extends SpecificationWithJUnit { |
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 com.wixpress.commons.mail.service.HackyMockitoMatchers._ | |
import org.specs2.execute.PendingUntilFixed._ | |
import org.specs2.execute.{Result, Success} | |
import org.specs2.matcher._ | |
import org.specs2.mock.Mockito | |
import org.specs2.mock.mockito.CalledMatchers | |
import org.specs2.mutable.SpecWithJUnit | |
import org.specs2.specification.Scope | |
class SomeTest extends SpecWithJUnit { |
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
function printStats(diff) { | |
// var ignoredTypes = ["Array", "Code", "Object", "String", "Number", "Arguments", "Closure", "Native", "system / Context", "TickObject"]; | |
var ignoredTypes = []; | |
var details = diff.change.details; | |
console.log(diff.change.allocated_nodes); | |
for (var i = 0; i < details.length; i++) { | |
var leakType = details[i].what; | |
if (ignoredTypes.indexOf(leakType) < 0) { | |
if (details[i]['+'] > 0) { |