Skip to content

Commit 034bf10

Browse files
committed
Change to Apache v2 Timsort
OpenJDK is GPLv2, not compatible. This Timsort is available under Apache v2 from the Android repo. Not to be confused with the identical code in OpenJDK7 which is under GPLv2. Go figure.
1 parent b97296c commit 034bf10

File tree

3 files changed

+830
-68
lines changed

3 files changed

+830
-68
lines changed

core/src/main/scala/org/apache/spark/util/collection/SortDataFormat.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ private[spark] trait SortDataFormat[K, Buffer] extends Any {
4343
/** Copy a single element from src(srcPos) to dst(dstPos). */
4444
protected def copyElement(src: Buffer, srcPos: Int, dst: Buffer, dstPos: Int): Unit
4545

46-
/** Copy a range of elements starting at src(srcPos) to dst, starting at dstPos. */
46+
/**
47+
* Copy a range of elements starting at src(srcPos) to dst, starting at dstPos.
48+
* Overlapping ranges are allowed.
49+
*/
4750
protected def copyRange(src: Buffer, srcPos: Int, dst: Buffer, dstPos: Int, length: Int): Unit
4851

4952
/**

0 commit comments

Comments
 (0)