summaryrefslogtreecommitdiff
path: root/reference_test.go
diff options
context:
space:
mode:
authorPatrick Steinhardt <[email protected]>2015-05-22 09:50:16 +0200
committerPatrick Steinhardt <[email protected]>2015-05-22 09:50:16 +0200
commit1bd338af5e7a329c8ec5bd85500350795d0793d2 (patch)
treea0fdf767486ee3cf51f893f462173ab704f718c1 /reference_test.go
parentd95932c84a2b9c926490def345d71d45bb19f344 (diff)
handles: do not store handles by uintptr
If we store values by uintptrs the GC may try to inspect their values when it kicks in. As the pointers are most likely invalid, this will result in an invalid pointer dereference, causing the program to panic. We can fix this by storing values by an int index value instead, returning pointers to those indices as handles instead.
Diffstat (limited to 'reference_test.go')
0 files changed, 0 insertions, 0 deletions