mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
1c2b472ac1
Currently createStackMap makes a temporary clone of StackMapGenerator::mst_ on every call. This will cause a heap allocation and free in the case where mst_'s vector size exceeds its inline capacity (64 booleans). This patch removes the cloning and instead adds a second MachineStackTracker, augmentedMst_, to StackMapGenerator, which is used as the temporary inside createStackMap. The expectation is that augmentedMst_'s vector will grow in capacity monotonically during the lifetime of the StackMapGenerator, that is, over multiple calls to createStackMap. This should significantly cut down on heap (re)allocation caused by createStackMap. --HG-- extra : rebase_source : 3a682e88571c1452f15efe711be3e403f64e0a8f |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
public | ||
rust | ||
src | ||
xpconnect | ||
app.mozbuild | ||
ffi.configure | ||
moz.build | ||
moz.configure |