New issue
Advanced search Search tips

Issue 726567 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

WrapperVisitor needs to support HeapHashMap<T, TraceWrapperMember<U>>

Project Member Reported by bashi@chromium.org, May 26 2017

Issue description

I'm trying to add HeapHashMap<uint32_t, TraceWrapperMember<T>> but get following error message when I add visitor->TraceWrappers(hashmap).

../../third_party/WebKit/Source/modules/nfc/NFC.cpp:915:12: error: no matching member function for call to 'TraceWrappers'
  visitor->TraceWrappers(callbacks_);

It seems that WrapperVisitor doesn't support HeapHashMap.

 

Comment 1 by bashi@chromium.org, May 26 2017

Owner: mlippautz@chromium.org
Status: Assigned (was: Available)
mlippautz@: could you take a look?
You have to manually trace the values. See e.g. [1]

When we started with wrapper tracing, we decided we would not add explicit support for  Heap* containers to avoid code complexity.

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.h?type=cs&q=TraceWrapperMember&sq=package:chromium&l=144

Comment 3 by bashi@chromium.org, May 26 2017

Status: WontFix (was: Assigned)
I see. Thank you for the clarification!
Forgot to add: If you feel that the use is widespread and we should support this now (same w/ HeapVector), then we can certainly think of a way. It just was not a priority so far.

Comment 5 by bashi@chromium.org, May 26 2017

I've started replacing wrongly used "callback interface" with "callback function" (list: https://docs.google.com/spreadsheets/d/1CbyEoTYJyeVCz6crJiHU7kHkSo0ghhIqUqDyZnRrTvE/edit#gid=0) and noticed that we would need some Heap* containers to keep references (at least for MessageCallback and AudioBufferCallback). Having container support would be great but no pressure :)

Sign in to add a comment