soywiz-archive / jtransc

Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere. Also use JVM code in your favourite language as a library.
https://jtransc.soywiz.com/
Apache License 2.0
632 stars 67 forks source link

Try to fix haxecpp travis tests #237

Closed soywiz closed 7 years ago

soywiz commented 7 years ago

This PR is to try to find and fix the flacky HaxeCpp big test that seems to be related to copy. My guess is that Vector.blit doesn't support overlapping that is a property supported by java System.copy. http://en.cppreference.com/w/c/string/byte/memcpy <--- overlapping produces undefined results for performance http://en.cppreference.com/w/c/string/byte/memmove <--- overlapping is supported

It seems (at least in theory) that it should support overlapping: https://github.com/HaxeFoundation/hxcpp/blob/492b0cbb91c5eb0fe6214b3e5f04bf10e1828163/src/Array.cpp#L161