synchronization with C++ version
Merge branch 'master' into ice-cream-sandwich