Classes annotated with STACK_ALLOCATED() disables |operator new| and can only be stack allocated.
For these, the required practice of having to define a |trace| method (if they contain Blink GC reference fields), doesn't apply as any conservative GC that might strike while an instance is stack allocated will be handled as wanted by the marking phase.
Consequently, we should make the clang Blink GC plugin detect the declaration of these unnecessary and unused trace methods for STACK_ALLOCATED() class types, and issue a warning/error.
Comment 1 by sigbjo...@opera.com
, Feb 8 2017