Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 1223031]
Blink>JavaScript>Build
Supplemental component tags only. Set main component first. [ID: 1222907]
[ID: 1223136]
Design doc to be reviewed. [ID: 1223032]
[ID: 1223087]
[ID: 1223134]
Milestone(s) impacted by this issue. [ID: 1223085]
[ID: 1223084]
[ID: 1223086]
[ID: 1223034]
Link to incidents in IRM as a result of this ticket. [ID: 1300460]
[ID: 1223088]
This field contains Gerrit urls of code changes that ‘fix’ a security bug (i.e., excluding logging/cleanup commits) and is used when a singular fix cannot be uniquely identified from the existing “Code Changes” field. The change can be in the chromium repo or any other third_party repo. [ID: 1358989]
[ID: 1305533]
Blink
Blink>JavaScript
[ID: 1253656]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Estimated effort
Description
I just spent quite a while trying to tweak the V8 component build as part ofhttps://crbug.com/368047728 . While doing so, I ran into several things that don't seem to be working correctly. I tried fixing several of them in the process of fixing my bug, but the fixes seemed to end up with other things broken. Issues were most prevalent in Windows builds, due to dllimport/export semantics.
Things I noticed, in rough order of how confident I am about the issue:
#undef
-ing one of the macros.include/libplatform/libplatform-export.h
(as below), it finds errors.BUILDING_V8_SHARED_PRIVATE
, but notBUILDING_V8_SHARED
. This means that LIBWASM_STATIC is always set to 1, so I think this is never compiled as a shared library.#include "include/v8config.h
before the check, since it will promote theSHARED_PRIVATE
macro to the_SHARED
one. It's already included in the file after the check via v8-isolate.h, but that's after the check. Note that the check needs to go before wasm.hh is included, because it uses theLIBWASM_STATIC
define.WASM_API_EXTERN
set to__declspec(dllexport)
, which seems wrong; probably, this check should also include a condition for setting that.