Session details: Understanding and improving transactional memory