[
https://issues.apache.org/jira/browse/BEAM-7994?focusedWorklogId=296677&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-296677
]
ASF GitHub Bot logged work on BEAM-7994:
----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Aug/19 00:12
Start Date: 17/Aug/19 00:12
Worklog Time Spent: 10m
Work Description: youngoli commented on pull request #9362: [BEAM-7994]
Fixing unsafe pointer usage for Go 1.13
URL: https://github.com/apache/beam/pull/9362#discussion_r314924082
##########
File path: sdks/go/pkg/beam/core/util/reflectx/functions.go
##########
@@ -40,6 +40,8 @@ func FunctionName(fn interface{}) string {
// points to a valid function implementation.
func LoadFunction(ptr uintptr, t reflect.Type) interface{} {
v := reflect.New(t).Elem()
- *(*uintptr)(unsafe.Pointer(v.Addr().Pointer())) =
(uintptr)(unsafe.Pointer(&ptr))
+ p := new(uintptr)
+ *p = ptr
+ *(*unsafe.Pointer)(unsafe.Pointer(v.Addr().Pointer())) =
unsafe.Pointer(p)
Review comment:
Thanks for the nice summary!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 296677)
Time Spent: 2h (was: 1h 50m)
> BEAM SDK has compatibility problems with go1.13
> -----------------------------------------------
>
> Key: BEAM-7994
> URL: https://issues.apache.org/jira/browse/BEAM-7994
> Project: Beam
> Issue Type: Improvement
> Components: sdk-go
> Reporter: Bill Neubauer
> Assignee: Bill Neubauer
> Priority: Minor
> Time Spent: 2h
> Remaining Estimate: 0h
>
> The Go team identified a problem in the Beam SDK that appears due to runtime
> changes in Go 1.13, which is upcoming. There is a backwards compatible fix
> the team recommended.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)