Descriptionruntime: update docs, code for SetFinalizer
At last minute before 1.3 we relaxed SetFinalizer to avoid
crashes when you pass the result of a global alloc to it.
This avoids the crash but makes SetFinalizer a bit too relaxed.
Document that the finalizer of a global allocation may not run.
Tighten the SetFinalizer check to ignore a global allocation but
not ignore everything else.
Fixes issue 7656.
Patch Set 1 #Patch Set 2 : diff -r ab3588ba2386c8f1275eba5466236494f6e3bd47 https://code.google.com/p/go/ #Patch Set 3 : diff -r 6f838e5073991a6d4621f54c509027c879aa0e1e https://code.google.com/p/go/ #
Total comments: 2
Patch Set 4 : diff -r 6f838e5073991a6d4621f54c509027c879aa0e1e https://code.google.com/p/go/ #
Total comments: 2
Patch Set 5 : diff -r 5387586e123e7cac9418ec326a8202932b834063 https://code.google.com/p/go/ #MessagesTotal messages: 11
|