Fix manual GC_PROTECTs around StackTraceArray (#15621)
authorJan Kotas <jkotas@microsoft.com>
Fri, 22 Dec 2017 21:57:20 +0000 (13:57 -0800)
committerGitHub <noreply@github.com>
Fri, 22 Dec 2017 21:57:20 +0000 (13:57 -0800)
commit013eb5695e23cb967598daa5e19356af1eea060b
tree04f700673b2fedecdd80d0376341c9ec3fe395d9
parentd7d457f11cf553e46aab1da225be83e73fc783e8
Fix manual GC_PROTECTs around StackTraceArray (#15621)

StackTraceArray wraps GC reference that needs to be GC_PROTECTED exactly once accross all GC triggering points. The calls from copy constructor and assignment operator were violating this invariant. I have fixed this by deleting the copy constructor and assignment operator, and replaced their use by explicit CopyFrom method.

Fixes #15537
src/vm/object.cpp
src/vm/object.h