Commit d83bf8c
This PR aims to use `Platform.allocateDirectBuffer` instead of `ByteBuffer.allocateDirect`.
#47733 (review)
Allocating off-heap memory should use the `allocateDirectBuffer` API provided `by Platform`.
No
GA
No
Closes #47987 from cxzl25/SPARK-49509.
Authored-by: sychen <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 2ed6c3e)
Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 7718777 commit d83bf8c
2 files changed
Lines changed: 4 additions & 2 deletions
File tree
- core/src/main
- java/org/apache/spark/io
- scala/org/apache/spark/storage
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
312 | | - | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| |||
0 commit comments